Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-10-2003, 04:15 AM   #1
SCHIMKE
Registered User
 
Join Date: Oct 2001
Posts: 135
Default ASP form mailer

My client's server doesn't support PHP and I am clueless as far as ASP goes, so be nice... =)
In an MC on my _root, I have a simple form with three dynamic text fields with these variable names attached: "email" "name" "subject".
I then have a hidden dynamic text field called "toemail", I have done this so I can use the MC a bunch of times and just change that hidden field so I can send it to a different email address, all the while using the same ASP script.. IS THAT CORRECT??
IF SO, how do I call that variable into the ASP script so it will email the info to that address!???? (also: I got this script from a tutorial so I know there is alot of stuff in there that needs to be removed, I just don't know what exactly...)

Here is what I have so far...<%

Name = Request.form("Name")

Email = Request.form("Email")

Subject = Request.form("Subject")



strName = "Your Name"

strEmail = "[email protected]"



strSubject = "Tutorial Request Example Email"

strBody = ToComments & HearAbout & Company



Set Mailer = Server.CreateObject("SMTPsvg.Mailer")

Mailer.RemoteHost = "mail.innerhost.com"

Mailer.FromName = FirstName

Mailer.FromAddress = Email

Mailer.AddRecipient strName, strEmail

Mailer.Subject = (strSubject)

Mailer.BodyText = strBody



if Mailer.SendMail then

Response.Write "_root.Mail.EmailStatus=Complete - Your mail has been sent"

else

Response.Write "_root.Mail.EmailStatus=Failure - Your mail was not sent - errors"

Response.Write Mailer.Response

end if

%>


Thanks for ANY direction you may be able to provide

Schimke
SCHIMKE is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:04 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.