This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Email Formatting


  1. netwise
    Member

    Hi,

    Is the email output by MachForm editable on a form by form basis or is
    it a single template?

    I would like to create a form that only sends the text entered into a single field.

    The idea is use a single multi line text field for people to send a simple text message. then set the form to email it to my 10 digit cell# number@teleflip.com.

    Currently it includes some >>>> symbols, the form name and the field name.

    Thanks

    Posted 16 years ago #
  2. yuniar

    At this moment, the email output is pretty much the same for all forms. I'm currently working on a feature which would allow you to customize the output of each form.

    However, in this case, can you give me a sample email content which you would like to have?
    Also, where did you see the >>>> symbols?


    MachForm Founder

    Posted 16 years ago #
  3. netwise
    Member

    After further review .. the >>>> are a by product of being output
    to teleflip.. they replace blank lines in the message... I can live
    with that.

    Here is a copy of a test message.

    1) Your Message
    Test Text Message from website

    Powered by MachForm

    For this form I would like to Suppress the following

    1) Your Message
    Powered by MachForm
    And also the 6 blank lines between the message body and the Powered By MachForm line.

    Is it allowed to change ore remove the Powered By line?

    Thanks again...

    Bob

    Posted 16 years ago #
  4. yuniar

    Ok, let say you have a form with id = 3 and the text field for your message is having id = 'element_1' (view the HTML source of your form to see this)

    Search around line 432 of includes/helper-functions.php file, you'll find this code:

    //send email
    $mail = new PHPMailer();


    right above that code, insert this code:

    if($form_id == 3){
    	$email_body = $table_data['element_1'];
    }


    If you are having difficulty, please send me the URL of your form.
    Mail to: yuniar [at] appnitro.com


    MachForm Founder

    Posted 16 years ago #
  5. netwise
    Member

    yuniar,

    That worked perfectly....

    What about the question of removing the powered by statement?

    Im only looking to really remove it for this application since
    it is going to a cell phone as a text message I would like to reduce
    the ammount of text sent as much as possible.

    Thanks for the hack.. its great!

    Bob

    Posted 16 years ago #
  6. netwise
    Member

    My Bad ... it was removed .. sorry for any confusion...

    AWESOME product.....

    Any word on an affiliate program? I would really like
    to start recommending this as a resource !

    Bob

    Posted 16 years ago #

RSS feed for this topic

Reply