String sSmtpHost = "mysmtp.host.com";
Properties properties = System.getProperties();
properties.put("mail.smtp.host", sSmtpHost);
Session session = Session.getInstance(properties, null);
----- Original Message -----
From: "Robert Finneran" <[EMAIL PROTECTED]>
To: "Jboss-User" <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 6:02 PM
Subject: [JBoss-user] Simple mail configuration issue
> Simple mail configuration issue:
>
> I don't think I have things configured properly. Can anyone give me some
> hints on where to look?
> When my app sends email it tries to send to to smtp.mail.yahoo.com. This
was
> not my intention.
>
> Here's the JBoss start-up messages:
>
> [Mail Service] Starting
> [Mail Service] DEBUG: not loading system providers in <java.home>/lib
> [Mail Service] DEBUG: not loading optional custom providers file:
> /META-INF/java
> mail.providers
> [Mail Service] DEBUG: successfully loaded default providers
> [Mail Service]
> DEBUG: Tables of loaded providers
> [Mail Service] DEBUG: Providers Listed By Class Name:
> {com.sun.mail.smtp.SMTPTra
>
nsport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Su
> n Mi
> crosystems, Inc],
> com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com
> .sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
> com.sun.mail.pop3.POP3Store=jav
> ax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems,
> Inc]}
> [Mail Service] DEBUG: Providers Listed By Protocol:
> {imap=javax.mail.Provider[ST
> ORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
> pop3=javax.mail.Pro
> vider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc],
> smtp=javax.
> mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
> Microsystems, I
> nc]}
> [Mail Service] DEBUG: not loading optional address map file:
> /META-INF/javamail.
> address.map
> [Mail Service] Mail Service 'Mail' bound to java:/Mail
> [Mail Service] Started
>
> Thanks!
>
> Rob
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user