public static void Email(String test) {
DateFormat formatter ;
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
try{
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("Sender email", "Automatic email"));
msg.addRecipient(Message.RecipientType.TO,
new InternetAddress("Recepient email"));
msg.setSubject(test);
msg.setText(test);
Transport.send(msg);
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
On Thu, May 31, 2012 at 4:09 AM, Joseph Lust <lifeoflust@gmail.com> wrote:
Buddy,Show us your code that is not working and we'll try to help.Sincerely,Joseph--To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/43B4cv-1gzQJ.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment