Moderator: General Moderators
-
mastaoneil
- Forum Newbie
- Posts: 6
- Joined: Thu Aug 12, 2004 8:18 am
hi im having trouble sending email from php to my hotmail account
<?php
$to = "mastaoneil@hotmail.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body))
{
echo("<p>Message sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
?>
ive tryed it from a webhost but i get no email and it says Message delivery failed...
any1 help
cheers
<?php
$to = "mastaoneil@hotmail.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body))
{
echo("<p>Message sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
?>
ive tryed it from a webhost but i get no email and it says Message delivery failed...
any1 help
cheers
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
send an email to that account, or better yet, several emails from differing accounts to that one. Get the headers from each of the emails that get through, and not into the junk folder. Compare the headers used by all of them. The ones that are in the same syntaxes are likely what's making it work.
the mail function is failing off your server provider, denying the email going out.. so you may need to check with them for what is required to send an email through their system. (Probably Reply-To and Return-Path)
the mail function is failing off your server provider, denying the email going out.. so you may need to check with them for what is required to send an email through their system. (Probably Reply-To and Return-Path)
-
mastaoneil
- Forum Newbie
- Posts: 6
- Joined: Thu Aug 12, 2004 8:18 am
send an email to that account, or better yet, several emails from differing accounts to that one. Get the headers from each of the emails that get through, and not into the junk folder. Compare the headers used by all of them. The ones that are in the same syntaxes are likely what's making it work.
how do i get the headers?
how do i get the headers?
-
mastaoneil
- Forum Newbie
- Posts: 6
- Joined: Thu Aug 12, 2004 8:18 am
-
mastaoneil
- Forum Newbie
- Posts: 6
- Joined: Thu Aug 12, 2004 8:18 am
-
mastaoneil
- Forum Newbie
- Posts: 6
- Joined: Thu Aug 12, 2004 8:18 am
-
mastaoneil
- Forum Newbie
- Posts: 6
- Joined: Thu Aug 12, 2004 8:18 am