• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
JavaMail Props Not Being Set
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JavaMail Props Not Being Set


  • Subject: JavaMail Props Not Being Set
  • From: Drew Thoeni <email@hidden>
  • Date: Mon, 26 Jun 2006 07:26:25 -0400

I am trying to set the SMTP host for JavaMail. I have attempted set the properties in the Application, in the component, and in Resources->Properties. None of these approaches seems to get the props set (per exception at the end of this email).

In the Application() using this code:

public Application() {
super();
Properties props = System.getProperties();
//Specify the desired SMTP server
props.put( "WOSMTPHost", "smtp.comcast.net" );
props.put( "mail.smtp.host", "smtp.comcast.net" );    

}


But when the app starts WO lists only "smtp" as the value of WOSMTPHost.


WOSMTPHost=smtp

Just prior to executing the Transport.send( message ); command I print the system properties and, as expected, these are the values.

WOSMTPHost=smtp.comcast.net
mail.smtp.host=smtp.comcast.net

But Transport.send( message );  fails with this exception.

SendFailedException: javax.mail.NoSuchProviderException: smtp

Regards,

Drew
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: JavaMail Props Not Being Set
      • From: Henrique Prange <email@hidden>
    • Re: JavaMail Props Not Being Set
      • From: Paul Suh <email@hidden>
  • Prev by Date: Re: Relation oddity
  • Next by Date: Tiny mce or FCKeditor.. how?
  • Previous by thread: Re: https connection
  • Next by thread: Re: JavaMail Props Not Being Set
  • Index(es):
    • Date
    • Thread