How to use mail( ) with out asked for "RECEIVE FIRST BEFORE SEND" Message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nallinattu
    New Member
    • Nov 2006
    • 11

    How to use mail( ) with out asked for "RECEIVE FIRST BEFORE SEND" Message

    When I use mail ( ) function correctly, I am prompted to "RECEIVE FIRST BEFORE SENDING " and hence I authenticate by receiving mail first by a mail client !!. Then mail ( ) works . How to make it work with out giving such prompt to me.I use the mail ( ) function correctly and it works , otherwise.

    Example of what I used :-

    <?php
    mail("he_she_it @yahoo.com",
    "How Are You, Pl. Offer Solution to",
    "Will It Work with out telling me RECEIVE FIRST BEFORE SENDING", "From: "i_we_you@redif fmail.com"\r\nR eturn-Path: "iweyou@rediffm ail.com"\r\n");
    ?>
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    You misplaced the double quotes areoung the from and reply-to: you don't need thrm. The carriage returns/newlines were tehrefore also not recognized. This works:[php]<?php
    mail("he_she_it @yahoo.com",
    "How Are You, Pl. Offer Solution to",
    "Will It Work with out telling me RECEIVE FIRST BEFORE SENDING",
    "From: i_we_you@rediff mail.com\r\nRet urn-Path: iweyou@rediffma il.com\r\n");
    ?>[/php]
    Ronald :cool:

    Comment

    • nallinattu
      New Member
      • Nov 2006
      • 11

      #3
      Originally posted by ronverdonk
      You misplaced the double quotes areoung the from and reply-to: you don't need thrm. The carriage returns/newlines were tehrefore also not recognized. This works:[php]<?php
      mail("he_she_it @yahoo.com",
      "How Are You, Pl. Offer Solution to",
      "Will It Work with out telling me RECEIVE FIRST BEFORE SENDING",
      "From: i_we_you@rediff mail.com\r\nRet urn-Path: iweyou@rediffma il.com\r\n");
      ?>[/php]
      Ronald :cool:
      O Lo ! It did not work again. I got message below , but when I started E mail client and made it authenticate outside PHP , the mail ( ) worked ! Strange !!

      The error I got was :-
      Warning: mail() [function.mail]: SMTP server response: 553 sorry, Authentication failed or timed out. Please do get messages first to authenticate yourself.(#4.4. 3) in C:\Documents and Settings\sam\De sktop\LOCAL SERVER\again\na ttumail.php on line 5
      PHP Warning: mail() [function.mail]: SMTP server response: 553 sorry, Authentication failed or timed out. Please do get messages first to authenticate yourself.(#4.4. 3) in C:\Documents and Settings\sam\De sktop\LOCAL SERVER\again\na ttumail.php on line 5

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        Must be a problem with your definitions here. Please show the relevant php.ini definitions so we can see if anything is wrong there.

        Ronald :cool:

        Comment

        • nallinattu
          New Member
          • Nov 2006
          • 11

          #5
          Originally posted by ronverdonk
          Must be a problem with your definitions here. Please show the relevant php.ini definitions so we can see if anything is wrong there.

          Ronald :cool:
          Here are the lines:-

          [mail function]
          ; For Win32 only.
          SMTP = f3smtp.rediffma il.com
          smtp_port = 25

          But tell me with all suspected errors, how can it work when authenticated by E mail client running outside of PHP !!

          Comment

          • ronverdonk
            Recognized Expert Specialist
            • Jul 2006
            • 4259

            #6
            What is your
            Code:
            ; For Win32 only.
            sendmail_from = userid@thatsite.com
            definition?

            Ronald :cool:

            Comment

            • nallinattu
              New Member
              • Nov 2006
              • 11

              #7
              Originally posted by ronverdonk
              What is your
              Code:
              ; For Win32 only.
              sendmail_from = userid@thatsite.com
              definition?

              Ronald :cool:
              Hello ! The answer is very brief , I am unable to make out what U want me to do ? Shd I creatre an extra line , then where to put the authentication password in php.ini ?

              Comment

              • ronverdonk
                Recognized Expert Specialist
                • Jul 2006
                • 4259

                #8
                I was referring to another mandatory definition in php.ini. When you have not done that, I suggest that you fill that in with your email address and see if that gets things going. I think it is better to define things in php.ini properly, so you don't run into an unexpected non-documented error because a definition is missing.

                Ronald :cool:

                Comment

                Working...