Answers.Body: <p>So I am assuming that the only thing that changed between "it worked" and "it doesn't" is to switch from your own smtp to your gmail one.</p>
  
  <p>Beside the problem you mention, using smtp from gmail will not work to send mass emails, they have a lot of limits and as soon as your list has more than a handful of emails, you will have problems.</p>
  
  <p>There as several providers (sendgrid, mailjet...) that are integrated with civi, and I'd recommend you switching to one of them</p>
  
  <p>And it should solve out your gmail.com problem too</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-14T16:58:48.900Z
Answers.LastActivityDate: 2018-11-14T16:58:48.900Z
Answers.UserDisplayName: Xavier
Body: <p>I setup a default adress in <strong>CiviMail -> From Email Adresses</strong> , like this : </p>
  
  <p><code>"Example" &lt;example@example.org&gt;</code></p>
  
  <p>but the problem is that when I send mails, the "From adress" change and become :</p>
  
  <p><code>"Example" &lt;xxxx@gmail.com&gt;</code></p>
  
  <p>(I specify that I use a gmail account in the SMTP sending settings)</p>
  
  <p>Is it possible to force that mailing adress so it become "example@example.org" ?</p>
  
  <p>At the begining, I was using a private adress (in my own domain) for civiCRM SMTP's settings (and it worked fine), but lately we need to migrate these mails to Office365 / Exchange mails and I have never been able to get CiviCRM mailings to work with the new Office365/Outlook/Exchange settings, that's why I opted for an SMTP account that uses gmail.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-06T19:29:25.683Z
Comments.Text: have you checked both /civicrm/admin/domain?action=update&reset=1 and /civicrm/admin/options/from_email_address?reset=1
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-07T09:48:44.310Z
Comments.Text: I try the first link ( `/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fdomain%3Faction%3Dupdate&reset=1` in my wordpress )  and I land on the admin page with no particular message.
  I try the second with `/wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/options/from_email_address?reset=1` but I got an error
  
  and it seems like I got the same problem with the "from" email changing.
Comments.UserDisplayName: Kevin MARTIN
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-07T09:58:08.610Z
Comments.Text: @petednz-fuzion The error in log file : https://pastebin.com/raw/b4SyVE1u
Comments.UserDisplayName: Kevin MARTIN
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-07T10:11:24.003Z
Comments.Text: also, I replaced the "?" with a "&" in the second link and it seems to works, I land on the "From Email Adresses" page , but the xxx@gmail.com email continues to appear in the From field of my mailings.
Comments.UserDisplayName: Kevin MARTIN
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-07T14:00:14.970Z
Comments.Text: What version of Civi are you running? Just a note that in 4.7.30 they removed the duplicate 'From email address' setting in the organizational contact that petednz is referring to in the first link.
Comments.UserDisplayName: RayWright
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-07T15:43:11.370Z
Comments.Text: @RayWright I use version 5.5.1
Comments.UserDisplayName: Kevin MARTIN
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-07T16:35:56.193Z
Comments.Text: Pretty sure that's an effect of sending via Gmail - it's an anti-spoofing thing if you try to send with a non-gmail account.
Comments.UserDisplayName: Aidan
Tags: <civimail>
Title: How do I replace the "From" address from my mailings?
ThreadText: # How do I replace the "From" address from my mailings?
  
  (Asked by: username_0 on 2018-11-06)
  
  I setup a default adress in **CiviMail -> From Email Adresses** , like this :
  
  `"Example"`
  
  but the problem is that when I send mails, the "From adress" change and become :
  
  `"Example"`
  
  (I specify that I use a gmail account in the SMTP sending settings)
  
  Is it possible to force that mailing adress so it become "example@example.org" ?
  
  At the begining, I was using a private adress (in my own domain) for civiCRM SMTP's settings (and it worked fine), but lately we need to migrate these mails to Office365 / Exchange mails and I have never been able to get CiviCRM mailings to work with the new Office365/Outlook/Exchange settings, that's why I opted for an SMTP account that uses gmail.
  
  **Tags:** civimail
  
  > **Comments:**
  > **username_1**: have you checked both /civicrm/admin/domain?action=update&reset=1 and /civicrm/admin/options/from_email_address?reset=1  
  > **username_0**: I try the first link ( `/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fadmin%2Fdomain%3Faction%3Dupdate&reset=1` in my wordpress )  and I land on the admin page with no particular message. I try the second with `/wp-admin/admin.php?page=CiviCRM&q=civicrm/admin/options/from_email_address?reset=1` but I got an error  and it seems like I got the same problem with the "from" email changing.  
  > **username_0**: @petednz-fuzion The error in log file : https://pastebin.com/raw/b4SyVE1u  
  > **username_0**: also, I replaced the "?" with a "&" in the second link and it seems to works, I land on the "From Email Adresses" page , but the xxx@gmail.com email continues to appear in the From field of my mailings.  
  > **username_2**: What version of Civi are you running? Just a note that in 4.7.30 they removed the duplicate 'From email address' setting in the organizational contact that petednz is referring to in the first link.  
  > **username_0**: @username_2 I use version 5.5.1  
  > **username_3**: Pretty sure that's an effect of sending via Gmail - it's an anti-spoofing thing if you try to send with a non-gmail account.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2018-11-14. Score: 0
  
  So I am assuming that the only thing that changed between "it worked" and "it doesn't" is to switch from your own smtp to your gmail one.
  
  Beside the problem you mention, using smtp from gmail will not work to send mass emails, they have a lot of limits and as soon as your list has more than a handful of emails, you will have problems.
  
  There as several providers (sendgrid, mailjet...) that are integrated with civi, and I'd recommend you switching to one of them
  
  And it should solve out your gmail.com problem too
  
  
  ---
  
  