Home > Internet > Drupal > Mengubah format email menjadi HTML pada drupal 7

Mengubah format email menjadi HTML pada drupal 7

Salah satu fitur dari drupal 7 adalah kemampuan untuk mengirimkan email. Tetapi format pengiriman email yang default adalah format text. Artinya, segala tag html yang ditambahkan dalam body email tidak akan diterjemahkan. Sehingga semua content akan dikirimkan apa adanya.

Seringkali, karena kebutuhan tertentu, diperlukan untuk mengirimkan email dalam format html. Artinya, body email dapat diberi formatting seperti bold, italic, strikethrough, menyisipkan gambar, link, dan lain sebagainya.

Untuk mengubah format pengiriman email dari text menjadi html caranya cukup mudah, yaitu seperti kode dibawah ini:

Inti dari kode diatas adalah mendeteksi id dari message yang akan dikirim untuk kemudian diganti menjadi format html. Bisa juga penggantian format ke html dilakukan pada semua pengiriman email, tinggal hilangkan fungsi pengecekan id.

Blog post ini digunakan untuk sekedar catatan pribadi, syukur-syukur kalau bisa bermanfaat bagi yang lain.

You may also like
Drupal: Bulk Insert
Ciyeee, Drupal dan WordPress minta update barengan.
Membuat Chart di Excel menggunakan Drupal
[Drupal] Mengubah tampilan menu local task dari tabs menjadi dropdown

63 Responses

  1. Good day! This is my 1st comment here so
    I just wanted to give a quick shout out and say I truly enjoy reading through your blog posts.
    Can you suggest any other blogs/websites/forums that
    cover the same topics? Thanks for your time!

  2. I am just writing to let you know of the helpful discovery my child developed reading your webblog. She figured out numerous pieces, with the inclusion of what it’s like to have an incredible helping nature to make most people without difficulty learn about specified extremely tough subject areas. You truly surpassed people’s expected results. Many thanks for displaying such necessary, trusted, informative and fun tips about that topic to Sandra.

  3. Thank you a lot for providing individuals with an exceptionally marvellous chance to read in detail from this blog. It really is very terrific and also stuffed with amusement for me personally and my office friends to visit the blog at minimum 3 times a week to read through the fresh items you will have. And of course, I am actually satisfied with the unique advice you serve. Selected 3 areas in this article are essentially the most beneficial we have all had.

  4. There are some attention-grabbing time limits in this article however I don? know if I see all of them center to heart. There is some validity however I will take hold opinion till I look into it further. Good article , thanks and we would like extra! Added to FeedBurner as nicely

  5. Thank you a lot for giving everyone an exceptionally superb possiblity to read from this blog. It can be so awesome and stuffed with a good time for me personally and my office colleagues to search your website a minimum of 3 times in one week to learn the new tips you have. And lastly, we’re certainly impressed for the gorgeous pointers you serve. Selected two facts in this post are essentially the most efficient we have ever had.

  6. I am glad for writing to make you understand of the beneficial experience our daughter had reading through your web site. She picked up numerous pieces, most notably how it is like to possess an excellent helping heart to make other individuals really easily understand chosen advanced topics. You really exceeded her expected results. Thanks for delivering such priceless, safe, informative and also easy tips about your topic to Kate.

  7. The subsequent time I learn a blog, I hope that it doesnt disappoint me as much as this one. I imply, I know it was my choice to learn, however I truly thought youd have one thing fascinating to say. All I hear is a bunch of whining about something that you can repair should you werent too busy searching for attention.

  8. I’m just writing to make you know of the perfect encounter my friend’s princess enjoyed viewing your site. She even learned a wide variety of pieces, which include what it is like to possess a great coaching character to make many people with no trouble completely grasp selected complex issues. You really did more than people’s desires. Thank you for imparting the important, dependable, revealing not to mention easy guidance on the topic to Gloria.

  9. I together with my guys were actually reading through the excellent information found on your web page and all of a sudden I had a terrible feeling I never expressed respect to the site owner for them. These men ended up totally thrilled to study all of them and have in effect simply been loving them. Appreciate your indeed being well kind and then for selecting such magnificent information most people are really eager to learn about. Our own sincere apologies for not expressing appreciation to sooner.

  10. My spouse and i were now thankful that Ervin managed to do his reports through the entire precious recommendations he received from your very own weblog. It is now and again perplexing to just be making a gift of guides which usually other people could have been making money from. We understand we now have you to appreciate because of that. The entire explanations you made, the straightforward blog menu, the friendships you can aid to create – it’s got most spectacular, and it’s making our son and the family know that this situation is fun, and that’s tremendously serious. Thank you for all the pieces!

  11. I have to show some thanks to this writer for bailing me out of this matter. Just after surfing throughout the world-wide-web and getting ideas which are not beneficial, I was thinking my life was gone. Existing minus the approaches to the difficulties you’ve fixed by means of your guideline is a crucial case, as well as those that might have badly affected my career if I had not discovered the website. Your good knowledge and kindness in controlling all the pieces was priceless. I am not sure what I would’ve done if I hadn’t discovered such a step like this. I am able to at this point relish my future. Thanks very much for your high quality and results-oriented help. I won’t hesitate to propose the blog to anyone who needs and wants direction on this subject.

  12. Thanks so much for giving everyone an exceptionally special chance to check tips from here. It is always very fantastic plus packed with amusement for me and my office co-workers to visit your web site nearly 3 times weekly to see the new secrets you have got. Of course, I am also always motivated considering the terrific information served by you. Certain 4 points in this posting are without a doubt the finest I have ever had.

  13. I and also my buddies were found to be viewing the nice tips from the website then all of the sudden came up with a horrible feeling I had not thanked the site owner for them. These people came stimulated to study all of them and have really been taking pleasure in those things. Many thanks for getting quite accommodating and for deciding on this form of ideal resources most people are really desperate to discover. My very own honest regret for not expressing gratitude to sooner.

  14. Thank you for your entire labor on this site. My daughter loves working on investigations and it’s easy to understand why. Most people learn all about the compelling mode you give practical guidelines through the website and therefore encourage participation from some others about this area of interest plus our daughter is undoubtedly being taught a whole lot. Have fun with the rest of the year. You are performing a splendid job.

  15. I definitely wanted to type a quick note to appreciate you for these fantastic instructions you are writing at this website. My time-consuming internet lookup has finally been paid with pleasant tips to share with my classmates and friends. I would believe that many of us website visitors actually are undeniably endowed to live in a notable website with so many lovely individuals with insightful methods. I feel really blessed to have come across the website page and look forward to some more enjoyable minutes reading here. Thank you again for everything.

  16. I wanted to write you the little bit of word to finally thank you very much again on the incredible thoughts you have featured here. It is seriously generous of you to provide publicly exactly what a number of people might have offered as an e-book in making some dough for themselves, principally given that you could possibly have tried it if you ever considered necessary. These solutions as well served to become easy way to realize that other individuals have similar fervor just like mine to learn more and more pertaining to this issue. Certainly there are several more pleasant times up front for individuals who take a look at your blog post.

Leave a Reply