Hi,
I'm trying to add an email alert to an asp script which enters form data into a database. Basically I have had a request that an email be sent out everytime someone fills in the form. I've tried various things that haven't worked and the latest effort is using CDONTS. It doesn't create an error message, but no email has arrived!! Can anyone either tell me what's wrong with my code, or suggest why it wouldn't work?
Thanks
Suzy
Code:
'Lets see if we can send an email to say form has been filled in ...
Set Mail = Server.CreateObject("CDONTS.NewMail"
Mail.to="suzy.shipman@bbsrc.ac.uk"
Mail.from=request.form("email"
Mail.Subject="A new GM Worker has been added"
Mail.Body="Testing email works"
Mail.Send
Set Mail=nothing
I'm trying to add an email alert to an asp script which enters form data into a database. Basically I have had a request that an email be sent out everytime someone fills in the form. I've tried various things that haven't worked and the latest effort is using CDONTS. It doesn't create an error message, but no email has arrived!! Can anyone either tell me what's wrong with my code, or suggest why it wouldn't work?
Thanks
Suzy
Code:
'Lets see if we can send an email to say form has been filled in ...
Set Mail = Server.CreateObject("CDONTS.NewMail"
Mail.to="suzy.shipman@bbsrc.ac.uk"
Mail.from=request.form("email"
Mail.Subject="A new GM Worker has been added"
Mail.Body="Testing email works"
Mail.Send
Set Mail=nothing