Re: two small issues with php mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




#1 email is only being sent to a few recipients.

I need to implement $smtp = ‘localhost’;
Somewhere, but I keep getting parse errors?

Don't use fancy ms-word quotes, use the normal single quotes.

php mail() only uses the smtp config if you are sending on a windows machine.

http://php.net/mail

SMTP - Used under Windows only: host name or IP address of the SMTP server PHP should use for mail sent with the mail() function.

If you want to do smtp authentication yourself, I suggest you get phpmailer and look at how it handles it (read the code and try to understand the process).

$headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;

// $headers = 'bcc: 'kathyandrews@xxxxxxxxxxxxx';

This should be:

$headers .= 'bcc: email@xxxxxxxxxxx';

otherwise this line is overwriting the 'from' line (notice the . before the = sign).

In future don't post real email addresses because spam-bots get the archives from websites and use them, so kathyandrews is going to get a ton of spam because you've sent her email address around.

--
Postgresql & php tutorials
http://www.designmagick.com/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux