How to send an email using PHP? -


i using php on website , want add emailing functionality.

i have wampserver installed.

how send email using php?

using php's mail() function it's possible. remember mail function not work in local server.

<?php $to      = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'from: webmaster@example.com' . "\r\n" .     'reply-to: webmaster@example.com' . "\r\n" .     'x-mailer: php/' . phpversion();  mail($to, $subject, $message, $headers); ?>  

reference:


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -