I helped someone to allow leaving the subject line blank in the email message so thought I would add it to the tips forum.
First of all, you can not have a blank subject; it is used to form the URL so that you have something to click on to view the message. What we will do is to make a few changes so that if the subject line is blank, then the subject will be "No Subject"
In mail.php you need to find the following:
if(!$sMessageSubject) {
$sErrorMessage = '_Mailbox title empty';
}
Change that to
if(!$sMessageSubject) {
$sMessageSubject = 'No Subject';
}
Now you need to disable the javascript alert message. In /inc/js/mail_box.js find:
var sComposeSubject = $.trim($('#' + htmlSelectors[1]).attr('value'));
if(!sComposeSubject) {
sErrorMessage = _t('_Mailbox title empty');
}
Delete the part:
if(!sComposeSubject) {
sErrorMessage = _t('_Mailbox title empty');
}
Make backups of your files first. You may need to clear caches including your browser cache.