aradianoff / recaptchacontact

reCaptcha Contact Plugin for Grav CMS (getgrav.org)
MIT License
8 stars 11 forks source link

Form overrides From Address in Email settings, causing failure #54

Open brentkearney opened 4 years ago

brentkearney commented 4 years ago

Setting the From: address to the email from the web form, instead of using the default From address in the Email plugin settings, causes failure to send. For my SMTP server, and I suspect a great many others, sending is rejected with the message,

Expected response code 250 but got code "550", with message "550 Invalid From address."

This helps reduce spam sent through the server. The data that the web visitor enters should be included in the body of the message only.