html - Trying to send email through PHP using an email address that is configured on Microsoft's SMTP servers (@live.com, @outlook.com, etc.) -
i'm trying send email via php script. here's line of code supposed send email:
mail($owner_email, $subject, $messagebody, $headers)
here variables set to:
$owner_email
= mike@mikemarks.net
$subject
= "blah"
$messagebody
= "blah"
the email address, mike@mikemarks.net
, configured on microsoft's email servers. have email sending , receiving servers - smtp.live.com (for outgoing). reason, above line of code isn't sending email mike@mikemarks.net
.
questions:
- are there email services won't work php's email functionality, such microsoft's?
- i understand can't set smtp settings in php - mean php uses own smtp server?
php uses smtp server specified in php.ini. often, it's localhost, uses hosting server's own smtp server. check response of mail function (true/false) make sure email going through, , check mail log of server see if there's error there. can see http://www.phpclasses.org/blog/package/9/post/1-sending-email-using-smtp-servers-of-gmail-hotmail-or-yahoo-with-php.html information how use hotmail smtp server.
Comments
Post a Comment