I'm using the $email->setFrom('no-reply@example.com');
method and it's working fine for email delivered to the registered sender.
However, the email is delivered as no-reply@example.com
.
How can I include the email of the customer that has filled the form? Eh: mario@gmail.com?
If I replace $email->setFrom('mario@gmail.com');
I will get 403.
This happen because I have to register the sender. But I just need to create a simple contact form.
Is there a way to use setFrom
using a custom email?
Thanks in advance