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. Is there a way to use setaFrom using a custom email?
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 asno-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. Is there a way to use setaFrom using a custom email?