Article View: microsoft.public.it.dotnet.asp
Article #19Problema con email in ASP.NET
From: FS
Date: Wed, 17 Dec 2003 19:51
Date: Wed, 17 Dec 2003 19:51
44 lines
3169 bytes
3169 bytes
Ho prova a inviare email con il seguente codice: MailMessage msg = new MailMessage(); msg.From = this.txtFrom.Text; msg.To = this.txtTo.Text; msg.Subject = this.txtSubject.Text; msg.Body = this.txtBody.Text; SmtpMail.Send(msg); ma ottengo sempre questo errore: Errore nell'invio: System.Web.HttpException: Impossibile accedere all'oggetto 'CDO.Message'. ---> System.Reflection.TargetInvocationException: Eccezione generata dalla destinazione di una chiamata. ---> System.Runtime.InteropServices.COMException (0x80040220): Il valore di configurazione "SendUsing" non � valido. --- Fine dell'analisi dello stack dell'eccezione interna --- 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 invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Type type, Object obj, String methodName, Object[] args) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- Fine dell'analisi dello stack dell'eccezione interna --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) Qualcuno mi sa aiutare? Fabio
Technical Details
Message-ID:
<at2Eb.7357$wM.500121@news1.tin.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!phobos.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!newsfeeder.edisontel.com!news.newsland.it!news.computerville.it!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f8fcf,b19e06b836fddd7,start X-Google-Attributes: gidf8fcf,public X-Google-Thread: 109bf7,b19e06b836fddd7,start X-Google-Attributes: gid109bf7,public X-Google-ArrivalTime: 2003-12-18 00:01:03 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!phobos.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!newsfeeder.edisontel.com!news.newsland.it!news.computerville.it!not-for-mail From: "FS" <f_spiga@yahoo.it> Newsgroups: microsoft.public.it.dotnet.asp,it.comp.www.asp Subject: Problema con email in ASP.NET Followup-To: it.comp.www.asp Date: Wed, 17 Dec 2003 19:51:34 GMT Organization: TIN Lines: 44 Approved: robomod.it@computerville.it (1.21) Message-ID: <at2Eb.7357$wM.500121@news1.tin.it> NNTP-Posting-Host: ventolo.computerville.it X-Trace: ventolo.computerville.it 1071734461 32722 194.185.238.200 (18 Dec 2003 08:01:01 GMT) X-Complaints-To: abuse@computerville.it NNTP-Posting-Date: Thu, 18 Dec 2003 08:01:01 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-Mail-Path: vejo.computerville.it!attila.bofh.it!vsmtp3.tin.it!murcielago.tin.it!news@news.tin.it X-Moderatore: 1071690695.16806 X-Original-NNTP-Posting-Host: 80.180.12.6 X-Original-X-Complaints-To: newsmaster@tin.it X-Original-X-Trace: news1.tin.it 1071690694 80.180.12.6 (Wed, 17 Dec 2003 20:51:34 MET) X-Approvato-Da: "Kappa [com-mod ICWA]" <kappa@aspitalia.com>