Re: email a web page

From: Date: Mon, 06 Jan 2003 10:40:51 +0000
Subject: Re: email a web page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130380@lists.php.net to get a copy of this message
DC wrote:
Hi all, I have a newsletter ready to email to my database of customers. The entire newsletter incl graphics , layout etc is enclosed within a form which posts to a second page which s supposed to email the desired page..........but it does not work! The code is listed below........
(line 79) $headers .= "From: My site.com<dcurran@powerup.com.au>\n";
(line 91) mail($email, $subject , $message, $headers);
and then I get this message each time......... Warning: Undefined variable: headers in c:\www\cavalier\admin\newsletteremailcommand.php on line 79 you are trying to concatenate a string to a variable that doesn't exist yet (this is allowed but you have your system set to emit a warning when you use an uninitialised variable)
Warning: Failed to Connect in c:\www\cavalier\admin\newsletteremailcommand.php on line 91
your system is unable to connect to the mailserver (set in php.ini)
Any quick and easy tips to get my newsletter happening? Even a new script or easy tutorial in Englsih.
-- Sean

« previous php.general (#130380) next »