| | |
Problem with cdonts mails in asp
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2004
Posts: 19
Reputation:
Solved Threads: 0
iam sending mail using cdonts in asp
there is no error but the mail is not send.
can some one help me in this.
this is the code
set objMail=Server.CreateObject("CDONTS.NewMail")
objMail.From=FromId
objMail.To=ToId
objMail.Subject=MailSubject
objMail.BodyFormat=0 ' for HTML
objMail.MailFormat = 0 ' for MIME
objMail.Body=MailMessage
objMail.Send
set objMail=nothing
there is no error but the mail is not send.
can some one help me in this.
this is the code
set objMail=Server.CreateObject("CDONTS.NewMail")
objMail.From=FromId
objMail.To=ToId
objMail.Subject=MailSubject
objMail.BodyFormat=0 ' for HTML
objMail.MailFormat = 0 ' for MIME
objMail.Body=MailMessage
objMail.Send
set objMail=nothing
See Brinkster knowledgebase:
http://brinkster.com/Kb/Kb.asp?kb=108154
Make sure your server support CDONT first!
http://brinkster.com/Kb/Kb.asp?kb=108154
Make sure your server support CDONT first!
•
•
Join Date: Dec 2004
Posts: 27
Reputation:
Solved Threads: 0
now a day i am designing a site in which my client requirement is that when customer fill the form , the form information automically receive my client by email address.
i mean when customer fill product form then information submit in database and also my client receive same informatin in the form of email address.
my operating system is win98
and database is microsoft access
i know u cam help me.
i mean when customer fill product form then information submit in database and also my client receive same informatin in the form of email address.
my operating system is win98
and database is microsoft access
i know u cam help me.
•
•
Join Date: Nov 2004
Posts: 19
Reputation:
Solved Threads: 0
i din't get your question.can u please explain this
"i mean when customer fill product form then information submit in database and also my client receive same informatin in the form of email address.
"
again.what is this clients means.
"i mean when customer fill product form then information submit in database and also my client receive same informatin in the form of email address.
"
again.what is this clients means.
•
•
•
•
Originally Posted by faisyshah
now a day i am designing a site in which my client requirement is that when customer fill the form , the form information automically receive my client by email address.
i mean when customer fill product form then information submit in database and also my client receive same informatin in the form of email address.
my operating system is win98
and database is microsoft access
i know u cam help me.
•
•
Join Date: Dec 2004
Posts: 27
Reputation:
Solved Threads: 0
first of all thanks for reply
now clients means person or company for whom i am designing a site.
in short i have same question or problem that u wrote in this thread.
but iam using asp
win98 operating system
microsoft Access database
can i use cdonts in my case
if yes then how i can use in my web page
if not then what is another procedure.
now clients means person or company for whom i am designing a site.
in short i have same question or problem that u wrote in this thread.
but iam using asp
win98 operating system
microsoft Access database
can i use cdonts in my case
if yes then how i can use in my web page
if not then what is another procedure.
If you can instal JMail or ASPMail to your server (or they have been installed), it will be easier and there are many open source code on the internet.
see http://www.haneng.com tutorial, also see http://brinkster.com/Kb/Kb.asp?kb=108154
see http://www.haneng.com tutorial, also see http://brinkster.com/Kb/Kb.asp?kb=108154
•
•
Join Date: Nov 2004
Posts: 19
Reputation:
Solved Threads: 0
hello
u can get the details of the form submited and store it in the database.
the content of the form can be considerd as mailmessage and send the mail
mailmessage="<table><tr><td>CustomerName:"&CustomerName & "<td><tr>"
mailMessage=MailMessage&"<tr><td>CustomerEmailAddress:"&emailID&"<td><tr>"
mailMessage=MailMessage&"----------"
MailMessage=MailMessage& "</table>"
set objMail=Server.CreateObject("CDONTS.NewMail")
objMail.From=FromId
objMail.To=ToId
objMail.Subject=MailSubject
objMail.BodyFormat=0 ' for HTML
objMail.MailFormat = 0 ' for MIME
objMail.Body=MailMessage
objMail.Send
set objMail=nothing
u can get the details of the form submited and store it in the database.
the content of the form can be considerd as mailmessage and send the mail
mailmessage="<table><tr><td>CustomerName:"&CustomerName & "<td><tr>"
mailMessage=MailMessage&"<tr><td>CustomerEmailAddress:"&emailID&"<td><tr>"
mailMessage=MailMessage&"----------"
MailMessage=MailMessage& "</table>"
set objMail=Server.CreateObject("CDONTS.NewMail")
objMail.From=FromId
objMail.To=ToId
objMail.Subject=MailSubject
objMail.BodyFormat=0 ' for HTML
objMail.MailFormat = 0 ' for MIME
objMail.Body=MailMessage
objMail.Send
set objMail=nothing
![]() |
Similar Threads
- Sending mails...... (ASP.NET)
Other Threads in the ASP Forum
- Previous Thread: error '80020009' Exception Occured
- Next Thread: Change Font Size
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7





