Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 CDOSYS Help
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

JPry565
Starting Member

18 Posts

Posted - 12 June 2004 :  09:32:56  Show Profile
Can somebody supply the proper ASP code to send mail using CDOSYS on IIS/6.0 im trying to build a new mod and would be much obliged. Thank you.

JPry565
Starting Member

18 Posts

Posted - 12 June 2004 :  09:43:35  Show Profile
Can anyone tell me why this dosent work???

<%
Dim objMail
Set objMail = Server.CreateObject(CDO.Message)
objMail.From = Request.QueryString(from)
objMail.To = Request.QueryString(to)
objMail.Subject = Request.QueryString(subject)
objMail.HTMLBody = Request.QueryString(message)

objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objMail.Configuration.Fields.Update

objMail.Send
Set objMail = Nothing
Response.Write "Mail Sent Sucessfully"
%>
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 12 June 2004 :  10:33:55  Show Profile
What is the error message?

The UK MkIVs Forum
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 12 June 2004 :  10:35:59  Show Profile
Set objMail = Server.CreateObject(CDO.Message)
objMail.From = Request.QueryString(from)
objMail.To = Request.QueryString(to)
objMail.Subject = Request.QueryString(subject)
objMail.HTMLBody = Request.QueryString(message)
should be
Set objMail = Server.CreateObject("CDO.Message")
objMail.From = Request.QueryString("from")
objMail.To = Request.QueryString("to")
objMail.Subject = Request.QueryString("subject")
objMail.HTMLBody = Request.QueryString("message")

The UK MkIVs Forum

Edited by - DavidRhodes on 18 June 2004 17:23:35
Go to Top of Page

JPry565
Starting Member

18 Posts

Posted - 12 June 2004 :  11:06:27  Show Profile
Yea, you were right it was just giving me some undetermined string error, but cant belive i forgot the stupid apostrophes, ohh well. Thank you very much.
Go to Top of Page

JPry565
Starting Member

18 Posts

Posted - 18 June 2004 :  15:10:28  Show Profile
Anyone else have any idea how to send more than one email at once at the same time, in the same script??
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 18 June 2004 :  17:22:17  Show Profile
You can comma seperate email addresses in the mailobject.To property. You can also do this in the cc and bcc property

The UK MkIVs Forum
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 18 June 2004 :  20:19:01  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
If you are creating a MOD for Snitz then you really need to use the inc_mail.asp file if at all possible.

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07