note 88620 added to book.mail

From: Date: Sun, 01 Feb 2009 08:30:13 +0000
Subject: note 88620 added to book.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-150054@lists.php.net to get a copy of this message
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 :) ?> ---- Server IP: 69.147.83.197 Probable Submitter: 125.60.248.136 ---- Manual Page -- http://www.php.net/manual/en/book.mail.php Edit -- https://master.php.net/note/edit/88620 Del: integrated -- https://master.php.net/note/delete/88620/integrated Del: useless -- https://master.php.net/note/delete/88620/useless Del: bad code -- https://master.php.net/note/delete/88620/bad+code Del: spam -- https://master.php.net/note/delete/88620/spam Del: non-english -- https://master.php.net/note/delete/88620/non-english Del: in docs -- https://master.php.net/note/delete/88620/in+docs Del: other reasons-- https://master.php.net/note/delete/88620 Reject -- https://master.php.net/note/reject/88620 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150054) next »