Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am sending email through the Mandrill gateway.
Site Default Email (on Site Information page): abc@xyz.com
"E-mail from address" on the SMTP configuration page: abc@example.com
When I send a test email, I see no error, but when I log into Mandrill and check the outbound emails, I saw that Mandrill rejected the email because it was sent by xyz.com, which it should have been sent by example.com.
As a workaround, you can change the Site Default Email to match the "Email from address."
Comments
Comment #2
estoyausenteI did a simple replace form site_mail to configured from mail (if is empty, we use site_mail instead)
Comment #3
asrobI changed "E-mail form address" to another one that different than site email but it didn't work.
Comment #4
asrobChanging priority because this form item are unusable.
Comment #5
kashandarash CreditAttribution: kashandarash at AnyforSoft, Drupal Ukraine Community commentedFixed email from bug and email from name
Comment #6
pazhyn CreditAttribution: pazhyn as a volunteer and at AnyforSoft commentedComment #9
kashandarash CreditAttribution: kashandarash at AnyforSoft, Drupal Ukraine Community commentedFixed patch in #4 comment
Comment #12
kashandarash CreditAttribution: kashandarash at AnyforSoft, Drupal Ukraine Community commentedComment #13
pazhyn CreditAttribution: pazhyn as a volunteer and at AnyforSoft, Drupal Ukraine Community commentedReturn-Path and Sender headers are also using From field in SMTP module settings now.
Comment #14
dpovshed CreditAttribution: dpovshed as a volunteer and at Drupal Ukraine Community commented@pazhyn, the patch from #13 looks simple and efficient, thank you!
There are only 2 minor codestyle glitches which I propose to correct:
1) line 93:
// Set SMTP module email from
2) if you removing double empty lines at ##113, 114, would be nice to remove one at lines 104, 105 as well.
Except these 2 cosmetic issues nothing wrong found. Code was also manually tested.
Comment #15
pazhyn CreditAttribution: pazhyn as a volunteer and at AnyforSoft, Drupal Ukraine Community commented@dpovshed, thank you for corrections.
Comment #16
pazhyn CreditAttribution: pazhyn as a volunteer and at AnyforSoft, Drupal Ukraine Community commentedComment #17
pazhyn CreditAttribution: pazhyn as a volunteer and at AnyforSoft, Drupal Ukraine Community commentedComment #18
pazhyn CreditAttribution: pazhyn as a volunteer and at AnyforSoft, Drupal Ukraine Community commentedComment #19
dpovshed CreditAttribution: dpovshed as a volunteer and at Drupal Ukraine Community commented#15 looks great, good to go!
Comment #20
Anonymous (not verified) CreditAttribution: Anonymous at Ashday Interactive Systems commented#15 worked for me also.
Comment #21
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #22
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #24
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commented