ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Make HTML (not text) email as default in moblog

June 06, 2011 8:41pm

Subscribe [4]
  • #1 / Jun 06, 2011 8:41pm

    Synergy3C

    18 posts

    Hi All

    I’ve been sifting through mod.moblog.php trying to see how I can change the file so that the HTML version of an email is considered the default and plain text is considered the alternative for inserting an email into a weblog via Moblog

    I’m trying to post a newsletter email to EE as if EE was a subscriber to the email list.  Therefore, if the email newsletter is sent in HTML format, I would like to have moblog receive the email and post it into a weblog in HTML format, so it shows the newsletter as it would be viewed on a web page.

    Hoping this is possible ... how/where would I edit the mod.moblog.php? I’m sending the email from Campaign Monitor, by the way, not an email client.

    Or… is there another way to do this?

    Thanks

  • #2 / Jun 07, 2011 5:36am

    John Henry Donovan

    12339 posts

    DHP,

    The Moblog Module doesn’t quite work like that. See Submitting Content Via Email

    You need to specify the fields that the content is going to be added to. You could try and wrap all the HTML in your CM template in {field:body format="none"}{/field:body}but I don’t know if CM is going to generate an error or not when you import it

  • #3 / Jun 07, 2011 8:02am

    Synergy3C

    18 posts

    Thanks Igmar. Unfortunately, mod.moblog.php has a script sets the text version of the incoming HTML email as the default, as opposed to the alternative - thus, the html email is ignored and Moblog imports the text version. So setting the format in the moblog template as you described only sets the format to be html on text only data.

    I was seeking tips on how I can edit mod.moblog.php to reverse that setting and make the html email version the default for importing by moblog

    Cheers

  • #4 / Jun 07, 2011 8:59am

    Sue Crocker

    26054 posts

    Hi, DHP - that would mean you would need to make code changes, and would be considered a hack. You’d need to maintain the code changes yourself. In the meantime, moving to the Community Help forum for additional community support.

  • #5 / Jun 16, 2011 1:08pm

    adisys

    23 posts

    I am also very interested in making this work with HTML content.

    I have HTML tables generated by a system that are sent via Email. It would be great if these tables would display the same in ExpressionEngine. Unfortunately they get transformed to plain text :/

  • #6 / Jun 17, 2011 2:44am

    John Henry Donovan

    12339 posts

    Moving to Community Help as Sue mentions where you may receive help from other members

  • #7 / Jun 20, 2011 6:48am

    adisys

    23 posts

    I added this to the config.php file in expressionengine/config

    $config[‘moblog_allow_nontextareas’] = ‘y’;

    This setting permits the usage of other types of custom fields [like WYGWAM]

  • #8 / Jul 01, 2011 7:54am

    adisys

    23 posts

    EE, please provide us with some starting point for this issue.
    Moving threads to Community almost never gets a result :(

  • #9 / Jul 08, 2011 9:27am

    adisys

    23 posts

    Not even one starting point where we can build upon?

    I am aware that CodeIgniter & EE can send HTML Emails.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases