954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem with cdonts mails in asp

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

Deepa
Newbie Poster
19 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

See Brinkster knowledgebase:
http://brinkster.com/Kb/Kb.asp?kb=108154

Make sure your server support CDONT first!

zippee
Posting Whiz in Training
294 posts since Jan 2005
Reputation Points: 10
Solved Threads: 7
 

my server supports cdon't,then what is the problem in the code

Deepa
Newbie Poster
19 posts since Nov 2004
Reputation Points: 10
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.

faisyshah
Light Poster
27 posts since Dec 2004
Reputation Points: 10
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.

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.

Deepa
Newbie Poster
19 posts since Nov 2004
Reputation Points: 10
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.

faisyshah
Light Poster
27 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

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

zippee
Posting Whiz in Training
294 posts since Jan 2005
Reputation Points: 10
Solved Threads: 7
 

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="CustomerName:"&CustomerName & ""
mailMessage=MailMessage&"CustomerEmailAddress:"&emailID&""
mailMessage=MailMessage&"----------"
MailMessage=MailMessage& ""


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

Deepa
Newbie Poster
19 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

thanks for solve my problem :p

faisyshah
Light Poster
27 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You