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

Raise up the number in the subject of the e-mail message


  1. danyael
    Member

    Hi Yuniar, Could you please let me know how I can raise the numbers in de e-mail subject for example now I see

    Glue & Accessories Order Form [#11]

    and when an user submits another one you will see

    Glue & Accessories Order Form [#12]

    I would like to rise the number to something like [#1120]

    Best regards,
    Danyael

    Posted 16 years ago #
  2. redityo

    Hi ..

    Basically those number based on entry id,if you want to change it you can edit "helper-functions.php" in line 315 and between line 443 ~ 447

    line 315 :

    $template_values[$i]	= $entry_id+1000; //<-- it will raise entry id by 1000

    line 443 ~ 447 :

    from :

    if($target_is_admin){
    	$mail->Subject = utf8_encode("{$form_name} [#{$entry_id}] ") ;
    }else{
    	$mail->Subject = utf8_encode("{$form_name} - Receipt");
    }

    to :

    if($target_is_admin){
    	$entry_id = $entry_id + 1000;
    	$mail->Subject = utf8_encode("{$form_name} [#{$entry_id}] ") ;
    }else{
    	$mail->Subject = utf8_encode("{$form_name} - Receipt");
    }

    MachForm Support

    Posted 16 years ago #
  3. danyael
    Member

    That's great, thank you very much.

    Posted 16 years ago #

RSS feed for this topic

Reply