Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->SMTPDebug = 2;
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = "tls";
- $mail->Host = "secure##.inmotionhosting.com";
- $mail->Port = '587';
- $mail->Username = "username";
- $mail->Password = "password";
- $mail->CharSet = 'windows-1250';
- $mail->SetFrom ('noreply@domain.com', 'Ticket Submission');
- $mail->Subject = $email->subject;
- $mail->ContentType = 'text/plain';
- $mail->IsHTML(false);
- $mail->Body = $email->body;
- $mail->AddAddress ('stephen@domain.com', 'Stephen Adkins');
- $mail->AddAddress ('clay.smith@domain.com', 'Clay Smith');
- var_dump($mail->Send());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement