Cannot receive HTML mail on same host

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

    Cannot receive HTML mail on same host

    Hi,

    When I use php mail() in a script on my localhost to send an HTML
    message to an e-mailaccount on my online host, all is fine.
    When I use php mail() in a script on my online host to send an HTML
    message to some e-mailaccount other than on my online host, all is fine.

    But when I use php mail() in a script on my online host to send an HTML
    message to an e-mailaccount on that same online host, I receive the
    message code as plain text.

    Does anyone know why this happens?

    Thanks in advance,

    Remon Huijts.
  • Tim Roberts

    #2
    Re: Cannot receive HTML mail on same host

    Remon Huijts <trsteno@hotmai l.com> wrote:[color=blue]
    >
    >When I use php mail() in a script on my localhost to send an HTML
    >message to an e-mailaccount on my online host, all is fine.
    >When I use php mail() in a script on my online host to send an HTML
    >message to some e-mailaccount other than on my online host, all is fine.
    >
    >But when I use php mail() in a script on my online host to send an HTML
    >message to an e-mailaccount on that same online host, I receive the
    >message code as plain text.
    >
    >Does anyone know why this happens?[/color]

    mail() can't do that. Are you using the same mail reader in all cases,
    with the same options? Are you absolutely sure?
    --
    - Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.

    Comment

    • madmaster

      #3
      Re: Cannot receive HTML mail on same host

      In addition to all that: are you sure you send in all the cases HTML
      mail - one and the same...

      Comment

      • Remon Huijts

        #4
        Re: Cannot receive HTML mail on same host

        Tim Roberts wrote:[color=blue]
        > Remon Huijts <trsteno@hotmai l.com> wrote:
        >[color=green]
        >>When I use php mail() in a script on my localhost to send an HTML
        >>message to an e-mailaccount on my online host, all is fine.
        >>When I use php mail() in a script on my online host to send an HTML
        >>message to some e-mailaccount other than on my online host, all is fine.
        >>
        >>But when I use php mail() in a script on my online host to send an HTML
        >>message to an e-mailaccount on that same online host, I receive the
        >>message code as plain text.
        >>
        >>Does anyone know why this happens?[/color]
        >
        >
        > mail() can't do that. Are you using the same mail reader in all cases,
        > with the same options? Are you absolutely sure?[/color]

        Yes, it's the same mail reader, with the same options. I ran the script
        on my localhost and it worked, then uploaded the script and thus tried
        to send the same html message to the same recipient. This test fails
        when the recipient is on the same domain name.

        Absolutely sure, I only use one mail reader (Thunderbird) and I read my
        mail at home only.

        Somebody suggested that the (mis)use of line endings could cause this,
        but I have not looked into that yet.

        Remon.

        Comment

        Working...