Hi,
I'm trying to send an automated e-mail if a radio button value is true. I've compared my coding to tutorial web sites and other sources!
My coding goes as follows
<% If request.form("HSEIncidentOccurrance"
= "TRUE" Then
Dim myMail
Set myMail = Server.CreateObject("CDONTS.NewMail"
myMail.From = "e-mail address"
myMail.To = "recipient"
myMail.Subject = "HSE Incident Occurrance"
myMail.Body = "blah blah blah"
myMail.Send
Set myMail = Nothing
End If
%>
I've tried the coding with CDO instead of CDONST and changed the variables accordingly.
Can anybody see, or know why it's not working? I've spent the last week and a bit on it!
Thanks

[PC2]
I'm trying to send an automated e-mail if a radio button value is true. I've compared my coding to tutorial web sites and other sources!
My coding goes as follows
<% If request.form("HSEIncidentOccurrance"
Dim myMail
Set myMail = Server.CreateObject("CDONTS.NewMail"
myMail.To = "recipient"
myMail.Subject = "HSE Incident Occurrance"
myMail.Body = "blah blah blah"
myMail.Send
Set myMail = Nothing
End If
%>
I've tried the coding with CDO instead of CDONST and changed the variables accordingly.
Can anybody see, or know why it's not working? I've spent the last week and a bit on it!
Thanks
[PC2]