Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

php mail function help needed

  • 17-12-2005 1: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,414 ✭✭✭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