Nov 21, 2002 #1 sf123 Programmer Oct 9, 2002 30 US Is there any way I can have my asp code send an automatic email to me when user submits a form? Immediate replies appreciated. Thanks!
Is there any way I can have my asp code send an automatic email to me when user submits a form? Immediate replies appreciated. Thanks!
Nov 21, 2002 #2 sfriday IS-IT--Management Feb 23, 2002 211 DE You could try this! Set objEmail = CreateObject("CDO.Message" objEmail.From = "admin1@fabrikam.com" objEmail.To = "admin2@fabrikam.com" objEmail.Subject = "Server down" objEmail.Textbody = "Server1 is no longer accessible over the network." objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _ "smarthost" objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objEmail.Configuration.Fields.Update objEmail.Send taken from technet scripting there is also another example there for sending mail via a script http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/entscr/scrent16.asp Regards Steve Friday Upvote 0 Downvote
You could try this! Set objEmail = CreateObject("CDO.Message" objEmail.From = "admin1@fabrikam.com" objEmail.To = "admin2@fabrikam.com" objEmail.Subject = "Server down" objEmail.Textbody = "Server1 is no longer accessible over the network." objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _ "smarthost" objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objEmail.Configuration.Fields.Update objEmail.Send taken from technet scripting there is also another example there for sending mail via a script http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/entscr/scrent16.asp Regards Steve Friday