[opencms-dev] e-mail content
Arian Abrahantes Quintana
Arian.Abrahantes.Quintana at cern.ch
Thu Jun 30 08:30:00 CEST 2005
I am using OpenCMS 5.1 and I attach a document to the mail in the following way:
CmsJspActionElement cms = new CmsJspActionElement(pc,req,res);
CmsObject cmso= cms.getCmsObject();
// Upload file procedure //
String From = "long string";
String[] To = {"mail at addre.ss <mailto:{mail at addre.ss> "}; // more then one too
String Subject = "long string";
String Content = "certainly a long string :-)))";
CmsMail mail = new CmsMail(cmso,From,To,Subject,Content,"text/plain");
hope that, at least as a hint, works,
regards,
arian
________________________________
From: opencms-dev-bounces at opencms.org on behalf of Borja Marcos Suarez
Sent: Wed 6/29/2005 10:59 PM
To: The OpenCms mailing list
Subject: [opencms-dev] e-mail content
Hi all,
I'm developing a jsp file that sends the content of a html page to a addres that the users wants.
To do it I'm using the CmsHtmlMail class. Everything works fine sending mail but I have one problem.
I don't know how to read the content of the html file. I mean, I can write the subject and the text I want... but I need to add the HTML content from the file that I now the path.
Can anybody help me??
Thanks in advance
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5005 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050630/a5565586/attachment.bin>
More information about the opencms-dev
mailing list