Advertisement
Guest User

Untitled

a guest
Aug 8th, 2017
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. $mail->Host = "HOSTINGER_SMTP_HOST_HERE";
  2. //Set the SMTP port number - likely to be 25, 465 or 587
  3. $mail->Port = HOSTINGER_SMTP_PORT_HERE;
  4. //Whether to use SMTP authentication
  5. $mail->SMTPAuth = true;
  6. //Username to use for SMTP authentication
  7. $mail->Username = "YOUR_SMTP_USERNAME";
  8. //Password to use for SMTP authentication
  9. $mail->Password = "YOUR_SMTP_PASSWORD";
  10. //Set who the message is to be sent from
  11. $mail->setFrom('YOUR_SMTP_EMAIL', 'First Last');
  12. //Set an alternative reply-to address
  13. $mail->addReplyTo('replyto@example.com', 'First Last');
  14. //Set who the message is to be sent to
  15. $mail->addAddress('YOUR_EMAIL_ADRESS_WHERE_YOU_CAN_CHECK', 'John Doe');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement