|
|
|
|
![]() ![]() |
Feb 24 2006, 01:45 AM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 195 Joined: 18-November 05 Member No.: 14,521 |
hello guys! i was thinking about the Mail() function coz lately all the mails i send to my friends are send as SPAM and honestly it is a little annoying due to some of them (maybe all of them) use hotmail and the mails they got arrive to the SPAM section, is there anything wrong with my script should i add more headers? and why scripts like the Zen Cart can send mails directly to the Inbox folder?
|
|
|
|
Feb 24 2006, 02:21 AM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,993 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Well, you didn't post anything about the script you are using, so we really don't know what you are sending, but chances are you aren't identifying enough information, so the emails are getting flagged as spam, yes.
Some reccomended headers would be "reply-to", "subject", "sender", "to". Format is "Keyword:String\r\n" ie: "Reply-to: myemail@somewhere.sometld\r\n" (no quotes) But you probably know all that... |
|
|
|
Feb 24 2006, 05:38 AM
Post
#3
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 195 Joined: 18-November 05 Member No.: 14,521 |
QUOTE $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "X-Priority: 3\n"; $headers .= "X-MSMail-Priority: Normal\n"; $headers .= "X-Mailer: php\n"; $headers .= "From: \"".$one."\" <".$two.">\n"; that is my header, do you think it is lacking something? |
|
|
|
Feb 24 2006, 08:02 AM
Post
#4
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,993 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
From what I have read, the correct format is "crlf" and requires the "\n" of your headers to read "\r\n" as per above posting.
But I might be wrong. The source was 2 years old. (+/-) No doubt someone will correct either you or I if there is a discrepency. |
|
|
|
Feb 25 2006, 04:17 PM
Post
#5
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 195 Joined: 18-November 05 Member No.: 14,521 |
so you suggest me to add "\r" to all the lines? so it would fit like?
QUOTE $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "X-Priority: 3\r\n"; $headers .= "X-MSMail-Priority: Normal\r\n"; $headers .= "X-Mailer: php\r\n"; $headers .= "From: \"".$one."\" <".$two.">\r\n"; by the way what does "crlf" mean? |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 06:25 AM |