Put the following code into your function :
            set cdoMessage = Server.CreateObject("CDO.Message")
            set cdoConfig = Server.CreateObject("CDO.Configuration")
         
          cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="127.0.0.1"
          cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
          cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 
            cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2         
           
            cdoConfig.Fields.Update
            set cdoMessage.Configuration = cdoConfig
            cdoMessage.From =  fromAddr
            cdoMessage.To = recipients
            cdoMessage.Subject = subject
            cdoMessage.HtmlBody = body
            on error resume next
            cdoMessage.Send
            if Err.Number < > 0 then
                SendMail = "Email send failed: " & Err.Description & "."
            end if
            set cdoMessage = Nothing
            set cdoConfig = Nothing
Microsoft Technology
This blog gives you a new way to find out your solutions who face while interview...
01/10/2008
Categories: ASP
posted by Maulik Patel at 10:00 AM | Back to main page
Leave a Comment
Send Mail From ASP ( Use this Code)
Categories: ASP
posted by Maulik Patel at 10:00 AM | Back to main page
Leave a Comment
About Me
Maulik PatelView my complete profile
Friends
Paryank Kansarawoody
Administrator
Nirav Sheth
Links
Know about 14 GaamDownload Shortkey
Orthotics Management system
Categories
Uncategorizedproduct
FAQ ASP.NET-C#.NET
Written Test Questions C#.net,asp.net
ASP.NET Interview Questions
General
Short Descriptive Que-Ans
Quiz
C# Interview Questions
New Features ASP.NET C#.NET
Share Points
ASP
ASP.NET
Localization
Archives
April, 2007August, 2007
December, 2007
February, 2007
February, 2008
January, 2008
July, 2007
June, 2007
June, 2008
March, 2007
November, 2007
October, 2007
RSS Feed