Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once 'lib/phpmailer/PHPMailerAutoload.php';
- $m = new PHPMailer;
- $m->isSMTP();
- $m->SMTPAuth = true;
- $m->SMTPDebug = 2;
- $m->Host = 'smtp.zoho.com';
- $m->Username = 'email@email.com';
- $m->Password = 'password';
- $m->SMTPSecure = 'ssl';
- $m->Port = 465;
- $m->From = 'email@email.com';
- $m->FromName = 'Name';
- $m->Subject = 'Testing PHPMailer';
- $m->Body = 'Body of the email. Testing PHPMailer.';
- if (!$m->send()) {
- echo 'Mailer Error: ' . $m->ErrorInfo;
- } else {
- echo 'Everything OK.';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement