RE: [PHP-DB] Re: mail() function and AOL users
I'm quite sure it's not a problem with the mail function. It's probably the reverse dns configuration on your SMTP/sendmail server. AOL Verizon have been two real sticklers for that. If you know the IP address that your server is sending the email from you can use this: http://www.dnsstuff.com/tools/ptr.ch?ip=YOURIPADDRESS To check the revers dns resolution. You may be surprised. Ryan -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:28 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: mail() function and AOL users Hello, On 12/12/2003 04:34 AM, Matt Perry wrote: I use the following php mail function in an online applicaiton program: mail($email, application submitted, $message, From: [EMAIL PROTECTED]); This function does not always work when I modify $message. I have checked for null values for $message already but this does not seem to be the problem. I am trying to develop some sort of pattern of when this function works and when it does not. The only essential difference between the values I pass in for message is the one that does not always work includes a link. Apparently anyone useing AOL email is particularly vulnerable to this problem. Is it likely that AOL and other mail servers sometimes block any email from a web site if it has a link in the main body? Or should I not be useing mail() in this manner to begin with? Maybe you are not generating the message headers and body properly. Without seeing the code that you use to define $message, it is hard to tell. I just suggest that you try this class to properly compose and send your messages: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Re: mail() function and AOL users
Hello!! That's not always true. I just sent mail using php to my AOL account, and it worked. The smtp mail server doesn't have a reverse dns lookup. His problem might be that the SMTP server he is using my be on the black list. http://www.ordb.org/ This will cause a ton of problems. It took me 3 weeks to get off that list!!! Anyway... Instead of sending it like this... mail($email, application submitted, $message, From: [EMAIL PROTECTED]); Do something like this... $text = stripslashes($text); $subject = stripslashes($sub); $header = From: $From\nReply-To: $From\n; $header .= Cc: $cc\n; $header .= MIME-Version: 1.0\n; $header .= Content-Type: text/plain\n; $header .= Content-Transfer-Encoding: 8bnoit\n\n; $header .= $text\n; mail($To, $subject, , $header); I alwasy like working with strings Dan -Original Message- From: RJameson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 9:12 AM To: php-db Subject: RE: [PHP-DB] Re: mail() function and AOL users I'm quite sure it's not a problem with the mail function. It's probably the reverse dns configuration on your SMTP/sendmail server. AOL Verizon have been two real sticklers for that. If you know the IP address that your server is sending the email from you can use this: http://www.dnsstuff.com/tools/ptr.ch?ip=YOURIPADDRESS To check the revers dns resolution. You may be surprised. Ryan -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:28 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: mail() function and AOL users Hello, On 12/12/2003 04:34 AM, Matt Perry wrote: I use the following php mail function in an online applicaiton program: mail($email, application submitted, $message, From: [EMAIL PROTECTED]); This function does not always work when I modify $message. I have checked for null values for $message already but this does not seem to be the problem. I am trying to develop some sort of pattern of when this function works and when it does not. The only essential difference between the values I pass in for message is the one that does not always work includes a link. Apparently anyone useing AOL email is particularly vulnerable to this problem. Is it likely that AOL and other mail servers sometimes block any email from a web site if it has a link in the main body? Or should I not be useing mail() in this manner to begin with? Maybe you are not generating the message headers and body properly. Without seeing the code that you use to define $message, it is hard to tell. I just suggest that you try this class to properly compose and send your messages: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: mail() function and AOL users
This is something I've been dealing with for a little too long. AOL has a big list of methods they use to block what they think are spam. Some of these things are: - Reverse DNS Lookups: If you don't have an entry, your mail is dumped - Mail Formatting: If the format of your message is not RFC Compliant, your mail is dumped. - Open Relay Lists: If your IP is on a blacklist, your mail is dumped. - MX Record Lookups: If the domain of your address does not have an MX record, your mail is dumped. - Dynamic IP Lists: If you are on a (known) dynamically assigned IP address, your mail is dumped. - Message Content: If your message contains obfuscated (hex-coded) URL's, your mail is dumped. - Rolling Blockouts: Aol has been known to block whole blocks of IP's just because they feel like it. The list goes on like this for awhile. For more info, pay a visit to http://postmaster.info.aol.com/ --JMR [EMAIL PROTECTED] wrote: Hello!! That's not always true. I just sent mail using php to my AOL account, and it worked. The smtp mail server doesn't have a reverse dns lookup. His problem might be that the SMTP server he is using my be on the black list. http://www.ordb.org/ This will cause a ton of problems. It took me 3 weeks to get off that list!!! Anyway... Instead of sending it like this... mail($email, application submitted, $message, From: [EMAIL PROTECTED]); Do something like this... $text = stripslashes($text); $subject = stripslashes($sub); $header = From: $From\nReply-To: $From\n; $header .= Cc: $cc\n; $header .= MIME-Version: 1.0\n; $header .= Content-Type: text/plain\n; $header .= Content-Transfer-Encoding: 8bnoit\n\n; $header .= $text\n; mail($To, $subject, , $header); I alwasy like working with strings Dan -Original Message- From: RJameson [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 9:12 AM To: php-db Subject: RE: [PHP-DB] Re: mail() function and AOL users I'm quite sure it's not a problem with the mail function. It's probably the reverse dns configuration on your SMTP/sendmail server. AOL Verizon have been two real sticklers for that. If you know the IP address that your server is sending the email from you can use this: http://www.dnsstuff.com/tools/ptr.ch?ip=YOURIPADDRESS To check the revers dns resolution. You may be surprised. Ryan -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 10:28 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: mail() function and AOL users Hello, On 12/12/2003 04:34 AM, Matt Perry wrote: I use the following php mail function in an online applicaiton program: mail($email, application submitted, $message, From: [EMAIL PROTECTED]); This function does not always work when I modify $message. I have checked for null values for $message already but this does not seem to be the problem. I am trying to develop some sort of pattern of when this function works and when it does not. The only essential difference between the values I pass in for message is the one that does not always work includes a link. Apparently anyone useing AOL email is particularly vulnerable to this problem. Is it likely that AOL and other mail servers sometimes block any email from a web site if it has a link in the main body? Or should I not be useing mail() in this manner to begin with? Maybe you are not generating the message headers and body properly. Without seeing the code that you use to define $message, it is hard to tell. I just suggest that you try this class to properly compose and send your messages: http://www.phpclasses.org/mimemessage -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: mail() function and AOL users
Matt Perry wrote: I use the following php mail function in an online applicaiton program: mail($email, application submitted, $message, From: [EMAIL PROTECTED]); This function does not always work when I modify $message. I have checked for null values for $message already but this does not seem to be the problem. I am trying to develop some sort of pattern of when this function works and when it does not. The only essential difference between the values I pass in for message is the one that does not always work includes a link. Apparently anyone useing AOL email is particularly vulnerable to this problem. Is it likely that AOL and other mail servers sometimes block any email from a web site if it has a link in the main body? Or should I not be useing mail() in this manner to begin with? -Matt Are you doing this on your own server? If so, your problem is likely due to AOL blocking dynamic IPs from sending e-mail to them. Even if this is a real server, you could still have these problems. Are you getting bounces back? The solution is to route all of your e-mails through a trusted mail server, such as that of your ISP. You can use a mailing package which sends the mail to a mail server (instead of sending it locally). One such is PEAR's Mail package. Use the smtp backend. You can also do this on your server. If you need more help with this, mail me off-list. -- paperCrane Justin Patrin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: mail() function and AOL users
Hello, On 12/12/2003 04:34 AM, Matt Perry wrote: I use the following php mail function in an online applicaiton program: mail($email, application submitted, $message, From: [EMAIL PROTECTED]); This function does not always work when I modify $message. I have checked for null values for $message already but this does not seem to be the problem. I am trying to develop some sort of pattern of when this function works and when it does not. The only essential difference between the values I pass in for message is the one that does not always work includes a link. Apparently anyone useing AOL email is particularly vulnerable to this problem. Is it likely that AOL and other mail servers sometimes block any email from a web site if it has a link in the main body? Or should I not be useing mail() in this manner to begin with? Maybe you are not generating the message headers and body properly. Without seeing the code that you use to define $message, it is hard to tell. I just suggest that you try this class to properly compose and send your messages: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Mail Function
Graeme McLaren wrote: Evening all, I've written a script which sends emails, there is no problem with that. I was wondering how I can check for email bounces, anyone know how to do that? Cheers, G :) using php 4.3.3 i did the following observation: using the php mail function i created multi-bodypart mail (doing eventual quoted-printable and/or bas64 encoding all myself). but 1 % of all messages i sent through this interface was rejected by a server under-way, because of illegal characters in the header. i did not find out which characters where illegal, but when i finally omitted to use the php mail-function and created the message string/file all myself and submitted it to sendmail (/usr/sbin/sendmail mailfile ), no header errors where detected any more. suomi -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Mail Function
see www.php.net/imap Graeme McLaren [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Evening all, I've written a script which sends emails, there is no problem with that. I was wondering how I can check for email bounces, anyone know how to do that? Cheers, G :) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: mail function
Hello, On 10/30/2003 05:50 AM, Ng Hwee Hwee wrote: i need to use a mail() function to send a job application to my inbox when an applicant goes online and complete the application form. However, when the contents of a certain field is very long, the message i get in my inbox is truncated! can anyone help me please? i've tried word wrap, chunk_split and chop but none worked.. the field in the form is something like textarea name=experience cols=50 rows=8/textarea. There are limits to the length of lines of e-mail messages. If you can wrap lines to make them have no more than 75 characters that is ok. If not, you can use quoted-printable encoding that breaks lines after encoding, so the end mail program restores the original lines without the breaks. In either case, you may want to try this class that has a function named WrapText to break line between words. If you do not want to break the lines, the class can send you the message parts using quoted printable encoding. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: mail function
Hello, On 10/30/2003 05:50 AM, Ng Hwee Hwee wrote: i need to use a mail() function to send a job application to my inbox when an applicant goes online and complete the application form. However, when the contents of a certain field is very long, the message i get in my inbox is truncated! can anyone help me please? i've tried word wrap, chunk_split and chop but none worked.. the field in the form is something like textarea name=experience cols=50 rows=8/textarea. There are limits to the length of lines of e-mail messages. If you can wrap lines to make them have no more than 75 characters that is ok. If not, you can use quoted-printable encoding that breaks lines after encoding, so the end mail program restores the original lines without the breaks. In either case, you may want to try this class that has a function named WrapText to break line between words. If you do not want to break the lines, the class can send you the message parts using quoted printable encoding. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: mail function help
Here is an example how to use the mail-function right. Hope it helps. #mailtje versturen naar $m_adres = $klant_email; $m_subject = $onderwerp; $m_body = Onderwerp: $onderwerp\r\n\r\nUw link is: $link\r\nUw categorie is: $categorie\r\n\r\nU moet uw link bla bla\r\n\r\n; $mailsend = mail($m_adres, $m_subject, $m_body., From: [EMAIL PROTECTED]\r\n); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php