Yahoo and PHP mail()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lildog

    Yahoo and PHP mail()

    I recently signed up for a yahoo small business account and am having a
    heck of a time getting mail() to work. My script returns the thank you
    and apperas to run through but no mail is recieved and the error log is
    spitting out error: unknown. Any ideas? I have reduced it down to just
    trying to get a mail to go through. And so far Yahoo! has been
    absolutely no help at all, just lied to me several times.

    Thank you very much.

    Lildog

    <?php
    ini_set ("sendmail_from ","youraddress@ somewhere.com") ;
    $to = "youraddress@so mewhere.com";
    $youremail = "youraddress@so mewhere.com";
    $mailheaders = "From: $youremail\r\n" ;
    $subject = "Your comments";
    $strMessageBody =" testing this thing.";
    mail($to, $subject, $strMessageBody , $mailheaders);
    echo "<h2>Thank you</h2>";
    phpinfo();
    ?>
  • NC

    #2
    Re: Yahoo and PHP mail()

    Lildog wrote:[color=blue]
    >
    > I recently signed up for a yahoo small business account
    > and am having a heck of a time getting mail() to work.
    > My script returns the thank you and apperas to run through
    > but no mail is recieved and the error log is spitting out
    > error: unknown. Any ideas?[/color]

    Two, as a matter of fact:

    1. Did you enable mailing from your Web Hosting Control
    Panel?
    2. What is the sender's address? Yahoo! requires it to be
    in the domain name you're hosting.

    For more information, see here:




    Cheers,
    NC

    Comment

    • Lildog

      #3
      Re: Yahoo and PHP mail()

      Yes I did enable it, I believe. All it asked me for was a from address
      in my domain,and the email is in my new domain. Yahoo sent me a canned
      email that they were looking into it, but that was 48hrs ago.
      Does the script look correct?

      In article <1142527483.225 359.86230@i39g2 000cwa.googlegr oups.com>, NC
      <nc@iname.com > wrote:
      [color=blue]
      > Lildog wrote:[color=green]
      > >
      > > I recently signed up for a yahoo small business account
      > > and am having a heck of a time getting mail() to work.
      > > My script returns the thank you and apperas to run through
      > > but no mail is recieved and the error log is spitting out
      > > error: unknown. Any ideas?[/color]
      >
      > Two, as a matter of fact:
      >
      > 1. Did you enable mailing from your Web Hosting Control
      > Panel?
      > 2. What is the sender's address? Yahoo! requires it to be
      > in the domain name you're hosting.
      >
      > For more information, see here:
      >
      > http://help.yahoo.com/help/us/webhos...hp/php-17.html
      > http://help.yahoo.com/help/us/webhos...hp/php-28.html
      >
      > Cheers,
      > NC
      >[/color]

      Comment

      • Steve Chapel

        #4
        Re: Yahoo and PHP mail()

        Lildog wrote:[color=blue]
        > Yes I did enable it, I believe. All it asked me for was a from address
        > in my domain,and the email is in my new domain. Yahoo sent me a canned
        > email that they were looking into it, but that was 48hrs ago.
        > Does the script look correct?[/color]

        Yes. Check your Bulk Mail folder.

        Comment

        Working...