Page 1 of 1
Does Mandrill / other transactionel email service work with opencart?
Posted: Sat Feb 18, 2017 7:43 pm
by Xerobia
I'm trying out mandrill for the delivery of transactional emails but i'm bumping into a problem with the contactform.
In the mailsettings i've entered mandrill's SMTP info.
But now when someone fills in the contactform the message gets rejected by mandrill. Why is that?
Do i need a mandrill plugin for my opencart store?
Re: Does Mandrill / other transactionel email service work with opencart?
Posted: Sun Feb 19, 2017 12:14 am
by uksitebuilder
I use a mixture of SendGrid and Mailgun and have not had a problem.
What are the error reports from Mandrill saying ?
Re: Does Mandrill / other transactionel email service work with opencart?
Posted: Sun Feb 19, 2017 3:53 pm
by Xerobia
Uksitebuilder thanks for your reply,
The error is; rejected: unsigned.
Then when i go to settings -> domains in mandrill, it displays all the domains that people have their email address with; like hotmail.com, gmail.com etc. Those domains require verification, DKIM and a SPF record.
It looks like mandrill sees those domains as the sending domains when someone fills in the contact form.
Can the contactform be modified so that that doesn't happen? I don't know if i'm making sense.
A quote from mandrill on the rejected unsigned issue
Note
Reject Reason: unsigned means that the message was sent from a domain that hasn't been fully configured for Mandrill.
You must add SPF and DKIM records and verify ownership of your sending domains before you can send email through your account. Mandrill will not send any email from unverified domains or domains without valid SPF and DKIM records.
That's just impossible, so the contactform needs to be modified?
How's sendgrid working for you? Did you have to modify anything in the mailsettings or the contactform? Or are you using an extension?
Thanks
Re: Does Mandrill / other transactionel email service work with opencart?
Posted: Sat Feb 25, 2017 6:34 pm
by Xerobia
I've receive a reply from mandrill.
Thank you for writing in. It looks like your contact form is using the person filling out the form's address as the sender, which is why you are seeing the rejections. Your best bet is to change your contact form to send using your verified address in the from header, and the other address in the reply-to header. Currently, if you attempt to send through any unverified domains (such as public domains like yahoo.com and gmail.com) they will be rejected as 'unsigned.'
Is there a simple way to fix the contactform as described above? An extension perhaps?
Thanks
Re: Does Mandrill / other transactionel email service work with opencart?
Posted: Sat Feb 25, 2017 6:56 pm
by uksitebuilder
I was assuming you are using the latest version of OpenCart as you hadn't mentioned your version.
OC 2302 does use the admin email/domain as the from address for emails sent via the store (contact/orders/etc)
Re: Does Mandrill / other transactionel email service work with opencart?
Posted: Sun Feb 26, 2017 3:17 pm
by Xerobia
I'm running OC 2.2.0.0
So upgrading to the latest version would fix the problem in theory.
Re: Does Mandrill / other transactionel email service work with opencart?
Posted: Mon Feb 27, 2017 4:40 am
by uksitebuilder
Actually, I have an OCMoD installed for a bunch of bug fixes which seems to have introduced this in to my OC2302 version.
Please find attached which should work for your version
I am assuming the problem lies only with the contact form emails, as all the others in your version have the from address set as the admin email.
Re: Does Mandrill / other transactionel email service work with opencart?
Posted: Tue Feb 28, 2017 12:32 am
by Xerobia
I just changed everything to use gmail's mailserver. transactional and customerservice emails finally get delivered, none are flagged as spam anymore and it works fine this way with OSticket v 1.1.
But, I prefer to use mandrill and my own @domain.com email address instead of @gmail.com so i'll take at your OCmod. Thanks.