LaminSanneh / Octobercms-Flexi-Contact-Plugin

A plugin for october cms used for embedding a contact form on your website
15 stars 10 forks source link

Set replyTo instead of from-header when sending #16

Closed jakobfdev closed 8 years ago

jakobfdev commented 9 years ago

I'm having issues, since some mail providers do not allow "from"-header that does not match the (in october configured SMTP-) authorization. Is there any disadvantage, if instead using "replyTo". This way, a direct reply would address the sender and the authorization issue is solved. Otherwise the plugin user unknowingly changes the global october settings. At least this works for me. btw thanks for the plugin!

kieran21 commented 8 years ago

+100

To add - when the recipient uses Gmail (probably others) - an email with an arbitrary domain in the 'from' header it goes to spam tagged: Why is this message in Spam? It has a from address in hello.com but has failed hello.com's required tests for authentication.

Tested working (line 103 now). The 'From' header is simply set from values specified in backend Mail > Mail Configuration > Sender name & Sender email.

Why did this not get committed?

LaminSanneh commented 8 years ago

Thanks for this guys, merging in