Download Mail - HTML Anomaly?

Hi, Dave -

Hmmm. I think this plugin has great potential. The ability to "update your site via email" sounds fantastic. However, right now I feel disinclined to promote it to my clients because I'd have to explain it only works with certain provisos.

Ultimately, if it's going to perform as I assumed it would, you need to strip out everything apart from what's inside the <body> tag.

Indeed, you may need to go even further. Would it be possible to strip out everything that isn't either a <p>, <a>, <img>, <ul> or <li> tag?

:0/

Perchpole

Re: [Perchpole] Download Mail - HTML Anomaly?

By Dave - October 12, 2010

Hi Perch,

You could strip out all but specific tags, it would take some custom code though.

The plugin basically takes care of the job of receiving the email and making it easily available. What I've done in the past when building "update your site by email" features is use the "message text" field which usually contains a text version of the content.

The problem with HTML email is the same as with an HTML wysiwyg editor field in that you never know what the client might put in there.

There's also the issue of email signatures. So it's not completely fool proof. Those need to be removed before sending or after as well.

Once you receive the messages in the "Incoming Mail" folder, are you copying them over to another table? Or how are you displaying them? Or have you not yet got that far?
Dave Edis - Senior Developer
interactivetools.com

Re: [Perchpole] Download Mail - HTML Anomaly?

This anomaly is normal, is the closest we can come to get the HTML code, you should not be a problem