This topic is locked

e-mail before update

8/20/2006 8:02:08 AM
ASPRunnerPro General questions
ncreveld author

I need to send a e-mail before update:
The problem is that I don't know where and in what syntax to fill in the email parameters and in with order.

please give me a code sample.
This is what I use vor sending e-mail from the website, is it OK?

___

Dim objEmail

Set objEmail = Server.CreateObject("Persits.MailSender")

objEmail.Username = "webmaster@dutchjewry.org"

objEmail.Password = "nc1945"

objEmail.Host = "mail.dutchjewry.org"

objEmail.From = Request.Form("Contact_Email")

objEmail.AddAddress "Creveld@netvision.net.il"

objEmail.Subject = "Reden van schrijven: " & Request.Form("subject")

objEmail.Body = "NAAM: " & Request.Form("Contact_FullName") & " - " & "TELEFOON THUIS: " & Request.Form("Contact_HomePhone") & " - " & "E-MAIL ADRES: " & Request.Form("Contact_Email") & " - " & "IHOUD VAN DEZE E-MAIL " & Request.Form("Inhoud_schrijven")

objEmail.Send

Set objEmail = Nothing


_____

I hope you can help me, please let me know if you need more info

Regards
Nico

Sergey Kornilov admin 8/21/2006

Nico,
I recommend you to check sample Event code "Send an email with new data" that can be found in ASPRunnerPro on Events tab.