Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Email stuck inside a folder
08-23-2004, 11:45 PM #1
- Join Date
- Dec 2003
- Central California
- Thanked 0 Times in 0 Posts
Email stuck inside a folder
I've been trying to implement an ASP Email script ( http://www.brainjar.com/asp/formmail/ ) for my work's web site. I read the instructions on what to change as far as emails and whether CDONTS, etc. I also made sure the SMTP service got installed. Well, the script works great, but the email does not go out. It's stuck in the queue folder.
Windows 2000 Server w/SP4
.net 1.1 framework is installed.
Any help is greatly appreciated.
08-24-2004, 12:02 AM #2
- Join Date
- Dec 2002
- Arlington, Texas USA
- Thanked 8 Times in 8 Posts
Try using CDO for Win2k instead of CDONTS. CDO for Win2k is the newer implementation. It has a few changes.
<% 'add this at the top of the page %> <!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D" NAME="CDO for Windows 2000 Library" --> <% Dim objCDO, strFrom, strTo, strCC, strBCC Dim strSubject, strMessage Set objCDO = Server.CreateObject("CDO.Message") objCDO.To = strTo objCDO.From = strFrom objCDO.ReplyTo = strFrom 'used for carbon copy 'objCDO.cc = strCC 'used for blind carbon copy 'objCDO.bcc = strBCC objCDO.Subject = strSubject 'if you want to send as html formatted message 'objCDO.HTMLBody = strMessage 'Use this to send as plain text message objCDO.TextBody = strMessage objCDO.Send() 'display a message on succesfully sending the mail If err.number = 0 Then Response.write "The Message has been sent" End If Set objCDO = Nothing