Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
need help: trouble with mail function....
Old 12-25-2005, 11:58 PM need help: trouble with mail function....
cuongdm's Avatar
Skilled Talker

Posts: 63
Name: Cuong Dao M.
Location: Vietnam
Trades: 0
hi guys,
i use function mail() from my website but it doesn't work as i expected.... emails (verification emails when people register) always go to BULK mail (Yahoo acc) at the first time, if i check to "Not Spam" the next time it will go to Inbox as i want... BUT, sure people don't have the will to find my emails in BULK and do like i did...
I have another email acc that checked by OE, emails from my site can't go to this acc either....
how can i do now?
-------------
thanks for any comments?
__________________
visit my site :) [
Please login or register to view this content. Registration is FREE
]
cuongdm is offline
Reply With Quote
View Public Profile Visit cuongdm's homepage!
 
 
Register now for full access!
Old 12-26-2005, 03:59 AM
Ultra Talker

Posts: 251
Location: Belgium, Antwerp, Zoersel
Trades: 0
I'm afraid this hasn't anything to do with the mail() function; but with either the content of your mail, or yahoo's spamfilter.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Orodreth is offline
Reply With Quote
View Public Profile Visit Orodreth's homepage!
 
Old 12-26-2005, 05:01 AM
stOx's Avatar
Machine

Latest Blog Post:
Worlds Smallest Car - Peel P50
Posts: 2,111
Name: Matt. (>',')>
Location: London, England.
Trades: 0
You can reduce the chance of them being marked as spam by making sure your headers are intact and accurate. The main reason mail() gets spammed is because they don't include headers.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
stOx is offline
Reply With Quote
View Public Profile Visit stOx's homepage!
 
Old 12-26-2005, 06:01 AM
cuongdm's Avatar
Skilled Talker

Posts: 63
Name: Cuong Dao M.
Location: Vietnam
Trades: 0
thank guys, i did try to add more headers but the problem still appear... someone told me ab using smtp but i don't know how to do it... any hint?
__________________
visit my site :) [
Please login or register to view this content. Registration is FREE
]
cuongdm is offline
Reply With Quote
View Public Profile Visit cuongdm's homepage!
 
Old 12-26-2005, 06:11 AM
someguy's Avatar
Extreme Talker

Posts: 151
Location: UK
Trades: 0
If you get the headers right (and your server hasn't been flagged as a problem) then Hotmail and Yahoo should be OK. AOL can be trickier to get around, as their spam filters do seem a lot dummer than others.

This is off the top of my head, so no promises, but I think that the following should work OK for virtually all providers:

PHP Code:
function send_mail($fromname$fromemail$toname$toemail$subject$message) {
      
$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."\" <".$fromemail.">\n";
      return(
mail("\"".$toname."\" <".$toemail.">"$subject$message$headers));
    } 
someguy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need help: trouble with mail function....
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20904 seconds with 12 queries