Explain mail function in PHP with syntax?



Explain mail function in PHP with syntax?..

Answer / Puja Kumari

The mail() function in PHP sends an email. The basic syntax is: <?php mail(to, subject, message, headers); where:nt- to: recipient's email addressnt- subject: email subject linent- message: the body of the emailnt- headers (optional): additional headers for the email

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Describe the differences between the object models in PHP 4 and PHP 5.

1 Answers  


Which function would you use to format date information in php?

1 Answers  


Hi all, I have a problem in Apache on windows xp.I tried to unistall apache and install it again. But when in did the installation again, and tried to run apache, i get the following error message, Socketaddresse can just be used once. Make_sock: could not build to address 0.0.0.0.80 No listening sockets available.Shutting down Unable to open logs. and i also get (error) OS2. The system cannot fine the installed service named "Apache2". Please i need some one to help me out with this.I'm really fustrated cuz i need this stuff working as fast as possible. PLEASE HELP ME

2 Answers  


What is the use of mysql_fetch_array in php?

1 Answers  


What is a query in php?

1 Answers  


How to convert a character to an ascii value?

1 Answers  


What are the functions for imap?

1 Answers  


What are the rules for naming a php variable?

1 Answers  


What's the diff. between include() and Include_once().

5 Answers   Intrack,


How to copy a file?

1 Answers  


What types of MYSQL function available for affecting columns

1 Answers  


How does php work?

1 Answers  


Categories