You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Wilfred Ho <wi...@qualicom.com> on 2003/01/16 21:17:13 UTC

Can't send e-mail

Hi,

I use a SMTPAppender to send e-mail. It can do so only if I send to internal
co-worker. If I send to outside (e.g. xxx@yahoo.com) where the to e-mail
address is correct,  I got

log4j:ERROR Error occured while sending e-mail notification.
javax.mail.SendFailedException: Sending failed;
  nested exception is:
        class javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
        class javax.mail.SendFailedException: 550 not local host yahoo.com,
not a gateway

        at javax.mail.Transport.send0(Transport.java:218)
        at javax.mail.Transport.send(Transport.java:80)
        at org.apache.log4j.net.SMTPAppender.sendBuffer(Unknown Source)
        at org.apache.log4j.net.SMTPAppender.append(Unknown Source)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
erAttachableImpl.java:57)
        at org.apache.log4j.Category.callAppenders(Category.java:187)
        at org.apache.log4j.Category.forcedLog(Category.java:372)
        at org.apache.log4j.Category.error(Category.java:286)
        at Ex1.main(Ex1.java:59)

Why?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>