1. <i id="psyxi"><th id="psyxi"></th></i>
      <i id="psyxi"><input id="psyxi"><div id="psyxi"></div></input></i>\n<?php\n\/\/error_reporting(E_ALL);\nerror_reporting(E_STRICT);\ndate_default_timezone_set('America\/Toronto');\nrequire_once('..\/class.phpmailer.php');\n\/\/include(\"class.smtp.php\"); \/\/ optional, gets called from within class.phpmailer.php if not already loaded\n$mail = new PHPMailer();\n$body = file_get_contents('contents.html');\n$body = eregi_replace(\"[\\]\",'',$body);\n$mail->IsSMTP(); \/\/ telling the class to use SMTP\n$mail->Host = \"mail.gmail.com\"; \/\/ SMTP server\n$mail->SMTPDebug = 2; \/\/ enables SMTP debug information (for testing)\n\/\/ 1 = errors and messages\n\/\/ 2 = messages only\n$mail->SMTPAuth = true; \/\/ enable SMTP authentication\n$mail->SMTPSecure = \"ssl\"; \/\/ sets the prefix to the servier\n$mail->Host = \"smtp.gmail.com\"; \/\/ sets GMAIL as the SMTP server\n$mail->Port = 465; \/\/ set the SMTP port for the GMAIL server\n$mail->Username = \"***@gmail.com\"; \/\/ GMAIL username\n$mail->Password = \"***\"; \/\/ GMAIL password\n$mail->SetFrom('****@gmail.com', 'First Last');\n$mail->AddReplyTo(\"***@gmail.com\",\"First Last\");\n$mail->Subject = \"PHPMailer Test Subject via smtp (Gmail), basic\";\n$mail->AltBody = \"To view the message, please use an HTML compatible email viewer!\"; \/\/ optional, comment out and test\n$mail->MsgHTML($body);\n$address = \"***@gmail.com\";\n$mail->AddAddress($address, \"John Doe\");\n$mail->AddAttachment(\"images\/phpmailer.gif\"); \/\/ attachment\n$mail->AddAttachment(\"images\/phpmailer_mini.gif\"); \/\/ attachment\nif(!$mail->Send()) {\necho \"Mailer Error: \" . $mail->ErrorInfo;\n} else {\necho \"Message sent!\";\n}\n?>\n<\/body>\n<\/html> \n\n<\/pre>\n\n

      The above is the entire content of this article, I hope it will be helpful to everyone’s study. <\/p>\n\n\n\n

      Articles you may be interested in: <\/h4>\n