A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: using mailto in actionscript

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    2

    using mailto in actionscript

    I've created a banner ad which uses mailto: so when the user clicks anywhere on the banner it opens an email to the customer.

    Can I add a subject line?. I tried using the ?subject=xxxxxxx like i would in html, but it threw up errors. Can anyone help?

    Also, could I insert some stock content by the same means ie copy in the main body of the message, like "I saw your banner on ..... "

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Code:
    on(release) {
    	getURL("mailto:you@yourdomain.com?subject=Whatever&body=First Name: %0D%0A Last Name: %0D%0A Telephone: %0D%0A Email Address: %0D%0A Questions or Comments:");
    	}

  3. #3
    Junior Member
    Join Date
    Feb 2006
    Posts
    2
    thanks for that, it works a treat.

  4. #4
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Anytime !!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center