Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 30-04-05
lazy student
 
Join Date: Aug 2003
Posts: 362
Thanks: 0
Thanked 0 Times in 0 Posts
giveasyouget is an unknown quantity at this point
  PHP mail() function and spam filters

Hi guys,

I'm trying to implement the PHP mail() function on my site but messages keep getting gettting put in my bulk mail folder. This may be because I've deleted several messages from the site in the past, but i honestly can't remember whether this was while on the current server or on the last one, so i dunno if it's doing it by ip or because i'm not sending enough headers or something.

Can anyone give me an idea of the headers they include when mailing with PHP, please?

many thanks,

Jonny
__________________
vso volunteer - vietnam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 30-04-05
morleymouse's Avatar
Super Member
 
Join Date: Aug 2003
Location: Costa Del Sheffield
Posts: 2,752
Thanks: 3
Thanked 10 Times in 6 Posts
morleymouse is an unknown quantity at this point
$headers="From: You <you@site.com>\nReturn-Path: <you@site.com>\r\nTo: Them <them@site.com>\r\nReply-To: You <you@site.com>\n";

should get through okay

so you'd have...

mail(them@site.com, "Subject", $emailbody, $headers);
__________________
Dan Morley
Alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 30-04-05
lazy student
 
Join Date: Aug 2003
Posts: 362
Thanks: 0
Thanked 0 Times in 0 Posts
giveasyouget is an unknown quantity at this point
Thanks dan - i think it was either the missing return path or the fact that teh body of the mail only contained 4 words, but it's working now.
Cheers,
Jonny
__________________
vso volunteer - vietnam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-05-05
OLBG's Avatar
aka Antony
 
Join Date: Mar 2005
Location: Bristol
Posts: 528
Thanks: 0
Thanked 0 Times in 0 Posts
OLBG is an unknown quantity at this point
I still get quite a few issues with OLBG registrations with people saying that the email is empty or that the link doesnt work (e.g. its corrupted).

Does anyone have a robust set of headers they use that work

As well as the standard ones in Dans post above Ive come across mention of all sorts of others that Im not sure if they are useful to me or not. e.g.


MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
X-Mailer: PHP 4.x

Anyone know what the significance of these are?

Also does anyone have experience of whether to separate headers with "\n" or "\r\n"
__________________
Antony
Free Tipster Competition
Affiliate Program on POR - up to £2/lead
Grand National Guide
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7