----------------------------------------------------------- New Message on cochindotnet
----------------------------------------------------------- From: Geeths Message 7 in Discussion please try like SmtpMail.SmtpServer.Insert(0,ConfigurationSettings.AppSettings[ "SMTP_Server" ]); instead of SmtpMail.SmtpServer = ConfigurationSettings.AppSettings("SMTP_Server") >From: "Abu Ismail [KolkataNet]" <[EMAIL PROTECTED]> >Reply-To: "cochindotnet" <cochindotnet@groups.msn.com> >To: [EMAIL PROTECTED], MumbaiUserGroup@groups.msn.com, >BDOTNET@groups.msn.com, dotnetusergrouphyd@groups.msn.com, >[EMAIL PROTECTED], [EMAIL PROTECTED], >CochinDotNet@groups.msn.com, AhmedabadUserGroup@groups.msn.com >Subject: Re: Urgent... If mention SmtpMail.SmtpServer="XYZServer" showing >EXCEPTION" >Date: Thu, 1 Sep 2005 20:54:08 -0700 > > > > > > > > > > > > > New Message on cochindotnet > > > > > > > > Urgent... If mention SmtpMail.SmtpServer="XYZServer" showing >EXCEPTION" > > > > > Reply > > > > > > Reply to Sender > Recommend > > Message 3 in Discussion > > > > > > > > From: > Abu Ismail [KolkataNet] > > > > > > > > > > New Message on MumbaiUserGroup > > > > > > > > Urgent... If mention SmtpMail.SmtpServer="XYZServer" showing >EXCEPTION" > > > > > Reply > > > > > > Reply to Sender > Recommend > > Message 2 in Discussion > > > > > > > > From: > Abu Ismail > > > > > > > > > > New Message on MumbaiUserGroup > > > > > > > > Urgent... If mention SmtpMail.SmtpServer="XYZServer" showing >EXCEPTION" > > > > > Reply > > > > > > Reply to Sender > Recommend > > Message 1 in Discussion > > > > > > > > From: > Abu Ismail > > > > > Hi, >In a website if I mentioned the SmtpMail.SmtpServer = ServerIPEits >showing the same error: >EXCEPTION Could not access 'CDO.Message' object.E>If I remove, then this >is working fine. >The code is as follows. Please help me resolve the problem. > >Public Function SendMail(ByVal sFrom As String, ByVal sTo As String, ByVal >sSubject As String, ByVal sBody As String, Optional ByVal sCc As String = >"", Optional ByVal sFiles As String = "", Optional ByVal sSmtpServer As >String = "") > Try > Dim insMail As New MailMessage > With insMail > .From = Trim(sFrom) > .To = Trim(sTo) > .Subject = >Trim(sSubject) > .Body = Trim(sBody) > .BodyFormat = MailFormat.Html > End With > '-- This code is to set the SMTP Server > If Trim(sSmtpServer) <> "" Then > SmtpMail.SmtpServer = Trim(sSmtpServer) > ElseIf ConfigurationSettings.AppSettings("SMTP_Server") <> "" >Then > SmtpMail.SmtpServer = >ConfigurationSettings.AppSettings("SMTP_Server") > End If > SmtpMail.Send(insMail) > Catch err As >Exception > HttpContext.Current.Response.Write("EXCEPTION " + err.Message + >"<br>") > End Try > End Function >Thanks, >Abu > > > > > > > View other groups in this category. > > > > > > > > > > > > > > > View other groups in this category. > > > > > > > > > > > > > > > View other groups in this category. > > > > > > > > > > > > > >Also on MSN: >Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily >Horoscopes > > > > > > > > > > > To stop getting this e-mail, or change how often it >arrives, go to your E-mail Settings. > > > Need help? If you've forgotten your password, > please go >to Passport Member Services. > > For other questions or feedback, go to our > Contact Us >page. > > > If you do not want to receive future e-mail > from this >MSN group, or if you received this message by mistake, please click the >"Remove" link below. On the pre-addressed e-mail message that opens, simply >click "Send". Your e-mail address will be deleted from this group's mailing >list. > > > Remove my e-mail address from cochindotnet. > > > > > > > _________________________________________________________________ He is deaf and dumb. http://www.iqbalthefilm.com And he is a furiously fast bowler. He is Iqbal ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/cochindotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]