|
List Info
Thread: Re: SMTP configuration? (Stack Trace)
|
|
| Re: SMTP configuration? (Stack Trace) |
  United States |
2007-05-29 19:20:06 |
|
If your localhost SMTP server requires authentication, you’ll need to add the following init-param to the web.xml file for the blojsom servlet.
<init-param>
<param-name>smtp-server-username</param-name>
<param-value>username</param-value>
</init-param>
<init-param>
<param-name>smtp-server-password</param-name>
<param-value>password</param-value>
</init-param>
On 5/29/07 2:24 PM, "Sai N" <snagboth gmail.com> wrote:
You would have to provide a valid smtp server name, are you running a smtp server locally ? if not localhost/127.0.0.1 would not work...
here is where you have to change, $BLOJSOM_HOME/WEB-INF/web.xml
<servlet>
<servlet-name>blojsom</servlet-name>
<servlet-class>org.blojsom.servlet.BlojsomServlet</servlet-class>
<init-param>
<param-name>smtp-server</param-name>
<param-value>****localhost*****</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
On 5/28/07, Garrett Smith <dhtmlkitchen gmail.com> wrote:
I wonder: How would this cause an exception on localhost?
I also tried 127.0.0.1 <http://127.0.0.1> . result:
org.apache.commons.mail.EmailException: Sending the email to the
following server failed : 127.0.0.1:25 <http://127.0.0.1:25>
at org.apache.commons.mail.Email.sendMimeMessage(Email.java :873)
at org.apache.commons.mail.Email.send(Email.java:898)
at org.blojsom.plugin.comment.CommentPlugin.handleEvent(CommentPlugin.java:779)
at org.blojsom.event.SimpleEventBroadcaster$AsynchronousEventBroadcaster.run (SimpleEventBroadcaster.java:217)
at java.lang.Thread.run(Thread.java:613)
Caused by: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: Could not connect to SMTP host:
127.0.0.1 <http://127.0.0.1> , port: 25;
nested exception is:
java.net.ConnectException: Connection refused
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send (Transport.java:80)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:863)
On 5/28/07, Shalini <shalini_israni persistent.co.in> wrote:
> Yes. You do. Its is to be done in web.xml as a servlet config parameter for
> the BlojsomServlet.
> I think the default value set there is localhost, hence the exception 
>
>
> Thanks,
> Shalini
>
>
>
>
> -----Original Message-----
> From: blojsom-users-bounces lists.sourceforge.net
> [mailto: blojsom-users-bounces lists.sourceforge.net] On Behalf Of Garrett
> Smith
> Sent: Tuesday, May 29, 2007 11:05 AM
> To: blojsom-users lists.sourceforge.net
> Subject: [Blojsom-users] SMTP configuration? (Stack Trace)
>
> Do I need to configure SMTP for CommentPlugin?
>
> ========================================================
> ay 28 21:17:54 ERROR [Thread-17] comment.CommentPlugin - couldn't send
> mail: org.apache.commons.mail.EmailException: Sending the email to the
> following server failed : localhost:25
> org.apache.commons.mail.EmailException : Sending the email to the
> following server failed : localhost:25
> at org.apache.commons.mail.Email.sendMimeMessage(Email.java:873)
> at org.apache.commons.mail.Email.send(Email.java:898)
> at
> org.blojsom.plugin.comment.CommentPlugin.handleEvent(CommentPlugin.java:779)
> at
> org.blojsom.event.SimpleEventBroadcaster$AsynchronousEventBroadcaster.run(Si
> mpleEventBroadcaster.java :217)
> at java.lang.Thread.run(Thread.java:613)
> Caused by: javax.mail.SendFailedException: Sending failed;
> nested exception is:
> class javax.mail.MessagingException: Could not connect to SMTP host:
> localhost, port: 25;
> nested exception is:
> java.net.ConnectException: Connection refused
> at javax.mail.Transport.send0(Transport.java:218)
> at javax.mail.Transport.send (Transport.java:80)
> &nbs | |