I am using mail() to mail out a message.
the platform is "Windows NT WSH1001 5.2 build 3790"
PHP version is PHP Version 4.3.4.
SMTP set up in php.ini is
"
Directive Local Value Master Value
sendmail_from php@win2003.hostway php@win2003.hostway
sendmail_path no value no value
serialize_precision 100 100
short_open_tag On On
SMTP 127.0.0.1 127.0.0.1
smtp_port 25 25 "
I cannot change this set up.
When I received message, I have two errors
1) "Sun-ONE-SMTP-Warning: Lines longer than SMTP allows found and truncated." This erro message is in my message source. And the e-mail was truncated. I solved it by add "\r\n" for every line.
But my qeustion is if the message contents is dynamically assigned, how could I know where I should insert this "\r\n" to make the new line before it is too long and be truncated?
2) the mail() function only works for sending e-mail to some e-mail accounts from some ISP, and not work for sending e-mail to some other e-mail accounts from a few other ISP, my guess is "sendmail_from php@win2003.hostway php@win2003.hostway" is not set up to a e-mail address, and then some ISP think it is SPAM and block it, am I right? Or any other possible reasons?
Thanks!