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

sending html emails with php

  • 10-09-2006 11:22am
    #1
    Registered Users, Registered Users 2 Posts: 673 ✭✭✭


    Hey,

    Is it possible to send html formatted email with the php mail() function? I am trying the send an email with various variables in it but i cant change the layout of the subject message the way i want it to look.

    I know you can add modules to your server but i dont think thats really an option for me.

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    Yep, you sure can. Have a look on www.php.net. You just add a line to the header, and this lets you send mail formatted as HTML.

    Don't try and do anything overly fancy with HTML mails. The differences between mail clients is way worse than browsers, and your mail is likely to go all over the place if you start using CSS for layout and a whole pile of complicated settings.


  • Registered Users, Registered Users 2 Posts: 3,514 ✭✭✭Rollo Tamasi


    get a wysisyg editor like tinymce and add it to your main input box so that you can enter in your html bb code stuff at ease


  • Registered Users, Registered Users 2 Posts: 597 ✭✭✭yeraulone




  • Registered Users, Registered Users 2 Posts: 673 ✭✭✭Bananna man


    Thanks, thats git it sorted :)


Advertisement