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
Started 16 years ago by danyael | 3 posts |
-
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,
DanyaelPosted 16 years ago # -
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 # -
That's great, thank you very much.
Posted 16 years ago #
Reply
You must log in to post.