facebook

Insert Variables in Subject – simple email app

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

    Robert Gardner
    Participant

    I’ve developed a simple email app where 3 variables are collected and an email message is generated. I want to place the variables in the subject line and not in the body of the email message. How can I do this? I’m developing for Iphone IOS

    Thank you in advance

    #337122

    Muhammad
    Member

    You can use javascript like this

    mailto_link = ‘mailto:’+email+’?subject=’+subject+’&body=’+body_message;

    Put email as email address, subject as email subject, and body as body email.

    #337186

    Robert Gardner
    Participant

    Truth be told I’m not a java scripter… Is this the exact code verbatim? How do I implement the code?

    Thanks,

    #337210

    Hi aviator21114,

    Without javascript experience, muhammed’s code may work and may not depending up on the validity of the resulting mailto: url string; your mileage may vary. This was one of the drivers behind creating the SendEmail action.

    #337227

    Robert Gardner
    Participant

    I am in-fact using the send email action… I would like to know how I can get my variables in the subject line rather than in the body of the message. Any thoughts? To expand upon my query further it would be ideal if you could have email addresses as variables as well so they could be dynamically inserted into an email.

    Thank you,

    #337263

    @aviator21114,

    The Send Mail action does not support templatized Subject line. Your other option is to use javascript to construct a mailto: URL. If you are not comfortable with JavaScript coding then you may consider posting your exact requirement to the thread and seek volunteer assistance or request professional assistance such as that provided by CincyPlanet

    #337274

    Brandon
    Member

    @aviator21114
    You can look into using PHP with your screen as a form, check the PHP send mail item here:
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=5032
    if you need something more you can check out my site at http://cincyplanet.com/mobius/custom-services/


    @octavio

    Thanks for the mention!

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Insert Variables in Subject – simple email app

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