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.
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
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"
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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.