Hi,
how about reading the JavaMail API doku???
You can set the sender by calling setFrom(adress); where adress is
javax.mail.InternetAdress which can be created by new
InternetAdress(String);
Burkhard
----- Original Message -----
From: "Hunter Hillegas" <[EMAIL PROTECTED]>
To: "JBoss 2" <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 11:44 PM
Subject: [JBoss-user] Using Provided JavaMail


> I read through the section on using JavaMail in JBoss. I have a need to
have
> the "from" address set programatically, not in the conf file. Can I do
this?
> In the example there is a call to m.setFrom(); but it's not passing
anything
> and the docs indicate that you set that in mail.properties.
>
> Additionally, there is someone's email info in the stock distribution, in
> case anyone wants to make the defaults something more non-specific. :-)
>
> Hunter
>
>
> _______________________________________________
> 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

Reply via email to