| | |
sending email in asp
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2008
Posts: 17
Reputation:
Solved Threads: 0
Hi,
Ihave to send an email from my application.
I am using CDONTS to send it.
The code is as follows:
I am getting no error. But the mail is also not reaching up to the destination.
can any body help me.
thanks in advance
Ihave to send an email from my application.
I am using CDONTS to send it.
The code is as follows:
ASP Syntax (Toggle Plain Text)
Dim objCDOMail Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = "abc" objCDOMail.To = "myemailid@gmail.com" objCDOMail.Subject = "Enquiry sent from my web site" objCDOMail.BodyFormat = 0 objCDOMail.MailFormat = 0 objCDOMail.Body = "<h2>Hello</h2><br><b>This is my e-mail in HTML format</b>" objCDOMail.Importance = 1 objCDOMail.Send Set objCDOMail = Nothing
can any body help me.
thanks in advance
Last edited by Tekmaven; Jul 31st, 2008 at 6:33 am. Reason: Code tags
•
•
Join Date: May 2008
Posts: 25
Reputation:
Solved Threads: 0
Hi
Try This:
Try This:
ASP Syntax (Toggle Plain Text)
<% Dim MyCDONTSMail Set MyCDONTSMail = CreateObject("CDONTS.NewMail") MyCDONTSMail.From= "abc" MyCDONTSMail.To= "myemailid@gmail.com" MyCDONTSMail.Subject="Enquiry sent from my web site" MyBody = MyBody ="Hello" MyCDONTSMail.Body= MyBody MyCDONTSMail.Send set MyCDONTSMail=nothing %>
Last edited by peter_budo; Aug 9th, 2008 at 1:32 pm. Reason: Correcting code tags, please use as follows [code]YOUR CODE HERE[/code]
![]() |
Similar Threads
- sending e-mail with ASP (ASP)
- sending email (ASP.NET)
- ASP: Sending a HTML form to an email address (ASP)
- Email Sending Problem in ASP.NET (ASP.NET)
- Help with asp form will not display contact information (ASP)
- How to compose an html complex email? (ASP.NET)
- Strange problem in sending emails by asp.net (ASP.NET)
- Vira e-mail (ASP)
Other Threads in the ASP Forum
- Previous Thread: error '80020009' exception error
- Next Thread: delete record using asp access
| Thread Tools | Search this Thread |
Tag cloud for ASP
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





