Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] multipart/alternative

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: Re: [sympa-dev] multipart/alternative
  • Date: Wed, 24 Oct 2007 09:16:36 +0200

We're planning to add this feature in the course of next year (we have a lot of things to do right now).
In the meantime, we should, relatively soon, ease the integration of an HTML WYSIWYG editor in Sympa, for some textareas. A lot of them exist (notably TinyMCE and FCKeditor for example) and we feel that this should be installed independently from Sympa. A short term solution could be to modify your templates directly to use one of these scripts.

As for your project, you should note that some CPAN modules can output multipart/alternative messages. See :
http://search.cpan.org/~bbc/Email-MIME-CreateHTML-1.026/lib/Email/MIME/CreateHTML.pm
http://search.cpan.org/~alian/MIME-Lite-HTML-1.22/HTML.pm
http://search.cpan.org/~markov/HTML-FromMail-0.11/lib/HTML/FromMail/Message.pod

For mail purppose, Sympa uses these modules:
MIME::Base64 >= 3.03
MIME::Charset >= 0.04.1
MIME::EncWords >= 0.040
MIME::Tools >= 5.423
Mail::Internet >= 1.51

So better using modules compatibles with them.

Web messages are generated in the wwsympa.fcgi script, in the sub do-send_mail() (which itself uses mail::mail_file()). So this is probably the best place to create multipart/alternative files.

Regards,

address@concealed a écrit :
Has anyone customized their version of sympa to be able to send
multipart/alternative emails from the web interface?

I am trying to do this and I am new to perl but it would be great if someone
could point me in the right direction or post some code updates I could apply.
I want to add text box for html in addition to the normal plain text box.

Jason

--
David Verdin
Comité réseau des universités




Archive powered by MHonArc 2.6.19+.

Top of Page