GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Jan-2006, 23:03
Snapple Snapple is offline
New Member
 
Join Date: Jun 2005
Posts: 16
Snapple is on a distinguished road
Question

How do I send better e-mails with PHP?


Right now when i send an e-mail it doesn't say it's from me, just my hosting company. How do I send an e-mail that's from my website *which has it's own e-mail address* that will have better chances of not falling in the "junk mail" filter?

right now my code looks like this...

mail($email, 'Mystic Crusade', $message);

($email and $message are provided earlier in the script)

people keep wanting to sign up but they never see my automated e-mail, please help me.
  #2  
Old 20-Jan-2006, 23:18
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 749
admin will become famous soon enough

Re: How do I send better e-mails with PHP?


Interesting question Snapple. I'd like to find out too...

My first question would be to ask you for your homepage. Why? I need to find out one thing before I can make a suggestion. If you prefer not to share this information inside this thread, please drop me an email with the url : giddomains@gmail.com
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #3  
Old 21-Jan-2006, 00:54
Snapple Snapple is offline
New Member
 
Join Date: Jun 2005
Posts: 16
Snapple is on a distinguished road

Re: How do I send better e-mails with PHP?


http://www.mysticcrusade.com

I think I figured it out, or rather, I found a code that works for me. check it out
PHP Code:

function MAIL_NVLP($fromname, $from, $toname, $email, $subject, $message)
{
   // Copyright  2005 ECRIA LLC, http://www.ECRIA.com
   // Please use or modify for any purpose but leave this notice unchanged.
   $headers  = "MIME-Version: 1.0\n";
   $headers .= "Content-type: text/plain; charset=iso-8859-1\n";
   $headers .= "X-Priority: 3\n";
   $headers .= "X-MSMail-Priority: Normal\n";
   $headers .= "X-Mailer: php\n";
   $headers .= "From: \"".$fromname."\" <".$from.">\n";
   $headers .= "Reply-To: YOU ADD THIS <YOU ADD THIS>\n";
   return mail($email, $subject, $message, $headers);
}
MAIL_NVLP($fromname, $from, $toname, $email, $subject, $message); 



that's more or less the code line for line. With a reply-to header, it bipasses most filters. It works for hotmail and yahoo atleast, that's all i've tested so far. hehe, feel free to go to my site, btw.
  #4  
Old 21-Jan-2006, 01:09
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

Re: How do I send better e-mails with PHP?


What I wanted to figure out was this: http://www.dnsreport.com/tools/dnsre...ticcrusade.com

Look at the data for Mail, especially the warning for SPF record... but if everything works now then you may not want to push your web host to set this up correctly for you.
  #5  
Old 24-Jan-2006, 20:47
Snapple Snapple is offline
New Member
 
Join Date: Jun 2005
Posts: 16
Snapple is on a distinguished road

Re: How do I send better e-mails with PHP?


okay yeah I really don't understand how to get on that list...
 
 

Recent GIDBlogA Week in Kuwait by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help ! I need help starting up on Php ! onauc MySQL / PHP Forum 11 04-Jan-2005 23:57
uisng php to display php dopee MySQL / PHP Forum 6 14-May-2004 18:40
php software dopee MySQL / PHP Forum 0 04-May-2004 11:26
All the big PHP script collections that matter jrobbio MySQL / PHP Forum 5 06-Jun-2003 16:14

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:04.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.