469,271 Members | 1,727 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

For those who wanted the mailscript(ASP) (which sends all form data!)

I've been searching for a while, didn't find a complete script that
works under ASP...
Well for those cracking there heads here it is =P

This sample applies to SMTP
Dim strBodyText
For Each item In Request.Form
' Adds a line to the body: [Fieldname]: [Value]
strBodyText = strBodyText & item & ": " & Request.Form(item) &
Chr(13) & Chr(10)

' The following part creates a object that capable of sending SMTP
' And prepares/sends the mail
Dim oSmtp
Set oSmtp = Server.CreateObject("AOSMTP.Mail")
oSmtp.ServerAddr = ""
oSmtp.FromAddr = Request.Form("fromemail")
oSmtp.AddRecipient "", Request.Form("toemail"), 0
oSmtp.Subject = Request.Form("subject")
oSmtp.BodyText = strBodyText

Apr 20 '06 #1
1 1880

You'll need the "AOSMTP Module" from "AdminSystem Software"

Apr 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Gregory A Greenman | last post: by
5 posts views Thread by Mark Hannon | last post: by
4 posts views Thread by Alex Sibilev | last post: by
7 posts views Thread by Mark Waser | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.