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