Simon
|
| Posted: 01/30/2003, 8:40 AM |
|
I have got an email script from hotscripts.com and have it working on just ASP but am having troubles getting it to work in CCS. (ASP & ACCESS) I have a form on contact.asp which points to send.asp, the following is the code from send.asp:
<%
Dim Body,Subject
Dim YourEmail, FromEmail
Dim FromName, Mailserver
Dim EmailType
' ###### Your Email system details ####
YourEmail = "info@digitalblur.co.uk" ' your email address
Mailserver = "10.2.0.177" ' this is your mail server address, if you dont know ask your webhost
'####### Choose a email system #####
'EmailType ="ASPmail"
'EmailType ="cdonts"
EmailType ="jmail"
'EmailType ="ASPEmail"
'EmailType ="OCXMail"
'Request the form elements from the last page
Body = request.form("body")
Subject = request.form("subject")
FromName = request.form("name")
FromEmail = request.form("email")
' Now lets send the email by using the include file
%>
<!--#include file ="email-functions.asp"--->
Where exactly would I have to put this to get it to work? In an event or something, or will the code and the form need modification, I am quite new to CCS.
I have tried it just pasted to the top of send.asp (The page content just has a thankyou message) but I get the following error:
Microsoft VBScript compilation error '800a0400'
Expected statement
/blur/Common.asp, line 2
Option Explicit
^
Any help would be great, or an alternative way to send email, my server has several components so I'm quite flexible, but would prefer to use JMAIL.
Thanks
Simon
|
|
|
 |
Simon
|
| Posted: 01/30/2003, 11:25 AM |
|
Okay, I got a solution, which isn't the best, but it works fine none the less, I guess it should work with info from a databse too, but I haven't tested that. I thought it'd be quite useful for people to know as it is a simple way round the problem without using custom events or any of that.
So, I wrote an article about it, hasen't been okayed by the mod yet, but it should be.... (art_id=261)
Later people
Simon Wall
|
|
|
 |
|