+ Reply to Thread
Results 1 to 6 of 6

Thread: Google apps and Contact form(Php send mail) inconsistency.

  1. #1
    ntsite's Avatar
    ntsite is offline x10 Sophmore ntsite is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    107

    Exclamation Google apps and Contact form(Php send mail) inconsistency.

    So guys, today I discovered that none of my active contact forms (2 are similar, 1 more differentiated) doesn't deliver mails to Google Apps mail account. (Don't tell me that it is related with x10hosting etc, it is not.) The reason for this must be because all of these contact forms are sending mails with the sender name as the user entered email address. Either Gmail/Google apps recognizes this and doesn't allow these mails to get received. The last time it worked was 30.12.11.*


    So what is the permament solution for this. I don't want to use different address rather than my domain and can't do without contact forms. Heard about implementing smtp...how to implement this still to make sure the contact form will send emails with user defined email address?

  2. #2
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: Google apps and Contact form(Php send mail) inconsistency.

    There were changes to the X10 mail() function around that time and the outgoing email header must now contain an address that is associated with the domain it's coming from eg: From: mysite@x10.. because sending an outgoing mail as somebody else is suspicious.

    Most contact form scripts put all the user submitted information, name,subject,content, email addrees, useragent, IP address etc in the message body of the outgoing email. This allows you to redirect the mail from an X10 subdomain emial address to your Gmail account without any fuss. Or you can set up an STMP mail script but you will still have to put everything in the message body so it sounds like your script needs a few tweeks.
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  3. #3
    ntsite's Avatar
    ntsite is offline x10 Sophmore ntsite is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    107

    Re: Google apps and Contact form(Php send mail) inconsistency.

    Thank you for response.


    Quote Originally Posted by cybrax View Post
    There were changes to the X10 mail() function around that time and the outgoing email header must now contain an address that is associated with the domain it's coming from eg: From: mysite@x10.. because sending an outgoing mail as somebody else is suspicious.
    I believe you missed my passage where I indicated above : "Don't tell me that it is related with x10hosting etc, it is not.". This is problem is only with gmail, and started to occur only startin 2012. Now I have temporal solution, but need to know for permanent.


    Quote Originally Posted by cybrax View Post
    Or you can set up an STMP mail script but you will still have to put everything in the message body so it sounds like your script needs a few tweeks.
    It seems more likely this solution will be the most useful one...but I suppose it will send it from only the address which has been specified in smtp settings...
    I prefer it to remain it as it was - to send mails from the user specified address.

  4. #4
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: Google apps and Contact form(Php send mail) inconsistency.

    Nope, did not mis-read your statement.

    Mentioned the X10 email policy change because it's caught a lot folk off guard with either very basic or unusual mailing scripts using no header information or ones like yours where the outgoing mail information does not belong to the account. Though the script will say its been sent, in reality the mail server bins it upstream and it never gets sent to gmail causing no end of confusion.

    Of course that's life on the Internet all over, you turn your back on a site for five
    minutes and find the rules have changed and everythings broke lol! Paid hosting
    may still allow you to send mail that way, but I'd get it in writing before paying.

    I for one am a tad curious though..
    why do you need to send mail pretending to come from somebody else?
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  5. #5
    ntsite's Avatar
    ntsite is offline x10 Sophmore ntsite is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    107

    Re: Google apps and Contact form(Php send mail) inconsistency.

    But why the problem is only with Gmail? I still can't believe that it is on X10 side, (sure if they didn't block outgoing mails specifically for Gmail).

    About your curiousity - I need it because when someone contacts I need to see from where it came, not that all mails from my own and to look inside what is the users mail address ))

  6. #6
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,153

    Re: Google apps and Contact form(Php send mail) inconsistency.

    It isn't only with Gmail -- the servers here will not send mail with a spoofed from header; the from address must be from your domain.

    Contact forms shouldn't be going to email in any case; they should be going to a CRM or trouble ticket database where they can be managed properly with status and other metadata.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

+ Reply to Thread

Similar Threads

  1. Help with google apps mail configuration MX ENTRY
    By modelsrinath64 in forum Free Hosting
    Replies: 2
    Last Post: 10-11-2011, 08:50 AM
  2. mail with google apps not working
    By jigar_shah8334 in forum Free Hosting
    Replies: 0
    Last Post: 09-21-2011, 06:34 AM
  3. cannot send messages through contact form from my site
    By populariavictoria86 in forum Free Hosting
    Replies: 0
    Last Post: 07-09-2011, 04:01 PM
  4. Activating Google Apps Mail Service
    By pradctgign in forum Free Hosting
    Replies: 10
    Last Post: 05-06-2010, 06:50 AM
  5. need help with a Make contact form and send email in PHP
    By zynischen in forum Programming Help
    Replies: 2
    Last Post: 12-17-2007, 06:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers