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<[EMAIL PROTECTED]>\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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to