Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 25745 invoked from network); 15 Feb 2006 10:36:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Feb 2006 10:36:55 -0000 Received: (qmail 88848 invoked by uid 500); 15 Feb 2006 10:36:53 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 88820 invoked by uid 500); 15 Feb 2006 10:36:52 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 88809 invoked by uid 99); 15 Feb 2006 10:36:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 02:36:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gaset.kovalenko@gmail.com designates 64.233.184.192 as permitted sender) Received: from [64.233.184.192] (HELO wproxy.gmail.com) (64.233.184.192) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 02:36:51 -0800 Received: by wproxy.gmail.com with SMTP id 71so1316994wri for ; Wed, 15 Feb 2006 02:36:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:reply-to:from:to:subject:date:organization:mime-version:content-type:x-mailer:thread-index:x-mimeole:message-id; b=pvqBCDLrqxT8VRE7OAFVf4sgi5XYfG4ebNcpHGfgwdewJG5/CjiMxa9WmaXj+XmcyQeCy0ps7sxcgViR9X4mm+buF7DY5VZ5B6vnrqyPWi6nji4u2abBKVo+AEsATNuNRamTjHYqaOFU28XKJJboChCjECfIO8NpiklTGMw2tdc= Received: by 10.65.160.6 with SMTP id m6mr2509683qbo; Wed, 15 Feb 2006 02:36:30 -0800 (PST) Received: from pcvlk ( [193.239.152.105]) by mx.gmail.com with ESMTP id d5sm893870qbd.2006.02.15.02.36.28; Wed, 15 Feb 2006 02:36:30 -0800 (PST) Reply-To: From: "Vladimir Kovalenko" To: Subject: SmtpAppender and SSL Date: Wed, 15 Feb 2006 12:38:34 +0200 Organization: Personal (Gmail) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001D_01C6322C.BDE1CEC0" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcYyG/h3szrjPjZfRKGMVsxJJokitQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <43f3042e.261f2062.5e2a.ffffdd04@mx.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_001D_01C6322C.BDE1CEC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi. I am currently experiencing the following problem: I am using SmtpAppender. E-mails are sent via smtp.gmail.com which uses SSL. My configuration file looks like that: I receive the following runtime error: log4net:ERROR [SmtpAppender] Error occurred while sending e-mail notification. System.Web.HttpException: The server rejected the sender address. The server response was: 530 5.7.0 Must issue a STARTTLS command first a29sm294756qbd ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x8004020E): The server rejected the sender address. The server response was: 530 5.7.0 Must issue a STARTTLS command first a29sm294756qbd --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at log4net.Appender.SmtpAppender.SendBuffer(LoggingEvent[] events) Have I missed something in my configuration? When I send e-mail with System.Net.Mail.SmtpClient.Send(.) with the setting provided above, everything goes ok. Best regards, Vladimir Kovalenko ------=_NextPart_000_001D_01C6322C.BDE1CEC0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi.

I am currently experiencing the following problem: I = am using SmtpAppender. E-mails are sent via smtp.gmail.com which uses SSL. = My configuration file looks like that:

 

<appender name=3D"SmtpAppender" =
type=3D"log4net.Appender.SmtpAppender">
  =
<authentication value=3D"Basic" =
/>
  =
<username value=3D"username" =
/>
  =
<password value=3D"password" =
/>
  =
<to value=3D"one@gmail.com" =
/>
  =
<from value=3D"two@gmail.com" =
/>
  =
<subject value=3D"Logging information" =
/>
  =
<smtpHost value=3D"smtp.gmail.com" =
/>
  =
<bufferSize value=3D"512" =
/>
  =
<lossy value=3D"true" =
/>
  =
<evaluator =
type=3D"log4net.Core.LevelEvaluator">
    <threshold =
value=3D"INFO"/>
  =
</evaluator>
  =
<layout =
type=3D"log4net.Layout.PatternLayout">
    <conversionPattern =
value=3D"%newline%date [%thread] %-5level %logger [%property{NDC}] =
- %message%newline%newline%newline" =
/>
  =
</layout>
</appender>

 

I receive the following runtime = error:

 

log4net:ERROR [SmtpAppender] Error occurred while sending e-mail notification.
System.Web.HttpException: The server rejected the sender address. The = server response was: 530 5.7.0 Must issue a STARTTLS command first = a29sm294756qbd
---> System.Reflection.TargetInvocationException: Exception has been = thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x8004020E): The server rejected the sender address. The = server response was: 530 5.7.0 Must issue a STARTTLS command first = a29sm294756qbd

--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags = invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, = String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags = bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, = String methodName, Object[] args)
--- End of inner exception stack trace ---
at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, = String methodName, Object[] args)
at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message)
at System.Web.Mail.SmtpMail.Send(MailMessage message)
at log4net.Appender.SmtpAppender.SendBuffer(LoggingEvent[] = events)

 

Have I missed something in my configuration? When I = send e-mail with System.Net.Mail.SmtpClient.Send(…) with the setting = provided above, everything goes ok.

 

 

Best = regards,

Vladimir = Kovalenko

 

 

------=_NextPart_000_001D_01C6322C.BDE1CEC0--