facebook

Working example of emailing text fields?

💡
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 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #331558 Reply

    PBXhowTos
    Member

    Does anyone have a working example of how I can email a bunch of widget results?

    For instance, I have 5 text fields, a radio, and a check box. I want to, upon hitting a submit button, send the results to an email address in a simple table format?

    Thanks in advance!
    CJ

    #331720

    PBXhowTos
    Member

    Anyone?

    #331737

    support-michael
    Keymaster

    >For instance, I have 5 text fields, a radio, and a check box. I want to, upon hitting a submit button, send the results to an email address in a simple table format?

    You have 2 options:
    1) open the device mail app and have it send the content
    2) post the form to a webservice that repackages the form data and emails it to a final destination

    For #1 the issue we are working on internally is that when you open a mailto: url from either a native app or a webapp launched form the iOS homescreen the mail client launches. You have little control over the format, most likely will be After sending the msg the user must manually navigate back to the app/webapp.

    Thoughts about how you want to proceed?

    #331749

    PBXhowTos
    Member

    I would like to keep it in the app as much as possible.

    Is there a way to have a widget connect to a SMTP server somehow?

    #331802

    support-michael
    Keymaster

    >Is there a way to have a widget connect to a SMTP server somehow?

    No, not at this time. We are working an improved experience when open the mail composer from with in an app. I would recommend that if you need the app to directly send email that you setup a simple emailing service to do this. There are tons of php snippets online that will show the way or you can use one of the zillion baas.

    #331877

    PBXhowTos
    Member

    @support-wayne wrote:

    >Is there a way to have a widget connect to a SMTP server somehow?

    No, not at this time. We are working an improved experience when open the mail composer from with in an app. I would recommend that if you need the app to directly send email that you setup a simple emailing service to do this. There are tons of php snippets online that will show the way or you can use one of the zillion baas.

    So I guess I have a few questions, will PHP work with MobiOne? Can I send form items to the email app?

    So, when I hit submit, I want to send the results to a table in the body of an email as well as update the subject.

    Thanks in advance!

    #331928

    Hi PBXhowTos,

    >So I guess I have a few questions, will PHP work with MobiOne?
    yes

    >Can I send form items to the email app?
    By “email app” I am assuming you are referring to a server-side email service that will receive your email data, format it and then send it. Yes you can do this.

    > So, when I hit submit, I want to send the results to a table in the body of an email as well as update the subject.
    When user hits submit, your mobione app will send the form that you have created to your emailing service (a simple web service). Your email service is responsible for creating the email content and then sending the email msg to whomever is the intended recipient(s).

    #331936

    PBXhowTos
    Member

    @support-octavio wrote:

    Hi PBXhowTos,

    >So I guess I have a few questions, will PHP work with MobiOne?
    yes

    >Can I send form items to the email app?
    By “email app” I am assuming you are referring to a server-side email service that will receive your email data, format it and then send it. Yes you can do this.

    > So, when I hit submit, I want to send the results to a table in the body of an email as well as update the subject.
    When user hits submit, your mobione app will send the form that you have created to your emailing service (a simple web service). Your email service is responsible for creating the email content and then sending the email msg to whomever is the intended recipient(s).

    #331937

    PBXhowTos
    Member

    @support-octavio wrote:

    Hi PBXhowTos,

    >So I guess I have a few questions, will PHP work with MobiOne?
    yes

    >Can I send form items to the email app?
    By “email app” I am assuming you are referring to a server-side email service that will receive your email data, format it and then send it. Yes you can do this.

    > So, when I hit submit, I want to send the results to a table in the body of an email as well as update the subject.
    When user hits submit, your mobione app will send the form that you have created to your emailing service (a simple web service). Your email service is responsible for creating the email content and then sending the email msg to whomever is the intended recipient(s).

    Ok, for some reason I cannot post PHP code in the forums. Please see if the PHP file I attached will work with the Mobi app. I have a web server with email service. Not sure what I would need to do to get it to pass the form info though.

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

    @PBXhowTos,

    Your code seems to be OK.

    >Not sure what I would need to do to get it to pass the form info though.
    Config your design as a form, set
    Form Method POST
    Form Action Type URL
    Form Action URL URL of your php file on your server.

    Make sure that your textField Id properties are the same name as your php POST vars.
    example:

    $_POST['name']

    Textfield Id should be name

    #334508

    shift
    Member

    Any update on this issue? I would really love to know how to send email with MobiOne. Right now, I can’t seem to do more than just GUI apps. I don’t know much about establishing connectivity with PHP etc. No tutorials on the main website either.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Working example of emailing text fields?

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