Im trying to get what is input by the user as the ‘from’ field so when I receive the email I can simply reply. I have it working as below:
email: from: '{{ form.value.email|e }}' to: '{{ config.plugins.email.to }}' subject: 'MyForm - {{ form.value.name|e }}' body: '{% include ''forms/data.html.twig'' %}'
However, when I try this with a @googlemail.com email I get “Expected response code “250” but got code “550”, with message “550 sorry, you do not have permission to send email from googlemail.com”.”
email plugin is setup and working,if I put in a made up email foo@foo.com, for instance, I receive the email and can reply.
Ive searched loads and cant seem to find anything relating to this so I can only assume I am doing something wrong as it doesnt seem to be an issue for others.