Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Cdosys Help Please
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cdosys Help Please

 Post Reply Post Reply
Author
God_Struth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 August 2003
Location: United Kingdom
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote God_Struth Quote  Post ReplyReply Direct Link To This Post Topic: Cdosys Help Please
    Posted: 31 October 2003 at 6:22pm
Would appreciate if someone could tell me why I keep getting an error with this script trying to send a cdosys email from a form.

'Expected End of Statement' is the error message at the blue line.

<%

Dim objCDOSYSCon


Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")

'Set and update fields properties
With objCDOSYSCon
                            'Out going SMTP server
                             .Fields("http://sc hemas.micros oft.com/cdo/configuration/smtpserver") = "mail.myserver.co.uk"
                            'SMTP port
                             .Fields("http://sc hemas.micros oft.com/cdo/configuration/smtpserverport")    = 25
                            'CDO Port
                             .Fields("http://sc hemas.micros oft.com/cdo/configuration/sendusing") = 2
                            'Timeout
                             .Fields("http://sc hemas.micros oft.com/cdo/configuration/smtpconnectiontimeout") = 60
                      &nbs p;     .Fields.Update
End With         &n bsp;

Set objCDOSYSMail.Configuration = objCDOSYSCon

With objCDOSYSMail
'Who the e-mail is from
objCDOSYSMail.From = request.form("clname")

objCDOSYSMail.To = "me@myplace.co.uk"

'The subject of the e-mail
objCDOSYSMail.Subject =request.form("clsubject")

objCDOSYSMail.TextBody =request.form("clbod")

'Send the e-mail
objCDOSYSMail.Send


Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing


Response.Redirect ("../thanks.asp")
%>



I know this sort of stuff is simple, but its late and I am needing sleep

Edited by God_Struth
"I'm only trying to help......"
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 7:24pm
End With

Lead me not into temptation... I know the short cut, follow me.
Back to Top
God_Struth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 August 2003
Location: United Kingdom
Status: Offline
Points: 218
Post Options Post Options   Thanks (0) Thanks(0)   Quote God_Struth Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 8:24pm
Thanks dpyers, hopefully thats my brain fart of the week out the road
"I'm only trying to help......"
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 9:40pm
Only caught it because I'm so familiar with it.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.