Advertisement
Guest User

Untitled

a guest
Mar 1st, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $phpmailer = new PHPMailer;
  2. $phpmailer->isSMTP;
  3. $phpmailer->Host = $GLOBALS['mailer']['smtpServer'];
  4. $phpmailer->SMTPAuth = true;
  5. $phpmailer->Username = $GLOBALS['mailer']['username'];
  6. $phpmailer->Password = $GLOBALS['mailer']['password'];
  7. $phpmailer->Port = 25;
  8.  
  9. $phpmailer->setFrom('info@'.strtolower($GLOBALS['companies'][$row['primaryStateID']]['website']), $GLOBALS['companies'][$row['primaryStateID']]['name']);
  10. $phpmailer->addAddress($row['Email1'],$row['FirstName'].' '.$row['LastName']);
  11.  
  12. $phpmailer->isHTML(true);
  13.  
  14. $phpmailer->Subject = 'Thank you for choosing '.$GLOBALS['companies'][$row['primaryStateID']]['name'].'!';
  15.  
  16. $phpmailer->Body = '';
  17. $phpmailer->send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement