use entry title (if set) as subject when send by email
This commit is contained in:
parent
bc03bb5a4a
commit
77bc4cd0dc
1 changed files with 6 additions and 3 deletions
|
@ -867,8 +867,11 @@ function item_post(&$a) {
|
||||||
. '<br />';
|
. '<br />';
|
||||||
$disclaimer .= sprintf( t('You may visit them online at %s'), $a->get_baseurl() . '/profile/' . $a->user['nickname']) . EOL;
|
$disclaimer .= sprintf( t('You may visit them online at %s'), $a->get_baseurl() . '/profile/' . $a->user['nickname']) . EOL;
|
||||||
$disclaimer .= t('Please contact the sender by replying to this post if you do not wish to receive these messages.') . EOL;
|
$disclaimer .= t('Please contact the sender by replying to this post if you do not wish to receive these messages.') . EOL;
|
||||||
|
if (!$datarray['title']=='') {
|
||||||
|
$subject = email_header_encode($datarray['title'],'UTF-8');
|
||||||
|
} else {
|
||||||
$subject = email_header_encode('[Friendica]' . ' ' . sprintf( t('%s posted an update.'),$a->user['username']),'UTF-8');
|
$subject = email_header_encode('[Friendica]' . ' ' . sprintf( t('%s posted an update.'),$a->user['username']),'UTF-8');
|
||||||
|
}
|
||||||
$headers = 'From: ' . email_header_encode($a->user['username'],'UTF-8') . ' <' . $a->user['email'] . '>' . "\n";
|
$headers = 'From: ' . email_header_encode($a->user['username'],'UTF-8') . ' <' . $a->user['email'] . '>' . "\n";
|
||||||
$headers .= 'MIME-Version: 1.0' . "\n";
|
$headers .= 'MIME-Version: 1.0' . "\n";
|
||||||
$headers .= 'Content-Type: text/html; charset=UTF-8' . "\n";
|
$headers .= 'Content-Type: text/html; charset=UTF-8' . "\n";
|
||||||
|
|
Loading…
Reference in a new issue