How can you send email in php?



How can you send email in php?..

Answer / Ratanakar Dwivedi

To send an email using PHP, you can use the `mail()` function along with the appropriate email headers. Here's a simple example:nn```phpnmail(to_email@example.com, 'Subject', 'Email body', 'From: from_email@example.com'); // Replace placeholders with actual values"```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is use of preg_replace in php?

1 Answers  


How to remove duplicate values from array using php?

1 Answers  


what is difference between PHP4 , PHP5

1 Answers   Net Solution,


Where can I find php ini file?

1 Answers  


Is facebook still in php?

1 Answers  


how to overcome server time behind twleve hours compare to local system time

0 Answers  


How to get complete current page url in php?

1 Answers  


Tell me how can we get the error when there is a problem to upload a file?

1 Answers  


Differentiate between require and include?

1 Answers  


What is ltrim?

1 Answers  


What is the difference between the include() and require() functions?

1 Answers  


What is rtrim php?

1 Answers  


Categories