Mailto: problems

I want to send some data from my text fields on my web page.

Everything works fine when I test this on my computer. Outlook opens new window and in body of email i get data arranged as I want with
and .

But when I test this on web everything in body is displayed as one line… as there wansn’t
& …

Is there some other way of arranging bits of data from text fields in email body?

10x for answers…

post the code you are using.

subject = “Something…”;
email = “my_mail@gmail.com”;
mailto = “mailto:” add email;

on (press) {
var strFullText = "Name Quantity Price
";
for (var index= 0; index < shop_cart.size(); index++)
{
strFullText += (shop_cart.getElement(index)).getDesc()+ " "
+ (shop_cart.getElement(index)).getQuantity() + " "
+ (shop_cart.getElement(index)).getPrice() + "
";
}
getURL(mailto add “&subject=” add subject add “&body=” add strFullText);
}

Does anyone hava any Idea of how can I fix this problem of mine?

I cant believe its slipping my mind, but what is ? I know the solution for
might be [COLOR=“Blue”]newline[/COLOR]: [AS]subject = “Something…”;
email = "my_mail@gmail.com";
mailto = “mailto:” + email;

on (press) {
var strFullText = “Name Quantity Price” + newline;
for (var index= 0; index < shop_cart.size(); index++)
{
strFullText += (shop_cart.getElement(index)).getDesc()+ " "

  • (shop_cart.getElement(index)).getQuantity() + " "
  • (shop_cart.getElement(index)).getPrice() + newline;
    }
    getURL(mailto + “&subject=” + subject + “&body=” + strFullText);
    }[/AS]

by the way, are you using a shopping cart you built in flash or bought?

 is as same as tab or I don't know how to explain this in english... you know button over Caps Lock... 

And I tried newline but it’s the same as
… no effect.

And I’m using mine custom made flash cart yes.

I think this is a tough one because different mail readers display text differently- some use
(carriage return-linefeed) for newlines. Have you tried formatting the body text with html?

What do you mean by formating text with html?

Well the mail reader might like it better if the body were something like:

<html><body>Here’s the email body<br>etc.</body></html>

Then again it might just display that literally.

Ok, that’s one way… but where in my code can i put this? I don’t see the way to combine it…

How about:

 subject = [COLOR=#ff0000]"Something..."[/COLOR];
email = [COLOR=#ff0000]"my_mail@gmail.com"[/COLOR];
mailto = [COLOR=#ff0000]"mailto:"[/COLOR] + email;
 
[COLOR=#0000ff]on[/COLOR] [COLOR=#000000]([/COLOR]press[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#000000]**var**[/COLOR] strFullText = [COLOR=#ff0000]"<html><body>Name Quantity Price<br><br>"[/COLOR];
[COLOR=#0000ff]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]**var**[/COLOR] [COLOR=#0000ff]index[/COLOR]= [COLOR=#000080]0[/COLOR]; [COLOR=#0000ff]index[/COLOR] < shop_cart.[COLOR=#0000ff]size[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]; [COLOR=#0000ff]index[/COLOR]++[COLOR=#000000])[/COLOR]
[COLOR=#000000]{[/COLOR]
strFullText += [COLOR=#000000]([/COLOR]shop_cart.[COLOR=#000080]getElement[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]index[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR].[COLOR=#000080]getDesc[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR]+ [COLOR=#ff0000]""[/COLOR]
+ [COLOR=#000000]([/COLOR]shop_cart.[COLOR=#000080]getElement[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]index[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR].[COLOR=#000080]getQuantity[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] + [COLOR=#ff0000]""[/COLOR]
+ [COLOR=#000000]([/COLOR]shop_cart.[COLOR=#000080]getElement[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]index[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR].[COLOR=#000080]getPrice[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR] + [COLOR=#0000ff]"<br>[/COLOR];
[COLOR=#000000]}[/COLOR]
strFullText += "</body></html>";
[COLOR=#0000ff]getURL[/COLOR][COLOR=#000000]([/COLOR]mailto + [COLOR=#ff0000]"&subject="[/COLOR] + subject + [COLOR=#ff0000]"&body="[/COLOR] + strFullText[COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]

I changed the to spaces but if you use html you could set up a table instead. Again, I don’t really know if this will work for you… :ponder:

Nop… I tried with this changes but it just literally displays them in the body…

I’ll take a look at some flash forms which are using php and see if that helps something…

10x for all your answers…