facebook

Field data to be sent via email

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    RQI
    Member

    Hi,

    I have 3 page app. I have the application working except i can’t get the entered data to be sent to an email address. I can get the submit button to bring up the email address but there is no data in the body of the email. The attached file has the fields that will have data entered into them. I then want the submit button to send the entered data to ideally a specific email address or to an online form that can collaborate the information. Can you advise what i might be doing wrong?

    Attachments:
    You must be logged in to view attached files.
    #341597

    Stu Wade
    Member

    Try using …

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

    works very well for me. Found in yourproject-www/res/phoneui.js

    #341628

    RQI
    Member

    Stu,

    Thanks for your reply. That string of code is already in the phoneui file, and its not working. Any other suggestions?

    phoneui.composeEmail = function(subject, body, to, cc, bcc, isHTML) {
    if (phoneui.cordovaAvailable() && window.plugins.emailComposer) {
    window.plugins.emailComposer.showEmailComposer(subject, body, to, cc, bcc, isHTML);
    } else {
    phoneui.showURL(“mailto:” + to + “?subject=” + encodeURIComponent(subject) + “&body=” + encodeURIComponent(body));

    thanks

    Chris

    #341910

    Hi RQI,

    The phoneui.composeEmail function is already defined. You should only call it, f.e. when a button is pushed.

    Example:

    phoneui.composeEmail("Hello World", "Hello, this is the body of the message", "someoneemail@address.com", "", "",false)

    You should concatenate your variables in the second parameter. Let us know how it goes.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Field data to be sent via email

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