SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2005
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    using mail($row['email'], $subject, $content, $headers);

    Hi all, got a slight problem with the mail function in php.

    Im getting the email addresses from a database. Any email address that does ont end in @gmail.com will send fine. But when the email address is to @gmail.com, the email will never be recieve?

    Has any1 got any idea why this might be? Have gmail stopped programmers using the php mail function to send emails to their users?

    Any help with this issue would be much appreciated

  2. #2
    SitePoint Zealot
    Join Date
    Nov 2005
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, my mistake. I have recieved the email to the gmail account but its located in my spam folder. How would I go about getting an email to be placed in the inbox folder and not into the spam folder.

    Any ideas?

  3. #3
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which headers are you setting? From .. Reply-To etc?
    I've not had a problem sending to GMail if the From header is set (never tried without it).

  4. #4
    SitePoint Zealot
    Join Date
    Nov 2005
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    here is the header that i am using:

    $headers = ('From: support@bewisebets.co.uk' . "\r\n" .
    'Reply-To: support@bewisebets.co.uk' . "\r\n" .
    "MIME-Version: 1.0\n" .
    "Content-type: text/html; charset=iso-8859-1");

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To use Gmail as Relay SMTP Service it can be done easly, look at this: http://www.xpertmailer.com/forum/viewtopic.php?t=48

  6. #6
    SitePoint Member
    Join Date
    May 2006
    Location
    Planet Earth
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dazi_behappy
    Sorry, my mistake. I have recieved the email to the gmail account but its located in my spam folder. How would I go about getting an email to be placed in the inbox folder and not into the spam folder.

    Any ideas?
    This is going to depend on what you are sending. If it looks like spam and smells like spam it will be put in the spam folder. This isn't something that you get to control when you send people email.

    People receiving your messages, if they want them, can configure their email client to realize that your messages are not spam...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •