Mail's "from" getting reformatted

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

    Mail's "from" getting reformatted

    Hi all,

    This may not be a PHP issue, but I was hoping someone might know where to
    look. I have a web app that a client purchased which sends an email using
    PHP's "mail" function. If it sends a message of the format:
    jsmith@example. com <John Smith>, it arrives with a from line looking like
    this:

    From: jsmith@example. com John.Smith@serv er.domain.com

    Where the from name has gotten reformatted to look like an email address.
    Where should I look for the cause of this? Is it sendmail.cf? PHP.ini?
    Httpd.conf?

    Thanks,
    Kevin


  • Ewoud Dronkert

    #2
    Re: Mail's &quot;from&quot ; getting reformatted

    On Tue, 24 May 2005 09:44:23 -0400, Kevin wrote:[color=blue]
    > jsmith@example. com <John Smith>[/color]

    Wrong way around. Try: John Smith <jsmith@example .com>


    --
    Firefox Web Browser - Rediscover the web - http://getffox.com/
    Thunderbird E-mail and Newsgroups - http://gettbird.com/

    Comment

    • Ewoud Dronkert

      #3
      Re: Mail's &quot;from&quot ; getting reformatted

      On Tue, 24 May 2005 15:49:01 +0200, I wrote:[color=blue]
      > Wrong way around. Try: John Smith <jsmith@example .com>[/color]

      Btw, enclose the name in double quotes if it contains other characters
      than a-z: "J. Smith" <jsmith@example .com>


      --
      Firefox Web Browser - Rediscover the web - http://getffox.com/
      Thunderbird E-mail and Newsgroups - http://gettbird.com/

      Comment

      • Alvaro G Vicario

        #4
        Re: Mail's &quot;from&quot ; getting reformatted

        *** Kevin wrote/escribió (Tue, 24 May 2005 09:44:23 -0400):[color=blue]
        > If it sends a message of the format:
        > jsmith@example. com <John Smith>, it arrives with a from line looking like
        > this:
        >
        > From: jsmith@example. com John.Smith@serv er.domain.com[/color]

        Whatever you enclose in < > chars is treated as an e-mail address. When
        mail servers find an address that is not a FQDN (fully-qualified domain
        name) they consider it a local recipient and they normally autocomplete the
        adress appending server's main domain name.

        As Ewoud points you probably mean this:

        "John Smith" <jsmith@example .com>


        --
        -- Álvaro G. Vicario - Burgos, Spain
        -- http://bits.demogracia.com - Mi sitio sobre programación web
        -- Don't e-mail me your questions, post them to the group
        --

        Comment

        • Kevin

          #5
          Re: Mail's &quot;from&quot ; getting reformatted

          Thanks to both of you. That was it. Looks like the authors of the
          application got their mail format backwards.

          - Kevin

          "Alvaro G Vicario" <alvaro_QUITAR_ REMOVE@telecomp uteronline.com> wrote in
          message news:7kk88zd29c 4f.sa8qp4wz0v3g $.dlg@40tude.ne t...[color=blue]
          > *** Kevin wrote/escribió (Tue, 24 May 2005 09:44:23 -0400):[color=green]
          >> If it sends a message of the format:
          >> jsmith@example. com <John Smith>, it arrives with a from line looking like
          >> this:
          >>
          >> From: jsmith@example. com John.Smith@serv er.domain.com[/color]
          >
          > Whatever you enclose in < > chars is treated as an e-mail address. When
          > mail servers find an address that is not a FQDN (fully-qualified domain
          > name) they consider it a local recipient and they normally autocomplete
          > the
          > adress appending server's main domain name.
          >
          > As Ewoud points you probably mean this:
          >
          > "John Smith" <jsmith@example .com>
          >
          >
          > --
          > -- Álvaro G. Vicario - Burgos, Spain
          > -- http://bits.demogracia.com - Mi sitio sobre programación web
          > -- Don't e-mail me your questions, post them to the group
          > --[/color]


          Comment

          • Chris Hope

            #6
            Re: Mail's &quot;from&quot ; getting reformatted

            Ewoud Dronkert wrote:
            [color=blue]
            > On Tue, 24 May 2005 09:44:23 -0400, Kevin wrote:[color=green]
            >> jsmith@example. com <John Smith>[/color]
            >
            > Wrong way around. Try: John Smith <jsmith@example .com>[/color]

            It's also a good idea to put quotes around the name part eg

            "John Smith" <jsmith@example .com>

            --
            Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

            Comment

            Working...