Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The short answer - you can't.</p> <p>Google rewrites the From and Reply-To headers in messages you send via it's SMTP service to values which relate to your gmail account. </p> <p>The SMTP feature of gmail isn't intended to be an open or relay service. If it allowed any values for the From header, it would significantly dilute Google's standing with spam services, as there would be no way to verify the credentials of the sender.</p> <p>You need to consider alternatives. How are you planning to host your script/application/website when it's finished: virtually every hosting solutions (shared/vps/dedicated server) will come pre-configured with an email transfer solution: be it sendmail or postfix on *nix, or IIS on Windows.</p> <p>If you are intent on using gmail then you could:</p> <ul> <li>Setup a dedicated "myapp@gmail.com" account</li> <li>If you own the domain you are supposedly sending from, use the <a href="http://www.google.com/a/" rel="noreferrer">free gmail for domains</a>, and setup a "myapp@mydomain.com" account.</li> </ul> <p>====</p> <h3>Edit June 2015</h3> <p>It was suggested that GMail does allow <a href="https://support.google.com/mail/answer/22370?hl=en" rel="noreferrer">sending via different addresses</a>. As far as I can tell, this is for sending via the GMail wep app, and utilises your existing external SMTP server, which is not relevant to the original question.</p> <p>====</p> <h3>Edit Nov 2013</h3> <p>Seeing as this is still getting a trickle of votes. A quick update.</p> <p>Google have withdrawn their free GMail for domains. There are plenty of other free services around. One of note is <a href="http://mandrill.com/" rel="noreferrer" title="Mandrill">Mandrill</a> - a one-to-one email service intended for transactional emails (e.g. ecommerce orders etc.). It's ran by MailChimp, who pretty much know all there is to know about sending email at volume. They also give you 12k/month free, which is rather nice.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload