getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

Spam issue when modifiying from #177

Closed Kiouze closed 1 year ago

Kiouze commented 1 year ago

Hi!

I've got a spam issue when i change the from parameter email by including the sender's email:

email:
  subject:  {{ form.value.name|e }}"
  body: "{% include 'forms/data.html.twig' %}"
  from: "{{ form.value.email|e }}"

If I don't include the sender email in this parameter, it will appear in the message body and the email won't go to spam BUT the sender will be the smtp adress I'm using, so when I click "Answer" in my email client I will answer to my smtp adress and not to the sender.

Is this some kind of email client spam regulation?

Thanks in advance for your answer.

rhukster commented 1 year ago

You shoud set the from to an email from your own domain, and use reply_to for the senders email.

Kiouze commented 1 year ago

Dammit, that was right into the documentation. I'm really sorry about this.

rhukster commented 1 year ago

No worries 😉