Hi,
I already setup the playsms to send an email when there is new SMS received.
Is there a way to change the format of the email sent ?
This is what iām receiving in the email
playSMS
Message received at 13013 on 2015-06-17 11:02:11
From +63917xxxxxxx
The quick brown fox
ā
Powered by playSMS
How can i change the FROM and SUBJECT
Thanks.
anton
June 17, 2015, 3:36am
2
Hi,
Currently there is no easy way, you need to edit the code, here:
_log("sent email from:" . $email_service . " to:" . $email, 3, "recvsms_inbox_add");
}
}
// forward to mobile
if ($fwd_to_mobile = $user['fwd_to_mobile']) {
if ($mobile = $user['mobile']) {
// fixme anton
$c_message = $message . ' ' . $sender;
if ($sender_uid = user_mobile2uid($sms_sender)) {
if ($sender_username = user_uid2username($sender_uid)) {
$c_message = $message . ' ' . '@' . $sender_username;
}
}
$message = $c_message;
$unicode = core_detect_unicode($message);
$nofooter = TRUE;
_log("send to mobile:" . $mobile . " from:" . $sms_sender . " user:" . $target_user . " message:" . $message, 3, "recvsms_inbox_add");
list($ok, $to, $smslog_id, $queue) = sendsms($target_user, $mobile, $message, 'text', $unicode, '', $nofooter);
anton
1 Like