How to send an email using PHP? -


I am using PHP on a website and I want to add emailing functionality.

I have WAMPSERVER installed.

How do I send an email using PHP?

It is possible to use PHP function Remember the mail function will not work in the local server.

  & lt ;? Php $ to = 'nobody@example.com'; $ Theme = 'subject'; $ Message = 'hello'; $ Headers = 'From: webmaster@example.com' "\ r \ n" 'Answer: webmaster@example.com' "\ r \ n" 'X-Mailer: PHP /' phpversion (); Mail ($ $ $ $ theme, $ message, $ headers); ? & Gt;   

Reference:



Comments