Re: [PHP] X-Mailer and headers when sending mail
Thanks, Paul and Curt, I will have a look at those suggestions, meanwhile the error Im getting is: Yes, hits=6.4 required=5.0 tests=HEADER_COUNT_CTYPE, INVALID_MSGID,MSGID_NO_HOST,PRIORITY_NO_NAME,X_PRIORITY_HIGH autolearn=no version=2.63 ** * 0.5 X_PRIORITY_HIGH Sent with 'X-Priority' set to high * 1.3 MSGID_NO_HOST Message-Id has no hostname * 2.0 HEADER_COUNT_CTYPE Multiple Content-Type headers found * 0.8 PRIORITY_NO_NAME Message has priority setting, but no X-Mailer * 1.8 INVALID_MSGID Message-Id is not valid, according to RFC 2822 -so I assume that this mail is seen as spam, because of the X-Priority is set to High, I will set it to normal. -the message-ID is invalid. I will do what you suggested in your reply to my first post as I was omitting it. -I will also set the X-Mailer, as it was also omitted. Is there anything else Im missing from the above? Once I set it up and do some tests will let you know the results thanks Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] X-Mailer and headers when sending mail
On Mon, 2006-03-13 at 13:41 -0800, Angelo Zanetti wrote: * 0.5 X_PRIORITY_HIGH Sent with 'X-Priority' set to high * 1.3 MSGID_NO_HOST Message-Id has no hostname * 2.0 HEADER_COUNT_CTYPE Multiple Content-Type headers found * 0.8 PRIORITY_NO_NAME Message has priority setting, but no X-Mailer * 1.8 INVALID_MSGID Message-Id is not valid, according to RFC 2822 Looks like setting X-Mailer should do the trick --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] X-Mailer and headers when sending mail
Paul Scott wrote: On Mon, 2006-03-13 at 13:41 -0800, Angelo Zanetti wrote: * 0.5 X_PRIORITY_HIGH Sent with 'X-Priority' set to high * 1.3 MSGID_NO_HOST Message-Id has no hostname * 2.0 HEADER_COUNT_CTYPE Multiple Content-Type headers found * 0.8 PRIORITY_NO_NAME Message has priority setting, but no X-Mailer * 1.8 INVALID_MSGID Message-Id is not valid, according to RFC 2822 Looks like setting X-Mailer should do the trick --Paul Thanks again!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] X-Mailer and headers when sending mail
On Thu, Mar 09, 2006 at 05:27:11PM -0800, Angelo Zanetti wrote: Hi guys. When adding additional headers to an email that gets sent from the mail function. What purpose does the X-Mailer have? Any X-* header is generally a header that is not a standard but a way to trace things. Or still in eXperimental mode, not a standard yet, but a (becomming) common practice. X-Mailer:, has been in practice, to specify what software version/versions automatically mailed the email, usually from sort of script, ie: X-Mailer: phpmailer-3.2/php-4.3 Also are the following linked: -X-Priority -Importance -X-MSMail-Priority No. Personally, those things are rather useless, practically everyone sends message with those flags set at 'High', my client ignores those. Another question is can I omit the Message-ID for the email? or will this result in some mail servers viewing the mail as spam? What criteria do I use to generate the Message-ID? The message-id is generated by the MTA you shouldn't be generating this on your own. The only basic headers you ever (really) need to send is: To: valid email address From: valid from address Subject: A Subject Subject even isn't 100% needed. I've seen: $headers .= Message-ID: .date(YmdHis).you@.$_SERVER['SERVER_NAME'].\n; is this ok? No, forget about message-id in your headers. Perhaps if someone has a link on the headers for a mail that could help me it would be much appreciated. There are quite a few on google, I'm not entirely clear what focus you desire on the headers you desire. Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] X-Mailer and headers when sending mail
Hi guys. When adding additional headers to an email that gets sent from the mail function. What purpose does the X-Mailer have? Also are the following linked: -X-Priority -Importance -X-MSMail-Priority Another question is can I omit the Message-ID for the email? or will this result in some mail servers viewing the mail as spam? What criteria do I use to generate the Message-ID? I've seen: $headers .= Message-ID: .date(YmdHis).you@.$_SERVER['SERVER_NAME'].\n; is this ok? Perhaps if someone has a link on the headers for a mail that could help me it would be much appreciated. Thanks in advance -- Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052 [f] +27 86 681 5885 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] X-Mailer and headers when sending mail
On Thu, 2006-03-09 at 17:27 -0800, Angelo Zanetti wrote: When adding additional headers to an email that gets sent from the mail function. What purpose does the X-Mailer have? It identifies the mail client. So I normally set X-Mailer = MySite Mailer; or something. This directive won't normally cause problems with servers, but the Reply-To header will. Some servers reject mail without a valid return address, mainly because this is a spam trick. Its a reverse lookup of sorts on the mail server side. Also are the following linked: -X-Priority -Importance -X-MSMail-Priority Yes, MSMail-Priority is for Microsoft clients, Importance is for Mac clients (I think) and X-Priority is for the rest of the known universe that adheres to standards. Another question is can I omit the Message-ID for the email? or will this result in some mail servers viewing the mail as spam? What criteria do I use to generate the Message-ID? Message-ID is OK to omit In my experience, but see above for Reply-To I've seen: $headers .= Message-ID: .date(YmdHis).you@.$_SERVER['SERVER_NAME'].\n; is this ok? I would do a date(r) for a nice RFC format date and time, but it should be OK. Perhaps if someone has a link on the headers for a mail that could help me it would be much appreciated. http://za2.php.net/ mail function. --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php