Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

php mail function help needed

  • 17-12-2005 02:43PM
    #1
    Registered Users, Registered Users 2 Posts: 4,475 ✭✭✭


    I'm using the standard php mail() function to send some email. I'm using the function as follows:

    mail(recipient, subject, message, headers)

    This works fine on yahoo and g-mail, but in Thunderbird, the headers (MIME version, REPLY TO etc) are being shown at the top of the email along with other info like status. Is this just a Thunderbird thing? If I leave out the headers, will the mail still arrive intact? It's a html email, so I suspect I at least need the content type header?


Comments

  • Registered Users, Registered Users 2 Posts: 6,384 ✭✭✭kdouglas


    yea, the header field is optional, you'll need the content-type one for a html message alright though.

    if you post your code,someone might be able to tell you why its not working as expected


  • Registered Users, Registered Users 2 Posts: 4,475 ✭✭✭corblimey


    thanks, but I think I got it sussed. I had \r\n in my headers, which appeared to be causing an issue, certainly with tb. I canged it to \n and everything seems to be okay.


Advertisement