It is a remote SMTP server (in our lan) and autentication shuld not be needed from inside our LAN (I have sucsessfully accessed the SMTP server from within a vanila tomcat5 web app without autentication).
Could a autentication faliur result in a NoSuchProviderException ?
I have tryed setting the Transport attributes (smtphost, username, password) from within the code

Transport tr = mailSession.getTransport("smtp");
tr.connect(smtphost, username, password);
and also tryed a GBean via the attributes (host,port).
The Gbean is from a sligtly moddified version of the "example mail session" that Rick posted (he did a farly good shoot from the hip ;)).

I but regardles of a lott of testing with different setups i still get

javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp
       at javax.mail.Session.getProvider(Session.java:227)
       at javax.mail.Session.getTransport(Session.java:336)


Im testing this on a fresh install of Geronimo 1.1.1

Anny suggestions ?

Cheers
  Peter

Aaron Mulder skrev:
Does your localhost have a mail server running?  Or are you trying to
send through a remote SMTP server?  Is the mail server open or do you
need to authenticate to it?

Thanks,
    Aaron

On 9/29/06, Peter Petersson <[EMAIL PROTECTED]> wrote:
Hi all!

I quite new to Geronimo (using 1.1.1) and have some problems geting mail
to work from a geronimo-quartz job.
As I understand it I need to set up a gbean or do some other
configuration for javamail to work (?).
The example i have folowed for the Quartz Scheduler Plugin over at
http://gplugins.sourceforge.net/ have a nice setup including mailing (in
the "Deployable Jobs Example" section) but it dose not go into details
on howto set up mailing (its not the scope of the example).

What do I need to do to get it to work? as it is now i get this exception

MessagingException Unable to locate provider for protocol: smtp

Anny good pointer out there to get mailing working in Geronimo ?

Cheers
  Peter

Reply via email to