reply-to works with some but not mail clients

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

    reply-to works with some but not mail clients

    As I am just beginning to learn php I had to fish a free form script from the
    web. The script works fine, it processes the data filled in, including the
    sender's email address and sends an email to me with the data.

    When I hit the reply-button in my default email client (TheBat!), all is well
    and a new email with the sender's address in the to: - field is generated.

    But when that same email is opened in Outlook Express, and I hit the reply-to
    button, the to: field only shows the name of the sender, not the full email
    address (it does appear in the body of the message though).

    What do I have to change so that someone using OE can just hirt the reply
    button to respond to an email generated by the form?

    I hope the following is the relevant code:

    =============== =============== =============== ==========

    $name = strtok( $name, "\r\n" );
    $email = strtok( $email, "\r\n" );
    if (get_magic_quot es_gpc()) {
    $comments = stripslashes( $comments );
    }

    $messageproper =

    "boodschap van:\n" .
    $name = $_POST['name'] .
    "\n\n" .
    "boodschap:\n\n " .
    $comments .
    "\n\n" .
    "telefoonnummer : " .
    $phone .
    "\n\n------------------------------------------------------------\n" ;

    mail($mailto, $subject, $messageproper, "From: \"$email\" <$email>\r\nRep ly-To:
    \"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" );
    header( "Location: $thankyouurl" );
    exit ;

    =============== =============== =============== =============== =============== =

    All help is greatly appreciated.

    --
    Groet,
    Adriana
    [ gooi de vuilnis weg als je me wilt mailen ]



  • Gordon Burditt

    #2
    Re: reply-to works with some but not mail clients

    >As I am just beginning to learn php I had to fish a free form script from the
    >web. The script works fine, it processes the data filled in, including the
    >sender's email address and sends an email to me with the data.
    >
    >When I hit the reply-button in my default email client (TheBat!), all is well
    >and a new email with the sender's address in the to: - field is generated.
    Beware: TheBat! is well-known as a spammer's mailer (even if the
    spammers just fake headers from TheBat!) and it's often blocked.
    >But when that same email is opened in Outlook Express, and I hit the reply-to
    >button, the to: field only shows the name of the sender, not the full email
    >address (it does appear in the body of the message though).
    It's my observation that although OE only *SHOWS* the name, the
    email address really is there, and it will really send it. Where
    it gets irritating is when the email address is there but WRONG,
    and OE refuses to show it to the user, so you can't get the actual
    email address to correct it.


    Comment

    • A.Translator

      #3
      Re: reply-to works with some but not mail clients

      Gordon Burditt schreef op 13-12-2006
      >When I hit the reply-button in my default email client (TheBat!), all is
      >well
      >and a new email with the sender's address in the to: - field is generated.
      Beware: TheBat! is well-known as a spammer's mailer (even if the
      spammers just fake headers from TheBat!) and it's often blocked.
      I am aware of the unfair and unjust accusations about TheBat! TB! definetely is
      not a spammer's mailer and I have never had any problems about being blocked,
      but thanks for warning me. It has however nothing to do with the issue I am
      adressing.
      >But when that same email is opened in Outlook Express, and I hit the
      >reply-to
      >button, the to: field only shows the name of the sender, not the full email
      >address (it does appear in the body of the message though).
      It's my observation that although OE only *SHOWS* the name, the
      email address really is there, and it will really send it. Where
      it gets irritating is when the email address is there but WRONG,
      and OE refuses to show it to the user, so you can't get the actual
      email address to correct it.
      I have tested it with OE, hoping it was indeed a question of OE only showing
      the name. But it isn't : I cannot reply to a message generated by the form in
      OE, where I can using TB!

      --
      Groet,
      Adriana
      [ gooi de vuilnis weg als je me wilt mailen ]



      Comment

      • Carl

        #4
        Re: reply-to works with some but not mail clients

        A.Translator wrote:
        As I am just beginning to learn php I had to fish a free form script from the
        web. The script works fine, it processes the data filled in, including the
        sender's email address and sends an email to me with the data.
        >
        When I hit the reply-button in my default email client (TheBat!), all is well
        and a new email with the sender's address in the to: - field is generated.
        >
        But when that same email is opened in Outlook Express, and I hit the reply-to
        button, the to: field only shows the name of the sender, not the full email
        address (it does appear in the body of the message though).
        >
        What do I have to change so that someone using OE can just hirt the reply
        button to respond to an email generated by the form?
        >
        >message cut <<
        >
        mail($mailto, $subject, $messageproper, "From: \"$email\" <$email>\r\nRep ly-To:
        \"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" );
        header( "Location: $thankyouurl" );
        exit ;
        >
        >
        Adriana,

        I'm not sure this will address your problem, as I don't currently have
        access to the mentioned mail clients for testing, but I don't believe
        your message headers conform to the "Internet Message Format"
        standards.
        See http://www.ietf.org/rfc/rfc2822.txt

        The "Reply-To:" field value is expected to be in address-list format,
        while you are adding the address in mailbox format. In short, try
        sending only the email address as the value to the Reply-To field, not
        the name.

        Hope that helps,
        Carl.

        Comment

        • A.Translator

          #5
          Re: reply-to works with some but not mail clients

          Carl schreef op 14-12-2006
          The "Reply-To:" field value is expected to be in address-list format,
          while you are adding the address in mailbox format. In short, try
          sending only the email address as the value to the Reply-To field, not
          the name.
          Thank you. I will try what you suggest.

          --
          Groet,
          Adriana
          [ gooi de vuilnis weg als je me wilt mailen ]



          Comment

          • A.Translator

            #6
            Re: reply-to works with some but not mail clients

            Gordon Burditt schreef op 13-12-2006
            Beware: TheBat!
            Perhaps this will clarify things:


            --
            Groet,
            Adriana
            [ gooi de vuilnis weg als je me wilt mailen ]



            Comment

            • A.Translator

              #7
              Re: reply-to works with some but not mail clients

              Carl schreef op 14-12-2006
              The "Reply-To:" field value is expected to be in address-list format,
              while you are adding the address in mailbox format. In short, try
              sending only the email address as the value to the Reply-To field, not
              the name.
              That did the trick.
              Thank you!

              --
              Groet,
              Adriana
              [ gooi de vuilnis weg als je me wilt mailen ]



              Comment

              Working...