Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS - SMTP setup

Status
Not open for further replies.

dlyles

Programmer
Oct 13, 2002
24
US
I am not new to ASP, but am new to trying to set up the server to work the way I need it to work. Currently I have a script that uses CDONTS to send emails. I've moved it to a new server, however, the emails are no longer going out.

Any ideas?
 
Make sure CDONTS components available on the other site.
And SMTP is turned on.
 
Windos 3003 server does not support cdonts.
 
It's on a Windows 2000

"Make sure CDONTS components available on the other site."
I don't quite understand what you're saying. SMTP is turned on.
 
Here's the thing. I don't know how to install CDONTS. I thought that was automatic once SMTP was installed which was done when IIS was installed.
 
easiest way is under control panel, add/rem progs, windows setup, internet sumthin or another, there's an SMTP option, install it, then disable the smtp server, it wont act as a mail server, but you'll have mail extentions to work with

or just download cdonts.dll from any of the DLL repositories online and regsvr32 it

[thumbsup2]DreX
aKa - Robert
 
Ok, I installed cdonts and I'm getting the following error
Permission denied

/application7.asp, line 37


 
hmmm
what's line 37?

set mailer = server.createobject("cdonts.newmail") ?


[thumbsup2]DreX
aKa - Robert
 
The last line is 37

Set MailObj = Server.CreateObject ("CDONTS.NewMail")
EmailFrom = "Applications@zkdinc.com"
EmailTo = request.cookies("email")
Subject = "ZKD Applications"
'MailObj.AttachFile("E:\Inetpub\Virtuals\uniquestdesigns\apataarp\epsq.doc")
Body = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">"
Body = Body & "<html>" & "<body>"
Body = "<img src= & "<br>" & "<br>"
Body = Body & date() & "<br>" & "<br>" & "Dear " & request.cookies("name") & "<br>" & "<br>"
Body = Body & "Thank you for your interest in employment with ZKD, Inc. We are in receipt of your resume "
Body = Body & ", if there is any interest a Recruiter will contact you. Due to a high volume of resumes, we will only contact "
Body = Body & "applicants that skills most closely match the requirements of our vacancy." & "<br>" & "<br>"
Body = Body & "Please take a moment to review the attached document, which contains instructions on completing and submitting your SF-86" & "<br>" & "<br>"
Body = Body & "We will maintain your resume on file for six months. Should a position open that matches your "
Body = Body & "qualifications, we will contact you." & "<br>" & "<br>"
Body = Body & "Again, thank you for your interest in employment with ZKD, Inc. Good luck in your career search." & "<br>" & "<br>"
Body = Body & "Sincerly, " & "<br>" & "<br>" & "<br>" & "ZKD, Inc." & "<br>" & "Recruiting Department"



'host = "localhost"

MailObj.BodyFormat = 0
MailObj.MailFormat = 0
MailObj.Send EmailFrom, EmailTo, Subject, Body
 
looks like formatting issues? i think 0 is plain text and looks like you're trying to send HTML

perchance the origin of the error, or the page itself might not have system permissions for CDONTS

do you have virus software that might be halting your script like norton's AV with script blocking?



[thumbsup2]DreX
aKa - Robert
 
Not to my knowledge. I have to go check the server for that. I'm pretty sure 0 is for HTML formatting, but I tried it with a 1 anyway and still same problem.

I just unistalled and reinstalled SMTP service and the error is gone, but no emails. I realized I have to re-register CDONTS and I'll try again.
 
Ok, I did all of that and I'm getting no errors, but still getting no emails.
 
well no errors is good :), no email is bad tho, never never land?

try hard coding to and from addresses in the mail sneder for a test see if it gets thru , and just in case the TO address is a new account setup for this new feature on the website or something, use a valid, known, working mail account, just to be safe.

[thumbsup2]DreX
aKa - Robert
 
Ok, this server doesn't actually handle any email so there is no account associated with this. I'm aware that Windows servers can send email from any server through CDONTS, which is how I had it working on the other server the site was hosted on.

So that's not really an option for me.
 
i mean the accounts ( email addresses ) you're plugging into the script for objMail for the values of emailfrom and emailto

[thumbsup2]DreX
aKa - Robert
 
look at the security permisions on the dll file itself
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top