Any tips on HTML email?

10 views
Skip to first unread message

pgio

unread,
Mar 16, 2011, 3:37:30 PM3/16/11
to Helma
Trying to send html emails through Helma. The helma.Mail class only
seems to allow plain text; even though you can set a multipart type,
you can't seem to set the Content-Type header. Is this a limitation in
Helma, in javamail, or just a misunderstanding?

Pete

pgio

unread,
Mar 17, 2011, 11:14:52 AM3/17/11
to Helma
Got Helma to send html as an attachment but that's not really what I
want.

pgio

unread,
Mar 22, 2011, 11:35:40 AM3/22/11
to Helma
Well, if anyone is interested, I got my situation to work by patching
helma.Mail to always add the "Content-Disposition: inline" header. Now
I have html email.

Pete

Kris Leite

unread,
Mar 22, 2011, 11:45:16 AM3/22/11
to he...@googlegroups.com
Hi Pete,

Could you send the patch? I would like to see about sending an html email also.

Thanks,
Kris

Pete Giovagnoli

unread,
Mar 23, 2011, 4:19:17 PM3/23/11
to he...@googlegroups.com
Well, not exactly worth a patch: add this after line 515 of
modules/helma/Mail.js:

part.setHeader("Content-disposition","inline");

Beware that it will set all parts to inline -- I think this will screw
up attachments.


Pete

> --
> You received this message because you are subscribed to the Google Groups "Helma" group.
> To post to this group, send email to he...@googlegroups.com.
> To unsubscribe from this group, send email to helma+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/helma?hl=en.
>

Kris Leite

unread,
Mar 23, 2011, 4:30:28 PM3/23/11
to he...@googlegroups.com
Hi Pete,

Thank you for the modification. At this point, I am not sending attachments but I will keep it in mind.

Thanks,
Kris

Reply all
Reply to author
Forward
0 new messages