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
PHP mail() won't send to Gmail
Old 11-07-2009, 09:25 PM PHP mail() won't send to Gmail
Experienced Talker

Posts: 48
Name: Craig
Trades: 0
Has anyone else ever had this problem? I have a form that uses mail() to send form info to an email. It sends mail just fine to any email account I try except for my email domain that uses Google Apps. Does Gmail have something against HTML formatting from a php generated email?
werm82 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-08-2009, 04:47 AM Re: PHP mail() won't send to Gmail
Bertjeuh's Avatar
Average Talker

Posts: 25
Name: Bert Van Leemput
Trades: 0
It's possible that the mail is in your spam folder?

You can try to send a email with only plain text, and see if it works well?
__________________
There Are Only 10 Types of People in the World: Those Who Understand Binary, and Those Who Don't.
Bertjeuh is offline
Reply With Quote
View Public Profile
 
Old 11-08-2009, 05:44 AM Re: PHP mail() won't send to Gmail
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
doesn't send it or you don't receive it?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-08-2009, 10:43 AM Re: PHP mail() won't send to Gmail
Experienced Talker

Posts: 48
Name: Craig
Trades: 0
Doesn't receive it, I'm guessing. Every time I send it, I get a "success" message. I commented out the MIME and content type headers. I changed the $to email address, and it showed up right away in a different inbox.
werm82 is offline
Reply With Quote
View Public Profile
 
Old 11-08-2009, 11:09 AM Re: PHP mail() won't send to Gmail
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
lots of possibilities

No reverse DNS lookup.
The headers look like spam message.

and a few other things.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-09-2009, 01:33 PM Re: PHP mail() won't send to Gmail
Experienced Talker

Posts: 48
Name: Craig
Trades: 0
Hmmmm... I guess as long as I can get the mail from at least one email address its not detrimental. Thanks for the input!
werm82 is offline
Reply With Quote
View Public Profile
 
Old 11-10-2009, 05:31 AM Re: PHP mail() won't send to Gmail
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
from php manual for mail():

Return Values
Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.

It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination.
__________________

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

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to PHP mail() won't send to Gmail
 

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.24481 seconds with 12 queries