Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $phpmailer = new PHPMailer;
- $phpmailer->isSMTP;
- $phpmailer->Host = $GLOBALS['mailer']['smtpServer'];
- $phpmailer->SMTPAuth = true;
- $phpmailer->Username = $GLOBALS['mailer']['username'];
- $phpmailer->Password = $GLOBALS['mailer']['password'];
- $phpmailer->Port = 25;
- $phpmailer->setFrom('info@'.strtolower($GLOBALS['companies'][$row['primaryStateID']]['website']), $GLOBALS['companies'][$row['primaryStateID']]['name']);
- $phpmailer->addAddress($row['Email1'],$row['FirstName'].' '.$row['LastName']);
- $phpmailer->isHTML(true);
- $phpmailer->Subject = 'Thank you for choosing '.$GLOBALS['companies'][$row['primaryStateID']]['name'].'!';
- $phpmailer->Body = '';
- $phpmailer->send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement