Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FLASH FORM USING ASP

Status
Not open for further replies.

nabbs

Programmer
Feb 21, 2001
18
GB
hi there,

I would appreciate someones help.
I have created a form in flash where it's collectiing variables and sending the reuslts to my email. Thi is done by using an asp script which sends mail.

The mail client on the server is aspmail3 and everytime i click on submit it throws an error "503 No valid recipients specified". I have made sure that there are valid recipients. I've tried creating variables containing my email and that hasn't worked. If I use an html form to do this then that works, but it does not work using a flash form. It collects the variables from flash but doesn't send them to my email... WHY???

My asp code is as follows:

<%
dim name
dim emailAdd
dim subject
dim message
dim rec
dim myname

fname = Request(&quot;name&quot;)
emailAdd = Request(&quot;email&quot;)
subject = Request(&quot;subject&quot;)
message = Request(&quot;message&quot;)
rec = Request(&quot;myemail&quot;)
myname= &quot;nabi&quot;


Set Mailer = Server.CreateObject(&quot;SMTPsvg.Mailer&quot;)
Mailer.FromName = name
Mailer.FromAddress= emailAdd
Mailer.RemoteHost = &quot;mail.boxdev.co.uk&quot;
Mailer.AddRecipient myname, rec
Mailer.Subject = subject
Mailer.BodyText = message

if Mailer.Sendmail then
response.write (&quot;Message sent&quot; & &quot; to &quot; & fname)
else
response.write &quot;Mail not sent, Error: &quot;
response.write Mailer.response
end if
%>
 
Try Request.form()

and for debugging it can be helpfull to
output the results first

response.write fname
response.write emailAdd
response.write subject
response.write emessage
response.write rec
response.end

(put it before the set)
br
Gerard
 
hi gerard,

thanx for your reply,

it pulls out the variables, but still doesn't send to my email..
what else can i do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top