facebook

email address select

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #350125 Reply

    Paul_paul
    Participant

    Hi Support, or anyone, I need help with this.
    I have a list of 3 locations in a combobox with each value set as a different email address, I need the user to pick a location,
    then press a button to open the iPhone email composer with the selected email address in the ‘send to’ box. Sounds simple yet ???…… Can anyone help and is this possible.
    Thanks

    #350126 Reply

    Code_A
    Member

    I believe this function will do the trick:

    phoneui.composeEmail (subject, body, to, cc, bcc, isHTML)

    I tested with the code below and it popped up my default email program with the fields filled out (in the simulator, did not test on device).

    phoneui.composeEmail ("subject", "email body test", "me@myemail.com");

    I also saw there is a phoneui.composeEmailFromPage function in the phoneui.js that may help too, but I didn’t test that one.

    #350127 Reply

    Paul_paul
    Participant

    Hi Code, Thanks for your help.
    I tried the code but it still did not put the value of the combobox into the send to area.

    I have combobox named “myMails”

    used this code for the combobox

     myRstMail = $('select[name="myMails"]').val();

    used this on button, user fills in the body text.

    phoneui.composeEmail ("MyOrder","", "myRstMail");

    image of result below

    #350132 Reply

    Code_A
    Member

    Try this instead:

    phoneui.composeEmail ("MyOrder","", myRstMail);
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: email address select

You must be logged in to post in the forum log in