Fax2email email template

Hi,

I tried to modify email2fax.php in order to make a fax email look better. There is some wrong with the email. Could someone help me?

Original email2fax.php line 79-90

if (!empty($callerid)) {
	$msg = sprintf(_('Enclosed, please find a new fax from: %s'), $callerid);
} else {
	$msg = _('Enclosed, please find a new fax');
}
$msg .= "\n";
$msg .= sprintf(_('Received & processed: %s'),date('r')) . "\n";
$msg .= _('On').': ' . $var['hostname'] . "\n";
$msg .= _('Via').': ' . $var['dest'] . "\n";
if (!empty($user['displayname'])) {
	$msg .= _('For').': ' . $user['displayname'] . "\n";
}

Modified fax2email.php

if (!empty($user['displayname'])) {
	$msg .= _('For').': ' . $user['displayname'] . "\n";
}
$msg .= sprintf(_('You have received a fax at: %s'),date('r')) . "\n";

if (!empty($callerid)) {
	$msg = sprintf(_('* The caller ID for this fax shows: %s'), $callerid);
} else {
	$msg = _('* The fax source does not provide caller ID');
}
$msg .= "\n\n";
$msg .= _('This attachment can be opened with Adobe Acrobat Reader®.');
$msg .= "\n";
$msg .= _('If you have not already installed Adobe Acrobat Reader® on your computer,');
$msg .= "\n";
$msg .= _('please download a free copy at https://get.adobe.com/reader/');
$msg .= "\n\n";
$msg .= _('Thank you for using Fax Service.');
$msg .= "\n\n"; 

after received the email, something wrong with the email body

missing:
if (!empty($user[‘displayname’])) {
$msg .= (‘For’).’: ’ . $user[‘displayname’] . “\n”;
}
$msg .= sprintf(
(‘You have received a fax at: %s’),date(‘r’)) . “\n”;

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.