Problem sending email from Windows XP / Apache 2 /php 5.0

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

    #1

    Problem sending email from Windows XP / Apache 2 /php 5.0


    Set up SMTP / smtp_from variable, as suggested in manual. But the
    mail() function always return fails. I was trying to use
    smtp.mail.yahoo .com I wonder if yahoo is somehow blocking smtp
    requests from php?

    Any thoughts on this anybody?
  • Kevin

    #2
    Re: Problem sending email from Windows XP / Apache 2 /php 5.0

    Maybe Yahoo requires authentication for SMTP? Try using the PEAR Mail
    class, which supposedly supports authentication.

    - Kevin

    "Martin Meng" <martinmengh@ya hoo.com> wrote in message
    news:QsSdnYkcBL UJzWLcRVn-hg@giganews.com ...[color=blue]
    >
    > Set up SMTP / smtp_from variable, as suggested in manual. But the mail()
    > function always return fails. I was trying to use smtp.mail.yahoo .com I
    > wonder if yahoo is somehow blocking smtp requests from php?
    >
    > Any thoughts on this anybody?[/color]


    Comment

    • Martin Meng

      #3
      Re: Problem sending email from Windows XP / Apache 2 /php 5.0

      But I was using the syntax
      [yahoo_login]:[password]@smtp.mail.yaho o.com
      Still no good. - FRUSTRATED ! -


      Junxter Ad Network



      Kevin wrote:[color=blue]
      > Maybe Yahoo requires authentication for SMTP? Try using the PEAR Mail
      > class, which supposedly supports authentication.
      >
      > - Kevin
      >
      > "Martin Meng" <martinmengh@ya hoo.com> wrote in message
      > news:QsSdnYkcBL UJzWLcRVn-hg@giganews.com ...
      >[color=green]
      >>Set up SMTP / smtp_from variable, as suggested in manual. But the mail()
      >>function always return fails. I was trying to use smtp.mail.yahoo .com I
      >>wonder if yahoo is somehow blocking smtp requests from php?
      >>
      >>Any thoughts on this anybody?[/color]
      >
      >
      >[/color]

      Comment

      • Kevin

        #4
        Re: Problem sending email from Windows XP / Apache 2 /php 5.0

        I'm pretty sure that syntax for the SMTP server won't work. If you need to
        authenticate, you'll need to use a package that supports it.

        Is PHP giving any errors or warnings?

        - Kevin

        "Martin Meng" <martinmengh@ya hoo.com> wrote in message
        news:41FFBCD1.8 060404@yahoo.co m...[color=blue]
        > But I was using the syntax
        > [yahoo_login]:[password]@smtp.mail.yaho o.com
        > Still no good. - FRUSTRATED ! -
        >
        >
        > Junxter Ad Network
        > http://www.junxter.com
        >
        >
        > Kevin wrote:[color=green]
        >> Maybe Yahoo requires authentication for SMTP? Try using the PEAR Mail
        >> class, which supposedly supports authentication.
        >>
        >> - Kevin
        >>
        >> "Martin Meng" <martinmengh@ya hoo.com> wrote in message
        >> news:QsSdnYkcBL UJzWLcRVn-hg@giganews.com ...
        >>[color=darkred]
        >>>Set up SMTP / smtp_from variable, as suggested in manual. But the mail()
        >>>function always return fails. I was trying to use smtp.mail.yahoo .com
        >>>I wonder if yahoo is somehow blocking smtp requests from php?
        >>>
        >>>Any thoughts on this anybody?[/color]
        >>
        >>[/color][/color]

        Comment

        • Martin Meng

          #5
          Re: Problem sending email from Windows XP / Apache 2 /php 5.0

          I will try the package method. Thanx for the pointer.

          Junxter Ad Network



          Kevin wrote:[color=blue]
          > I'm pretty sure that syntax for the SMTP server won't work. If you need to
          > authenticate, you'll need to use a package that supports it.
          >
          > Is PHP giving any errors or warnings?
          >
          > - Kevin
          >
          > "Martin Meng" <martinmengh@ya hoo.com> wrote in message
          > news:41FFBCD1.8 060404@yahoo.co m...
          >[color=green]
          >>But I was using the syntax
          >>[yahoo_login]:[password]@smtp.mail.yaho o.com
          >>Still no good. - FRUSTRATED ! -
          >>
          >>
          >>Junxter Ad Network
          >>http://www.junxter.com
          >>
          >>
          >>Kevin wrote:
          >>[color=darkred]
          >>>Maybe Yahoo requires authentication for SMTP? Try using the PEAR Mail
          >>>class, which supposedly supports authentication.
          >>>
          >>>- Kevin
          >>>
          >>>"Martin Meng" <martinmengh@ya hoo.com> wrote in message
          >>>news:QsSdnYk cBLUJzWLcRVn-hg@giganews.com ...
          >>>
          >>>
          >>>>Set up SMTP / smtp_from variable, as suggested in manual. But the mail()
          >>>>function always return fails. I was trying to use smtp.mail.yahoo .com
          >>>>I wonder if yahoo is somehow blocking smtp requests from php?
          >>>>
          >>>>Any thoughts on this anybody?
          >>>
          >>>[/color][/color]
          >[/color]

          Comment

          • Martin Meng

            #6
            Re: Problem sending email from Windows XP / Apache 2 /php 5.0

            Success! Works like a charm using phpmailer.

            Junxter Ad Network



            Martin Meng wrote:[color=blue]
            > I will try the package method. Thanx for the pointer.
            >
            > Junxter Ad Network
            > http://www.junxter.com
            >
            >
            > Kevin wrote:
            >[color=green]
            >> I'm pretty sure that syntax for the SMTP server won't work. If you
            >> need to authenticate, you'll need to use a package that supports it.
            >>
            >> Is PHP giving any errors or warnings?
            >>
            >> - Kevin
            >>
            >> "Martin Meng" <martinmengh@ya hoo.com> wrote in message
            >> news:41FFBCD1.8 060404@yahoo.co m...
            >>[color=darkred]
            >>> But I was using the syntax
            >>> [yahoo_login]:[password]@smtp.mail.yaho o.com
            >>> Still no good. - FRUSTRATED ! -
            >>>
            >>>
            >>> Junxter Ad Network
            >>> http://www.junxter.com
            >>>
            >>>
            >>> Kevin wrote:
            >>>
            >>>> Maybe Yahoo requires authentication for SMTP? Try using the PEAR
            >>>> Mail class, which supposedly supports authentication.
            >>>>
            >>>> - Kevin
            >>>>
            >>>> "Martin Meng" <martinmengh@ya hoo.com> wrote in message
            >>>> news:QsSdnYkcBL UJzWLcRVn-hg@giganews.com ...
            >>>>
            >>>>
            >>>>> Set up SMTP / smtp_from variable, as suggested in manual. But the
            >>>>> mail() function always return fails. I was trying to use
            >>>>> smtp.mail.yahoo .com I wonder if yahoo is somehow blocking smtp
            >>>>> requests from php?
            >>>>>
            >>>>> Any thoughts on this anybody?
            >>>>
            >>>>
            >>>>[/color]
            >>[/color][/color]

            Comment

            • Amir Khawaja

              #7
              Re: Problem sending email from Windows XP / Apache 2 /php 5.0

              Martin Meng wrote:[color=blue]
              > But I was using the syntax
              > [yahoo_login]:[password]@smtp.mail.yaho o.com
              > Still no good. - FRUSTRATED ! -
              >
              >
              > Junxter Ad Network
              > http://www.junxter.com
              >
              >
              > Kevin wrote:
              >[color=green]
              >> Maybe Yahoo requires authentication for SMTP? Try using the PEAR Mail
              >> class, which supposedly supports authentication.
              >>
              >> - Kevin
              >>
              >> "Martin Meng" <martinmengh@ya hoo.com> wrote in message
              >> news:QsSdnYkcBL UJzWLcRVn-hg@giganews.com ...
              >>[color=darkred]
              >>> Set up SMTP / smtp_from variable, as suggested in manual. But the
              >>> mail() function always return fails. I was trying to use
              >>> smtp.mail.yahoo .com I wonder if yahoo is somehow blocking smtp
              >>> requests from php?
              >>>
              >>> Any thoughts on this anybody?[/color]
              >>
              >>
              >>
              >>[/color][/color]

              More than likely, relaying is disabled on Yahoo! end. Almost all mail
              servers are configured to disable relaying as a security measure. You
              should use your own or your ISP's SMTP server.

              Best regards,
              Amir Khawaja.

              --
              Rules are written for those who lack the ability to truly reason,
              But for those who can, the rules become nothing more than guidelines,
              And live their lives governed not by rules but by reason.

              - James McGuigan

              Comment

              Working...