Created
August 7, 2017 11:45
-
-
Save domantasg/3417b105145222ad8865d561d49ec263 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $mail->Host = "HOSTINGER_SMTP_HOST_HERE"; | |
| //Set the SMTP port number - likely to be 25, 465 or 587 | |
| $mail->Port = HOSTINGER_SMTP_PORT_HERE; | |
| //Whether to use SMTP authentication | |
| $mail->SMTPAuth = true; | |
| //Username to use for SMTP authentication | |
| $mail->Username = "YOUR_SMTP_USERNAME"; | |
| //Password to use for SMTP authentication | |
| $mail->Password = "YOUR_SMTP_PASSWORD"; | |
| //Set who the message is to be sent from | |
| $mail->setFrom('YOUR_SMTP_EMAIL', 'First Last'); | |
| //Set an alternative reply-to address | |
| $mail->addReplyTo('replyto@example.com', 'First Last'); | |
| //Set who the message is to be sent to | |
| $mail->addAddress('YOUR_EMAIL_ADRESS_WHERE_YOU_CAN_CHECK', 'John Doe'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment