note 88620 deleted from book.mail by danbrown
| From: | danbrown@php.net | Date: | Mon, 02 Feb 2009 19:22:06 +0000 |
| Subject: | note 88620 deleted from book.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150121@lists.php.net to get a copy of this message | ||
Note Submitter: animeysha
----
Hi guys,
I tried using this code but it did not work on my end. could you please look unto this. Please, I
need your help.
Thanks:)
<?php
$Name = "Da Duder"; //senders name
$email = "email@adress.com"; //senders e-mail adress
$recipient = "PersonWhoGetsIt@emailadress.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional
headerfields
ini_set('sendmail_from', 'me@domain.com'); //Suggested by "Some Guy"
mail($recipient, $subject, $mail_body, $header); //mail command :)
?>