Mail

Discussion in 'Jiggy Runtime Development' started by The Ax, May 25, 2008.

  1. The Ax

    The Ax Banned

    Joined:
    Mar 11, 2008
    Messages:
    647
    Likes Received:
    22
    I want to make my app open the mail app when I press a button

    if (theButton == 1){
    mailto:Japanhax@gmail.com
    }

    doesnt work
  2. spoonforknife

    spoonforknife Retired Moderator

    Joined:
    Nov 15, 2007
    Messages:
    6,896
    Likes Received:
    317
    You have to use the openURL function , so I believe it goes openURL("mailto:spoonforknife@gmail.com?Subject=Subject Here")
  3. The Ax

    The Ax Banned

    Joined:
    Mar 11, 2008
    Messages:
    647
    Likes Received:
    22
    perfect,
    Il add to you 4 bars
  4. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Yes, you use that uri within the function to open a url.

    I believe you can also add an attachment like so


    Code:
    openURL("mailto:Yourfriend@email.com?subject=attachment%20and%20subject?attachment=/var/mobile/media/downloads/myfile.zip")

    and i also believe for IPHONE you can open SMS with this:

    Code:
    openURL("sms:1234567");
    not sure on that one though

Share This Page