PS - when I set debug = true in the mail-service.xml file and try to send a mail, it says that
auth=false this led me to suspect that there might be a parameter or something to do what I want. Thanks very much for your help, Brian -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian McSweeney Sent: 20 November 2003 13:16 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Mail Service Requires Authentication help Hi Heiko, No they're not. I think it's because the server requires pop authentication before I can send smtp. I've found some stuff on old jboss docs saying: <snip> Using the JavaMail service with mail servers that require POP authentication before SMTP You can do this by using: import javax.mail.Store; Store s = session.getStore(); s.connect(); // POP authentication Transport.send(m); </snip> To make this a bit more efficient I was thinking of doing if(!store.isConnected()) s.connect(); However, I was wondering if there's a way to just specify this in the mail-service.xml file. Thanks very much for your help, Brian -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rupp, Heiko Sent: 20 November 2003 12:44 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Mail Service Requires Authentication help Hi, > I'm using the JBoss mail service from my server. My mail server > is outside the firewall however, and > requires authentication before I can send any mails. Is there a > tag or something that I can put into the > mail-service.xml file which will do authentication for me? Are user/password not working for you? <mbean code="org.jboss.mail.MailService" name="jboss:service=Mail"> <attribute name="JNDIName">java:/Mail</attribute> <attribute name="User">nobody</attribute> <attribute name="Password">password</attribute> Heiko -- Heiko W. Rupp EMail: [EMAIL PROTECTED] Senior Consultant Telefon: +49 711 222 992 - 900 Cellent AG Finance Solutions Telefax: +49 711 222 992 - 999 Calwer Str. 33 D-70173 Stuttgart ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
