;

PDA

Click to See Complete Forum and Search --> : flash Mailto with preformatted email????


zeroflash
07-10-2007, 08:27 AM
Im trying to created a webform another way since internet explorer sucks and requires to much babying.

I have basically set a mailto button at the bottom of my page.

With the mailer address and subject coming up when you click the button.

Now what i need to know is there anyway i can get the body with a preformatted message. Ie the form.

I thought i could create a box called body and write it in there, but for some reason the click button will only work with one line messages and as soon as i try to do more it stops working...

the button action

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

any ideas or help?!?!?

a_modified_dog
07-10-2007, 08:54 AM
try something similiar to this -
emailBtn.onPress = function() {
nnl = "%0A";
name = "Dear@John.com";
subject = "I have a qwestiun";
yourname = "who am i ?";
sex = "what am i ?";
city = "where am i ?";
age = "when am i ?";
code = "encrypted";
telephone = "black and silver"
emailAddress = "a@b.c";
comments = "tested and working";

getURL ("mailto:"+name+"?subject="+subject+
"&body=Name: "+yourname+nnl+nnl+
"City: " +city+nnl+
"Sex: "+sex+nnl+
"Age: "+age+nnl+
"Postal Code: "+code+nnl+nnl+
"Telephone: "+telephone+nnl+
"email: "+emailAddress+nnl+nnl+nnl+
"Comments: "+comments);
}
note: mailto is dependant on user OS browser/email settings
so it is not the most reliable of methods

if possible, use a server side script to send the mail

zeroflash
07-10-2007, 08:56 AM
Solved had to use hexidecimal whatnots cheers for the help

gerard_pp
10-08-2007, 09:39 AM
sience 2003 it is still helping!!!

thanks