Created
June 17, 2016 10:07
-
-
Save s-melnikov/c16c3b1b2631ecfc4ecc504b993a5612 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
$email = new PHPMailer(); | |
$email->From = '[email protected]'; | |
$email->FromName = 'Your Name'; | |
$email->Subject = 'Message Subject'; | |
$email->Body = $bodytext; | |
$email->AddAddress( '[email protected]' ); | |
$file_to_attach = 'PATH_OF_YOUR_FILE_HERE'; | |
$email->AddAttachment( $file_to_attach , 'NameOfFile.pdf' ); | |
return $email->Send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment