Follow up and Importance flags in javamail
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sujatha_Telu
Posted On:   Thursday, July 17, 2003 03:06 PM

I am sending a mail presently using javamail and SMTP, but now i have got a new requirement which says that i should be able to send the person a mail with follow up flag and also the importance (something like the red (!) which appears in outlook) along with the message. Please help me in this regard Please find below the code... Properties props = System.getProperties(); props.put("mail.smtp.host", m_sSMTPServer); Session session = Session.getDefaultInstance(props, null); try { Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress(From)); msg.setRecipients(Message.RecipientType.TO, InternetAddress.par   More>>

I am sending a mail presently using javamail and SMTP, but now i have got a new requirement which says that i should be able to send the person a mail with follow up flag and also the importance (something like the red (!) which appears in outlook) along with the message.

Please help me in this regard

Please find below the code...





Properties props = System.getProperties();

props.put("mail.smtp.host", m_sSMTPServer);

Session session = Session.getDefaultInstance(props, null);

try {

Message msg = new MimeMessage(session);

msg.setFrom(new InternetAddress(From));

msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(sTo, false));

msg.setSubject(Subject);

msg.setContent(Body, "text/html");

Transport.send(msg);

} catch (AddressException ae) {}

catch (MessagingException me) {}

   <<Less

Re: Follow up and Importance flags in javamail

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, July 18, 2003 09:15 AM

About | Sitemap | Contact