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
edit format of email
Started 16 years ago by neobug103 | 7 posts |
-
Tried looking at your other posts first but wasn't able to really figure it out, I'm on the helper-functions.php at around line 430. I need to make the questions/answer appear on a different line, for example:
1) First Name & Last Name - bobby
I would like it to look like:
1) First Name & Last Name<br>
bobby
<br>Where do I insert these breaks so it puts the answer on a new line and separates the questions by a blank line?
Posted 16 years ago # -
Around line 426 on helper-functions.php, search for this code:
$email_body .= "{$i}) <b>{$data['label']}</b> {$data['value']} <br />\n";
Replace that code with this one:$data['value'] = str_replace(" - ","<br />",$data['value']); $email_body .= "{$i}) <b>{$data['label']}</b> {$data['value']} <br /><br />\n";
Let me know if it doesn't work for you.MachForm Founder
Posted 16 years ago # -
Nope, doesn't do a single thing.
This is what I have:
//prepare HTML body for email
$email_body = '';
$i=1;
foreach ($email_data as $data){$data['value'] = str_replace(" - ","
",$data['value']);
$email_body .= "{$i}) <b>{$data['label']}</b> {$data['value']}\n";
$i++;
}
$email_body .= "";
Posted 16 years ago # -
Hmm.. have you tried the code I posted above? You should use <br> instead of new line.
It should be like this:$email_body = ''; $i=1; foreach ($email_data as $data){ $data['value'] = str_replace(" - ","<br />",$data['value']); $email_body .= "{$i}) <b>{$data['label']}</b> {$data['value']} <br /><br />\n"; $i++; } $email_body .= "<br/><br/>";
MachForm Founder
Posted 16 years ago # -
If the code above doesn't readable enough, try this:
http://mf.pastebin.com/f1bee1644MachForm Founder
Posted 16 years ago # -
Thats not working either :(
Doesn't even make a dent in how it looks.
Posted 16 years ago # -
Hmm.. that's weird. I've tested the code and it's working properly here.
Can I login to your FTP to check this directly?Please mail the login info to yuniar [at] appnitro.com
Also what email client do you use?
MachForm Founder
Posted 16 years ago #
Reply
You must log in to post.