I guess this is:
<?php
$emailTo = 'user1@gmail.com';
$subject = 'I hope this works!';
$body = 'Blah';
$headers='From: user@gmail.com'
mail($emailTo, $subject, $body, $headers);
?>
not going to cut it. I was looking for ways that I can send email using SMTP authenticators and email clients and programs like PHPMailer, but I don't have a short and direct answer, but it is useful. Basically, I want to send emails to gmail, hotmail, etc. (Which will be my letter) from another sender (email) through a form on my website
Questions:
- Do I need to download a third-party library?
- If not, how can I change the code above to make it work.
Thank!
source
share