<?php // multiple recipients (note the commas) $to = "sendtoemailc@yahoo.com"; // subject $subject = "Nonsensical Latin"; // compose message $message = " <html> <head> <title>Nonsensical Latin</title> </head> <body> <h1>Nonsensical Latin</h1> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam iaculis pede ac quam. Etiam placerat suscipit nulla. Maecenas id mauris eget tortor facilisis egestas. Praesent ac augue sed <a href=\"http://lipsum.com/\">enim</a> aliquam auctor. Pellentesque convallis tempor tortor. Nullam nec purus.</p> </body> </html> "; // To send HTML mail, the Content-type header must be set // compose headers $headers = "From: webmaster@example.com\r\n"; $headers .= "Reply-To: webmaster@example.com\r\n"; $headers .= "X-Mailer: PHP/".phpversion(); // send email mail($to, $subject, $message, $headers); ?>
Tuesday, July 14, 2015
Send emails from own hosting
Labels:
email
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment