Announcement

Collapse
No announcement yet.

How can I send HTML email by admincp

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] How can I send HTML email by admincp

    hello,

    is there are ways to send HTML emails by admincp? and how can accomplish this

    regards
    Please feel free to contact me if you have any questions or concerns

    Links: vBulletin Manual - Code Documentation - FAQ - Bug Tracker - Lemon Juice
    vBulletin 5 Connect: Extensions - Articles - Features - Purchases

  • #2
    ok I got it

    solved
    Please feel free to contact me if you have any questions or concerns

    Links: vBulletin Manual - Code Documentation - FAQ - Bug Tracker - Lemon Juice
    vBulletin 5 Connect: Extensions - Articles - Features - Purchases

    Comment


    • #3
      Can you share what you did, so that others reading or searching have the answer?
      Laura

      Site Admin of www.TheAmericanMommy.com and a local mommy group site. Both are Free groups open to moms.

      Comment


      • #4
        Originally posted by MarylandMommy View Post
        Can you share what you did, so that others reading or searching have the answer?
        yes of course. but I don't know if there are security issues assosiated with this or not

        edit file forumdir/includes/class_mail.php

        find:

        PHP Code:
        text/plain 
        replace with:

        PHP Code:
        text/html 
        I think this can be achieved with plugins using "mail_send" hook to replace the $headers
        and make it more saftly when you are using this for specific users
        Last edited by Abdulla Ashoor; Sat 29 May '10, 7:25pm.
        Please feel free to contact me if you have any questions or concerns

        Links: vBulletin Manual - Code Documentation - FAQ - Bug Tracker - Lemon Juice
        vBulletin 5 Connect: Extensions - Articles - Features - Purchases

        Comment


        • #5
          That won't take care of some other issues, if it was really that easy we'd just do it.

          Comment


          • #6
            Originally posted by Zachery View Post
            That won't take care of some other issues, if it was really that easy we'd just do it.
            What's the reason that HTML email isn't allowed still ?

            Comment


            • #7
              Originally posted by Abdulla Ashoor View Post
              yes of course. but I don't know if there are security issues assosiated with this or not

              edit file forumdir/includes/class_mail.php

              find:

              PHP Code:
              text/plain 
              replace with:

              PHP Code:
              text/html 
              I think this can be achieved with plugins using "mail_send" hook to replace the $headers
              and make it more saftly when you are using this for specific users
              Will this work with Ver 4.2 ?

              DAVID COPELAND
              Licensed VB Holder Since 2000
              Celebrating 20 Years with VB

              Comment


              • #8
                Originally posted by wynode View Post
                What's the reason that HTML email isn't allowed still ?
                The problem with this is that all other emails will just stop working.

                as you're sending all your emails with text/htmls emails that are plain text and don't have like, a <br > for line break WON'T show up as it was supposed to do with normal CR line breaks.

                You'd need to change ALL your email templates to have like the <br> in place...I know because I did that for phpbb and it was a mess...

                The problem with vbulletin is that it's harder to update a bunch of email templates....as they're all phrases.

                Comment


                • #9
                  Try this. Create a new plugin and add the following then save.

                  Hook Location: mail_send
                  Title: Auto HTML Emails

                  PHP Code:
                  PHP Code:
                  if(strlen($message) != strlen(strip_tags($message)))
                  {
                      
                  $headers str_replace('Content-Type: text/plain''Content-Type: text/html'$headers);

                  Plugin Active: Yes


                  Note: use at your own risk. We do not provide support for third party addons including my suggestion.
                  Please feel free to contact me if you have any questions or concerns

                  Links: vBulletin Manual - Code Documentation - FAQ - Bug Tracker - Lemon Juice
                  vBulletin 5 Connect: Extensions - Articles - Features - Purchases

                  Comment


                  • #10
                    Originally posted by Abdulla Ashoor View Post
                    Try this. Create a new plugin and add the following then save.

                    Hook Location: mail_send
                    Title: Auto HTML Emails

                    PHP Code:
                    PHP Code:
                    if(strlen($message) != strlen(strip_tags($message)))
                    {
                    $headers str_replace('Content-Type: text/plain''Content-Type: text/html'$headers);

                    Plugin Active: Yes


                    Note: use at your own risk. We do not provide support for third party addons including my suggestion.
                    this is EXACTLY what this mod does
                    Mini Mods - Send emails with HTML as HTML vBulletin 4.x Add-ons
                    .

                    Comment


                    • #11
                      This thread is six years old, no need to bump it up.
                      MARK.B | vBULLETIN SUPPORT

                      TalkNewsUK - My vBulletin 5.6.3 Demo
                      AdminAmmo - My Cloud Demo

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      X