I'm trying to send email via a PHP script. Here's the line of code that is supposed to send the email:
mail($owner_email, $subject, $messageBody, $headers)
Here are what my variables are set to:
$owner_email
= mike@mikemarks.net
$subject
= "Blah"
$messageBody
= "Blah"
The email address, mike@mikemarks.net
, is configured on Microsoft's email servers. I have email sending and receiving from their servers - smtp.live.com (for outgoing). For some reason, the above line of code isn't sending an email to mike@mikemarks.net
.
QUESTIONS:
- Are there certain email services that won't work with PHP's email functionality, such as Microsoft's?
- I understand I can't set SMTP settings in PHP - does this mean that PHP uses its own SMTP server?