In reply to my own question, at least in part. You get the mail.server as
shown.

        String smtpHost = TurbineResources.getString("mail.server");

I still am not sure why there are different email classes in the services
for what seems like the same function?

David

-----Original Message-----
From: David Wynter [mailto:[EMAIL PROTECTED]]
Sent: 07 January 2002 15:17
To: Turbine-User
Subject: Which email service to use?


I need to send some emails to a bunch of users previously setup in
Turbine_User. Do I use the SimpleEmail or MailMessage class, they appear to
do very similar things.

I have gone for MailMessage initially. The constructor takes the Host string
amongst other things. I believe this is the same as the "mail.server"
property in the TurbineResources.properties file. I have not been able to
find out were I can extract this from, which service has the accessor method
for this property? If there is not one I can just get it from the properties
file directly I suppose.

Thanks

David


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to