# Mailto: problems

**URL:** <https://forum.kirupa.com/t/mailto-problems/183837>\
**Category:** Uncategorized\
**Created:** [March 30, 2006, 4:11pm UTC](https://forum.kirupa.com/t/mailto-problems/183837 "2006-03-30T16:11:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![poletnik](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@poletnik](https://forum.kirupa.com/u/poletnik)\
**Post date:** [March 30, 2006, 4:11pm UTC](https://forum.kirupa.com/t/mailto-problems/183837/1 "2006-03-30T16:11:48Z")

</div>

Hi…

My actionscript on first frame…

subject = “Question”;  
email = "mygmail@gmail.com";  
mailto = “mailto:” add email;

My actionscript on button is :

on (press) {  
getURL(mailto add “?subject=” add subject add “&body=” add strFullText);  
}

Problem which occures is next: when I test my movie clip from Flash 8 it works normally… It opens Outlook window and imports body, subject and email. But when I test my movie from a folder or from html it opens Outlook window but it imports only email… subject and body are empty… My flash publish settings are set to Flash 7 / Actionscript 2…

If I change publish settings to Flash 8 I get this error message:

**Error** Symbol=Symbol 1, layer=A, frame=1:Line 3: Syntax error.  
mailto = “mailto:” add email;

**Error** Symbol=Symbol 1, layer=okno, frame=1:Line 10: ‘)’ or ‘,’ expected  
getURL(mailto add “?subject=” add subject add “&body=” add strFullText);

**Error** Symbol=Symbol 1, layer=okno, frame=1:Line 11: Unexpected ‘}’ encountered  
}

Is there some mistake in my actionscript or whats wrong?  
Thanks for all answers.

---

<div class="post-metadata">

**Author:** ![fattony](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@fattony](https://forum.kirupa.com/u/fattony)\
**Post date:** [March 30, 2006, 4:30pm UTC](https://forum.kirupa.com/t/mailto-problems/183837/2 "2006-03-30T16:30:15Z")

</div>

all that I see is that the subject = “subjects…” need a $ before them to be called as variables, $subject = “”. Other than that I don’t know where to start with that code lol

---

<div class="post-metadata">

**Author:** ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)\
**Post date:** [March 30, 2006, 5:13pm UTC](https://forum.kirupa.com/t/mailto-problems/183837/3 "2006-03-30T17:13:48Z")

</div>

Dont use ‘add’, use +. [AS]subject = “Question”;  
email = "mygmail@gmail.com";  
mailto = “mailto:” + email;  
on (press) {  
getURL(mailto + “?subject=” + subject + “&body=” + strFullText);  
}[/AS]

---

<div class="post-metadata">

**Author:** ![poletnik](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@poletnik](https://forum.kirupa.com/u/poletnik)\
**Post date:** [March 30, 2006, 5:53pm UTC](https://forum.kirupa.com/t/mailto-problems/183837/4 "2006-03-30T17:53:15Z")

</div>

> [@fattony](#):
>
> all that I see is that the subject = “subjects…” need a $ before them to be called as variables, $subject = “”. Other than that I don’t know where to start with that code lol

Thanks fattony 😉 It’s working now 🙂
