Figer's Technology Consulting | Emailing from PHP

Emailing from PHP

about 98% of the time your web host will already have the php.ini file set up correctly so literally all it takes to email is this (if that's not the case look here:  http://www.php.net/manual/en/ref.mail.php#77499)

 
//Send Emails
$emailmessage = "Body of your message goes here, I put it in a variable because it's usually very long.";
mail($_POST[email], "Email Subject", $emailmessage , "From: no@no.com" . "\r\n" ."bcc: lucas.baran@figers.com");
Comments are closed