You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by David Wynter <da...@btclick.com> on 2002/01/07 16:17:11 UTC
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Which email service to use?
Posted by David Wynter <da...@btclick.com>.
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:david.wynter@btclick.com]
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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Spotted error in email logging service
Posted by Daniel Rall <dl...@finemaltcoding.com>.
What source file is this from?
"David Wynter" <da...@btclick.com> writes:
> 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:david.wynter@btclick.com]
> 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Spotted error in email logging service
Posted by Daniel Rall <dl...@finemaltcoding.com>.
Thanks David, fixed in jakarta-turbine-2 CVS.
"David Wynter" <da...@btclick.com> writes:
> Sorry,
>
> I have not got to grips with NetBeans CVS yet otherwise I'd send a Diff. The
> error is on line 253 of Log4JavaLogger.java
>
>
>
> -----Original Message-----
> From: Kurt Schrader [mailto:kschrade@engin.umich.edu]
> Sent: 08 January 2002 20:56
> To: Turbine Users List
> Subject: Re: Spotted error in email logging service
>
>
>
> On Tuesday, January 8, 2002, at 09:23 AM, David Wynter wrote:
>
>> 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;
>
> Can you submit a patch or perhaps identify the file that this came from?
>
> -Kurt
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Spotted error in email logging service
Posted by David Wynter <da...@btclick.com>.
Sorry,
I have not got to grips with NetBeans CVS yet otherwise I'd send a Diff. The
error is on line 253 of Log4JavaLogger.java
-----Original Message-----
From: Kurt Schrader [mailto:kschrade@engin.umich.edu]
Sent: 08 January 2002 20:56
To: Turbine Users List
Subject: Re: Spotted error in email logging service
On Tuesday, January 8, 2002, at 09:23 AM, David Wynter wrote:
> 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;
Can you submit a patch or perhaps identify the file that this came from?
-Kurt
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Spotted error in email logging service
Posted by Kurt Schrader <ks...@engin.umich.edu>.
On Tuesday, January 8, 2002, at 09:23 AM, David Wynter wrote:
> 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;
Can you submit a patch or perhaps identify the file that this came from?
-Kurt
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Spotted error in email logging service
Posted by David Wynter <da...@btclick.com>.
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:david.wynter@btclick.com]
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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>