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.

*Note:
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. My spouse and i have been really comfortable when Chris managed to round up his studies via the ideas he had using your weblog. It is now and again perplexing to just possibly be handing out facts the rest have been making money from. So we do understand we have the blog owner to thank for this. The most important illustrations you made, the easy site menu, the relationships your site help instill – it is many unbelievable, and it’s really assisting our son in addition to the family believe that the subject matter is entertaining, and that’s quite important. Thanks for the whole lot!

  2. I wanted to send you that very small observation to be able to say thanks once again with the unique suggestions you’ve provided in this article. It has been so wonderfully open-handed with you to deliver unreservedly all some people would have distributed for an e book in making some money on their own, most importantly considering that you could have done it in case you wanted. Those tips additionally served as the fantastic way to be sure that the rest have a similar keenness like my own to learn whole lot more related to this condition. I am sure there are a lot more fun periods in the future for many who scan through your website.

  3. I am commenting to let you be aware of of the remarkable discovery my cousin’s princess had viewing the blog. She mastered some things, including how it is like to possess an amazing coaching mood to let certain people effortlessly know precisely specified multifaceted topics. You really did more than people’s expectations. I appreciate you for churning out such precious, trustworthy, revealing and as well as easy tips about that topic to Evelyn.

  4. A lot of thanks for each of your hard work on this site. My aunt really loves engaging in research and it is easy to understand why. A number of us hear all of the compelling form you give sensible suggestions through your website and as well as strongly encourage contribution from the others on this idea while our favorite child is now starting to learn a great deal. Have fun with the rest of the new year. Your carrying out a really great job.

  5. I am glad for writing to let you know what a notable experience my princess went through going through your site. She noticed too many things, most notably how it is like to have an ideal giving heart to get others really easily thoroughly grasp specific complicated things. You undoubtedly did more than our expected results. Thanks for providing these useful, safe, explanatory and as well as cool guidance on this topic to Sandra.

  6. I want to express my admiration for your generosity giving support to those who really need help on this one situation. Your personal dedication to getting the message across appears to be extremely invaluable and have really enabled ladies like me to reach their aims. Your amazing informative facts means much to me and especially to my mates. Many thanks; from each one of us.

  7. Thank you so much for giving everyone an extraordinarily spectacular chance to read in detail from here. It’s usually very excellent and also jam-packed with a great time for me and my office friends to search your blog at a minimum 3 times in one week to read through the fresh items you will have. And indeed, we’re always fascinated with your splendid thoughts you give. Certain 4 facts in this posting are basically the most efficient we’ve had.

  8. Can I just say what a relief to find somebody who truly is aware of what theyre talking about on the internet. You positively know learn how to deliver an issue to light and make it important. Extra folks need to learn this and perceive this facet of the story. I cant believe youre not more common since you definitely have the gift.

  9. I am only commenting to let you understand of the terrific experience my cousin’s child experienced reading your site. She discovered so many issues, which include how it is like to have an excellent giving mood to get other people with no trouble thoroughly grasp some complicated matters. You really surpassed visitors’ expectations. I appreciate you for distributing such effective, trustworthy, edifying and unique thoughts on that topic to Julie.

  10. I wish to point out my passion for your kindness supporting folks who actually need help on this one area of interest. Your special commitment to passing the message across came to be exceptionally significant and has in every case permitted guys and women like me to attain their desired goals. Your valuable guideline implies much a person like me and much more to my office workers. Best wishes; from each one of us.

  11. I? impressed, I have to say. Really not often do I encounter a blog that? each educative and entertaining, and let me let you know, you’ve got hit the nail on the head. Your idea is outstanding; the problem is something that not enough persons are talking intelligently about. I’m very pleased that I stumbled throughout this in my seek for something referring to this.

  12. Can I just say what a aid to seek out somebody who actually is aware of what theyre talking about on the internet. You positively know the best way to bring an issue to gentle and make it important. Extra individuals must learn this and perceive this facet of the story. I cant imagine youre no more well-liked because you definitely have the gift.

  13. I wanted to type a small word to say thanks to you for some of the splendid ideas you are sharing on this website. My time consuming internet research has finally been rewarded with reasonable tips to exchange with my partners. I ‘d tell you that most of us site visitors are rather fortunate to exist in a really good site with so many outstanding people with interesting plans. I feel truly blessed to have come across the site and look forward to tons of more thrilling moments reading here. Thank you once more for a lot of things.

  14. Aw, this was a really nice post. In thought I want to put in writing like this moreover ?taking time and precise effort to make an excellent article?but what can I say?I procrastinate alot and on no account seem to get one thing done.

  15. I and also my guys came reading the excellent techniques found on the website while then developed a terrible feeling I had not thanked the web site owner for those tips. Most of the young men came happy to read all of them and have in reality been making the most of them. Thanks for being really thoughtful and then for deciding upon varieties of fantastic issues millions of individuals are really wanting to learn about. Our own sincere regret for not expressing appreciation to you sooner.

  16. An impressive share, I simply given this onto a colleague who was doing slightly evaluation on this. And he in actual fact purchased me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love studying extra on this topic. If possible, as you turn out to be experience, would you mind updating your weblog with more details? It is highly useful for me. Massive thumb up for this weblog submit!

  17. Youre so cool! I dont suppose Ive learn something like this before. So nice to find anyone with some unique thoughts on this subject. realy thank you for beginning this up. this website is something that is wanted on the web, someone with a bit of originality. useful job for bringing one thing new to the internet!

Leave a Reply