I would discourage sending emails just as html - but generally, since the platform has the need mail configuration anyway it would be good that applications can use this without the constraints of the MailManService, maybe just having a method returning a javax.mail.Session?
Btw, the limitation in the MailMan service to exactly one To address seems quite arbitrary. Reto On Tue, Dec 15, 2009 at 5:34 PM, Oliver Strässer < [email protected]> wrote: > If the String is html , the mimetype i want to send is html.. > > when i try to send the string, the string isn't save in the graph or somewhere else. > > > i think ist very usefull to send very easy a string an define by self wich mimtype will be used. > > > i'm fine with you - if you mean that the interface bellow isn't very useful, but the following is useful: > > > sendEmail(InternetAddress from, InternetAddress to, InternetAddress[] cc, InternetAddress[] bcc, String subject, String message , String mimeType) > > -----Ursprüngliche Nachricht----- > Von: Reto Bachmann-Gmuer [mailto:[email protected]] > Gesendet: Dienstag, 15. Dezember 2009 17:29 > An: Oliver Strässer > Betreff: Re: [Users] stupid question @ mir > > I must say I don't know about this method, I assume it generates a > multipart message with the parts dending on the available renderlets > ans the acceptable media-types. But If a String is passed rather than > a GraphNode what would the acceptable media-types be used for? > > reto > > On Tue, Dec 15, 2009 at 4:18 PM, Oliver Strässer > <[email protected]> wrote: >> so it's necessary to create a graphnode to send mail with mime types - this is stupid (my opinion) - because so i need to create an graphnode and an renderer for that ? >> >> is there a reason why you don't provide: >> >> sendEmail(InternetAddress from, InternetAddress to, >> InternetAddress[] cc, InternetAddress[] bcc, String subject, >> String message , List<MediaType> acceptableMediaTypes ) >> >> additional? >> >> >> --getunik ag------------------------------------------- >> oliver straesser [email protected] >> hardturmstrasse 101 fon: +41 (0)44 388 55 88 >> ch-8005 zuerich fax: +41 (0)44 388 55 89 >> >> --aktuelles getunik projekt------------------------- >> Engagieren Sie sich für den Klimaschutz! http://youturn.greenpeace.ch >> >> >> --best of swiss web awards 2009------------------ >> Gold & Silber für Connect2Earth / Bronze für WWF UK >> >> get into conversation - http://www.getunik.com >> >> ***************************************************************** >> Bitte drucken Sie dieses E-Mail nur bei Bedarf aus. Die Umwelt dankt es Ihnen. >> ***************************************************************** >> >> >> -----Ursprüngliche Nachricht----- >> Von: [email protected] [mailto: [email protected]] Im Auftrag von mir >> Gesendet: Dienstag, 15. Dezember 2009 16:00 >> An: [email protected] >> Betreff: Re: [Users] stupid question @ mir >> >> Hi Oli, >> cc and bcc can be null. This is mentioned in the comment of the MailMan >> interface ;-) >> >> http://scm.trialox.org/main/org.clerezza.platform.mail/file/e821460bfdcb/src/main/java/org/apache/clerezza/platform/mail/MailMan.java >> (line 132). >> >> By the way, you posted the question on the wrong mailing list. Clerezza >> is now part apache. On following link you should find all information >> you need to subscribe to our new list: >> http://mail-archives.apache.org/mod_mbox/incubator-clerezza-dev/. >> >> cheers, >> Manuel >> >> >> On Tue, 2009-12-15 at 09:32 -0500, Oliver Strässer wrote: >>> hi mir >>> >>> >>> >>> how can i send emails with an miome type and no cc / bcc addresses? >>> >>> >>> >>> http://scm.trialox.org/main/org.clerezza.platform.mail/file/e821460bfdcb/src/main/java/org/apache/clerezza/platform/mail/MailManImpl.java#l1 >>> >>> >>> >>> public void sendEmail(final InternetAddress from,final InternetAddress >>> to, >>> >>> final InternetAddress[] cc, final InternetAddress[] bcc, >>> >>> final String subject, final Object content, final String mediaType, >>> >>> final List<MediaType> acceptableMediaTypes, final String mode) >>> >>> throws MessagingException { } >>> >>> >>> >>> i have only from InternetAddress / to InternetAddress String subject >>> & String content, and i need to send " text /html/" >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> --getunik ag------------------------------------------- >>> oliver straesser [email protected] >>> >>> hardturmstrasse 101 fon: +41 (0)44 388 55 88 >>> ch-8005 zuerich fax: +41 (0)44 388 55 89 >>> >>> --aktuelles getunik projekt------------------------- >>> >>> Engagieren Sie sich für den Klimaschutz! >>> http://youturn.greenpeace.ch >>> >>> >>> >>> >>> >>> --best of swiss web awards 2009------------------ >>> >>> Gold & Silber für Connect2Earth / Bronze für WWF UK >>> >>> >>> >>> get into conversation - http://www.getunik.com >>> >>> >>> >>> ***************************************************************** >>> >>> P Bitte drucken Sie dieses E-Mail nur bei Bedarf aus. Die Umwelt dankt >>> es Ihnen. >>> >>> ***************************************************************** >>> >>> >>> >>> >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> http://lists.trialox.org/mailman/listinfo/users >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.trialox.org/mailman/listinfo/users >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.trialox.org/mailman/listinfo/users >> >
