sending email in php

Amd / Sempron
February 23, 2009 at 16:02:37
Specs: Windows XP, 512
how to send a email using php?Can I have a code for that please???lease this is for my thesis I want to pass this last trial


See More: sending email in php

Report •


#1
February 25, 2009 at 12:35:16
For basic email using php
<?php

$Name = "from"; 
$email = "from@somedomain"; 
$recipient = "to@somedomain"; 
$mail_body = "some text to send";
$subject = "mail subject line";
$header = "From: ". $Name . " <" . $email . ">\r\n";

ini_set('sendmail_from', 'from@somedomain'); // suggested by some php help sites

mail($recipient, $subject, $mail_body, $header);
?>

HTH


Report •
Related Solutions


Ask Question