Replies: 1 comment
-
Nope. That code will work fine if |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hard coded variables obviously work fine:'
$mail->setFrom("mail@company_a");
$mail->addAddress("mail@company_b");
This, however, will NOT work:
$from_email = $_POST['from_email'];
$to_email = $_POST['to_email'];
$mail->setFrom($from_email); //nor $_POST['from_email']
$mail->addAddress($to_email); //nor $_POST['to_email']
Beta Was this translation helpful? Give feedback.
All reactions