Gene,

are you using jboss 3?

have a look in mail-service.xml - mine has a bit like this:

<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>

replace the values with those for your login and I assume it will work (o:

cheers
dim

----- Original Message -----
From: "Gene Ge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 2:16 AM
Subject: [JBoss-user] Re: A question about Mail Service--not solved yet!


> thanks to Dmitri and Stephen
>
> but it is not solved yet so I need more help.
>
> I have had a valid account in the mail server and I know i can input my
> username&password in a mail application such as outlook to make it work.
> What is bothering me is I don't know where I can put my username&password
> when I use Mail Service of Jboss. Or something else I don't know?
>
> thanks for your help again.
>
> Gene
>
> ----- Original Message -----
> dem wrote:
>
> You will need to point it at a mail server that allows mail relaying from
> your network.  Try using the same host that you use for sending mail in
your
> mail client (outlook etc).
>
> cheers
> dim
>
> ----- Original Message -----
> From: "Gene Ge" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 07, 2002 1:09 PM
> Subject: [JBoss-user] A questin about Mail Service
>
>
> >hello every:
> >   Thanks for your help!
> >   I am trying to use Mail Service to send email. I did some
configuration
> >first such as set "mail.pop3.host=pop.aaa.net"
> "mail.smtp.host=smtp.aaa.net"
> >etc. in the /server/deploy/mail-service.xml file.
> >   The problem is: I found my program can only send mail to any address
> with
> >the same domain name of "mail.smtp.host" property. For example, if I set
> >mail.smtp.host=smtp.163.com(a mail server in my country), I would only
can
> >send mail to [EMAIL PROTECTED] or [EMAIL PROTECTED], and addresses as [EMAIL PROTECTED]
> >are told invalid email address.
> >
> ><!------------Error Message--------------->
> >11:02:37,062 ERROR [STDERR] javax.mail.SendFailedException: Sending
> failed;
> >   nested exception is:
> >         javax.mail.SendFailedException: Invalid Addresses;
> >   nested exception is:
> >         javax.mail.SendFailedException: 554 <[EMAIL PROTECTED]>:
> >Recipient address rejected: Relay access denied
> ><----------------------------------------->
> >I'm not sure whether it because the smtp server need a authentication. I
> had
> >set all properties in mail-service.xml include username and password but
> it
> >seemed it didn't take effect. So I think maybe I need more configuration.
> >Anyone can give me some hints? Thank you first.
> >
> >Best Regards
> >Gene
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to