searched everywhere. i want to email 2 fields. this is just a azure
website not VM.Have php script that runs fine except on azure websites
"; $to = "Ramona Recipient "; $subject = "Hi!"; $body = "Hi,\n\nHow are
you?"; $host = "mail.essexmortgage.com"; $username =
"blake@essexmortgage.com"; $password = "dreams123"; $headers = array
('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp =
Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username'
=> $username, 'password' => $password)); $mail = $smtp->send($to,
$headers, $body); if (PEAR::isError($mail)) { echo("
" . $mail->getMessage() . "
"); } else { echo("
Message successfully sent!
"); } ?>
No comments:
Post a Comment