Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email sending failed: invalid-sender #75

Closed
Flipmediaco opened this issue Jun 7, 2018 · 16 comments
Closed

Email sending failed: invalid-sender #75

Flipmediaco opened this issue Jun 7, 2018 · 16 comments

Comments

@Flipmediaco
Copy link

Describe the bug
Order, Shipping Emails not sent. Attempting to email a comment on an order results in a alert pop up stating "Email sending failed: invalid-sender". Forgot password, Contact Form and Mandrill test emails are sent. I suspect there is an issue with the "Form" aspect of the sales and shipping emails when Mandrill is called to send. In all email cases above the from / sender email address is the same.

To Reproduce
Steps to reproduce the behavior:

  1. Place Order via Magento Checkout
  2. No sales / order confirmation email delivered
  3. Login to admin area and locate order placed
  4. Submit order comment ticking box "Notify Customer by Email"
  5. Alert box states "Email sending failed: invalid-sender"

Expected behavior
Sales, Order Confirmation emails sent / delivered.

Additional context
Prior to upgrading to Magento ver. 2.2.4 and Ebizmarts_Mandrill 3.0.13 this was not an issue. No changes were made to configuration.

@jaredchu
Copy link

I'm facing the same issue.
Magento 2.2.4
Ebizmarts_Mandrill 3.1.0

@Flipmediaco
Copy link
Author

Hi jaredchu

This issue is not related to this Extension. You will have updated to Magento 2.2.4, this comes packaged with 3 Amazon Extensions supporting Amazon Pay. Assuming you do not require Amazon pay disabling these 3 Amazon Extension will result in normal email sending for Order Emails.

I have not tested if this issue has been fixed in 2.2.5 as since applying the update the Amazon Extensions remain disabled.

@jaredchu
Copy link

jaredchu commented Jul 11, 2018

I tried to disable Ebizmarts_Mandrill in Magento backend and the order email is sending OK now.
I'm looking forward to an official solution.

@Flipmediaco
Copy link
Author

Flipmediaco commented Jul 11, 2018

I found that with Ebizmarts_Mandrill disabled email transport started working for Order emails but the from address was not the address configured in Magento, it was [website user]@[isp host name] - this is far from ideal as the customer reply to address is not correct.

The issue I suspect is the Amazon module is introducing a format error in the from address header. In the case of Mandrill it refuses to send the email due to this returning "Invalid Sender", in the case of your servers SMPT is simply defaults to the site user / host.

See: magento/magento2#14952

To resolve disabled Amazon, via command line in site document root run:-

php -d memory_limit=-1 ./bin/magento module:disable Amazon_Payment
php -d memory_limit=-1 ./bin/magento module:disable Amazon_Login
php -d memory_limit=-1 ./bin/magento module:disable Amazon_Core
php -d memory_limit=-1 ./bin/magento module:enable Ebizmarts_Mandrill

Then clear cache, deploy static content etc...

@jaredchu
Copy link

@Flipmediaco it worked, thank you so much for your help!!!

@Flipmediaco
Copy link
Author

This issue relates directly to the Amazon Pay module and I am therefore closing this. Hopefully the solution will help others until the Amazon Pay bug is resolved.

@josh-carter
Copy link

Seeing this happening on Magento 2.2.7 without Amazon modules installed.

Anyone else getting this?

Looks as though they've changed some stuff with the TransportBuilder in 2.2.7

@Flipmediaco
Copy link
Author

Flipmediaco commented Dec 6, 2018

Mandrill stopped working as soon as we upgraded to Magento 2.2.7

Amazon modules remain disabled on this site

Any other feedback on this would be great - seen how I am stuck a double whammy of M1 patch error.

gonzaloebiz added a commit that referenced this issue Dec 6, 2018
@gonzaloebiz
Copy link
Contributor

Hi @Flipmediaco @josh-carter

can you try applying the associated commit? 1368bcf

Best

@josh-carter
Copy link

@gonzaloebiz @Flipmediaco Yep - can confirm its working again with that commit, thanks @gonzaloebiz

@dzierzega
Copy link

I have the same issue aftter upgrading magento to version 2.2.7
When we can expect the offical fix?

@DigitalStartupUK
Copy link

Thank you @gonzaloebiz for the commit. You saved me a headache. I don't suppose you've heard when your commit make make it into an official release?

@gonzaloebiz
Copy link
Contributor

Will try next week

@davesims11
Copy link

@gonzaloebiz We seem to be having the same problem when trying to send emails out that has been mentioned above, have added the patch from the commit for now, but when will this be part of the official release?

@srenon
Copy link

srenon commented Mar 13, 2019

@gonzaloebiz ... did you merge this in the latest release?

gonzaloebiz added a commit that referenced this issue Mar 14, 2019
gonzaloebiz added a commit that referenced this issue Mar 14, 2019
@gonzaloebiz
Copy link
Contributor

@srenon

you have a new version 3.2.17 including this fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants