Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Mail() Function, the mails are sent as SPAM!!
spy_charly
post 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?
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

Group: [MODERATOR]
Posts: 3,993
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



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...
Go to the top of the page
 
+Quote Post
spy_charly
post 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?
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

Group: [MODERATOR]
Posts: 3,993
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



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.
Go to the top of the page
 
+Quote Post
spy_charly
post 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?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Advanced Guestbook 2.3.1 Spam Issue(2)
  2. Any Good E-mail Newsletters?(3)
  3. I Won't Do It Again!(5)
  4. Error When Using Imagefilter()(1)
  5. Mail Settings To Configure Outlook Express(10)
  6. Sending Mail Problems(9)
  7. Where Is The Mail Server Info?(5)
  8. How To Delete A Mail From My Webmail Admin(2)
  9. Need Help With Web Mail(2)
  10. Sending Mail(3)
  11. Mailing Lists(1)
  12. Concerned Security With Hosting Application Info(5)
  13. Sendmail Vs Mail() And Smtp(3)
  14. Bandwidth Mail(3)
  15. Mail Problem(12)
  1. Why Spam Is Spreading Through My Domain Email(19)
  2. E-mail Log-in(2)
  3. Mx Mail Question(1)
  4. Is The Report Function Working?(3)
  5. Mac Mail And Server Settings(2)
  6. Trap17 Mail Exchange Servers(4)
  7. Genuine Help With Smtp And Php Mail() Function(3)
  8. Errors With Php Setcookie() And Headers! Please Help!(2)
  9. Did I Spam?(4)
  10. Web Mail Forwarding Not Working?(0)
  11. Our Own Email Account(7)
  12. Keep Getting Socket Error(3)
  13. Spammers Using My Domain To Send Spam(4)


 



- Lo-Fi Version Time is now: 6th September 2008 - 06:25 AM