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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailto using text fields ????

Status
Not open for further replies.

NevG

Programmer
Oct 10, 2000
162
GB
Hi

Ive put some text fields on a flash page wanting user input and given them a submit button that when pressed uses the geturl command to do a mailto:

How do i send the contents of the boxes aswell ??

Plese help me

Thanks

Nev G
 
Add a variable name to your textbox - for instance if you called the textbox "subjectContent" whatever the user types in automatically becomes the content of a variable called "subjectContent".

If you add this to your getURL action like so...


getURL("mailto:me@mySite.com&subject=subjectContent",_blank,"GET");

...the "subject" line of the email is automatically filled in with the content the user typed. Using more "&"s you can add a whole string of different variables to your mail message and fill in all of the fields including content, cc and bcc.






 
Thanks but how do I populate the message bit of the email

all I have managed to do sofar is put the variable name of the textfield in the subject line. Can you really spell it out for me

Thanks
 
Here are the variables you need...

recipient
subject
body
cc

...you could use these titles as your variable names so a typical message, with all the normal details, would be formatted like...

on(release){
getURL("mailto:"+recipient+"?cc="+cc+"&subject="+subject+"&body="+body);
}


P.S. I mistyped something in the first mail - make sure your first addition to the recipient starts with a "?" not a "&" as I said before - hey, I just woke up and haven't hit the coffee yet ;-) ).
 
Thanks for your help wangbar BUT I am still having problems with this

I am using flash 4 ( DONT KNOW IF THAT MAEKS A DIFFERENCE) but I am using this string

On (Release)
Get URL ("mailto:ngraham@capital-fusion.com?subject=Information&Body="+Name+Comment", vars=GET)
End On


after putting this in the URL window

mailto:ngraham@capital-fusion.com?subject=Information&Body="+Name+Comment

I have two fields named Name and Comment but when I click the send button I get the mail looking like this

Name + Comment?Name=sdfbg

What am i doing wrong ???

Thanks again

Nev G
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top