Hi all,

I use this code to send a simple mail :

public void doIt () throws Exception {

  SimpleEmail mySimpleEmail = new SimpleEmail();
  GregorianCalendar sendDate = new GregorianCalendar();

  mySimpleEmail.addTo("[EMAIL PROTECTED]","vchappuis");
  mySimpleEmail.setMsg("test");
  mySimpleEmail.setSubject("test");
  mySimpleEmail.setFrom("[EMAIL PROTECTED]","vchappuis");
  mySimpleEmail.setSentDate(sendDate.getTime());

  mySimpleEmail.send();
 }

but I have this exception : javax.mail.NoSuchProviderException: No provider
for Address type: rfc822

any idea ?

regards





------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to