In my poking about to see how to get the SMTPHost I spotted a typical cut
and paste error

        if (smtpHost == null || smtpHost.trim().equals("")
                || emailFrom == null || smtpHost.trim().equals("")
<---------------------here 'tis
                || emailTo == null || emailTo.trim().equals("")
                || emailSubject == null || emailSubject.trim().equals("")
                || bufferSize == null || bufferSize.trim().equals("") )
        {
            return;
        }

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