|
Posted by Tom on 06/06/07 18:05
<e_matthes@hotmail.com> wrote in message
news:1181065295.134818.199200@n15g2000prd.googlegroups.com...
> On Jun 5, 8:53 am, "Tom" <t...@to.com> wrote:
> > <e_matt...@hotmail.com> wrote in message
> >
> > news:1181061914.124630.303680@z28g2000prd.googlegroups.com...
> >
> >
> >
> > > Hello everyone,
> >
> > > I am trying to use the mail() function to send a simple, text-only
> > > message. I have two websites hosted by the same company, on different
> > > servers. One is old and established, one I am currently developing.
> > > I am testing the mail functionality by sending a test message to an
> > > email account associated with my old website, and to my hotmail
> > > account. The message seems to be sent to both accounts, and I receive
> > > the message on my website's email account, but it never reaches my
> > > hotmail account.
> >
> > > Are there any special headers required for hotmail? I've looked
> > > around a bit, and can't seem to figure it out. I've even tried
> > > including several different headers, but always with the same results
> > > - reaches my website's email account, but not my hotmail account. The
> > > code I am using to test is:
> >
> > > <?php
> >
> > > $body = 'Hello from the internet mail tubes!';
> > > $subject = 'Test message';
> > > $address = 'working_address@other_domain.com';
> > > $address2 = 'working_addr...@hotmail.com';
> > > $headers = "From: working_address@this_domain.com";
> >
> > > mail($address, $subject, $body, $headers) or print "Can not deliver
> > > to $address.";
> > > print "Done with $address.<br>";
> >
> > > mail($address2, $subject, $body, $headers) or print "Can not deliver
> > > to $address2.";
> > > print "Done with $address2.<br>";
> >
> > > ?>
> >
> > If you are really using that header, the "other_domain.com" domain isn't
> > showing up as a valid domain and most current mail systems will reject
mail
> > from bogus addresses.
> >
> > Tom
> > --
> > Newsguy.com
> > 90+ Days Retention
> > 99% Article Completion
> > Can Now Create Your Own NZB Files
>
> Those are all working addresses, I just wrote dummy addresses for this
> posting:
>
> working_address@other_domain.com - an address at my established site;
> working_address@hotmail.com - a working hotmail address;
> working_address@this_domain.com - an address on the new site.
>
Can understand the need for doing that. : )
If you haven't done it already, I'd try sending the same exact email from a
desktop mail application and see if the results are any different. You might
get an error message from your SMTP server or the hotmail mail server that
may point to a problem.
If you aren't able to get an error back, you might need to check with
hotmail to see if they might be filtering something.
Tom
--
Newsguy.com
90+ Days Retention
Free SSL Connections
Create Your Own NZB Files
Navigation:
[Reply to this message]
|