PDA

View Full Version : Blank Emails Being Sent


Skip Bertsch
07-16-2006, 01:44 PM
I switched on the editor function, registered myself. Then attempted to login with the username and password I entered when I submitted the infomration to be an editor into the form. Hit submit.

Tried to login, it wouldn't let me.

Used the "forgot" password.

I got a blank email to my email address, with no message or subject.

djbaxter
07-16-2006, 04:13 PM
In Admin Panel | Configure | Configure Email, make sure you have that feature enabled. As I discovered, if it's disabled, the admin still gets an email but with nothing in it. :)

Skip Bertsch
07-17-2006, 04:04 AM
Thanks DJ for the hint.. appreciate your time to help.

netizen
07-21-2006, 04:29 PM
Yes, If you did not enable the send email features for all the templates, then you will get blanl emails. This should be avoided. We eagerly need a hack for this issue.

Michele
07-22-2006, 08:37 PM
Wow, wish I had found this sooner. 5 blank emails today.

Dave Baker
07-25-2006, 10:38 AM
Greetings to all,

The mistake connected with addition links is found.

Correction of this problem will not occupy many efforts.

***Open dir.php file and find following block of code:***


function addLink($aLink)
{
$sql = "INSERT INTO `{$this->mPrefix}links` (";
foreach($aLink as $key=>$value)
{
$sql .= ($key != 'id_category') ? " `{$key}`, " : '';
}
$sql .= "`date`) VALUES (";
foreach($aLink as $key=>$value)
{
$sql .= ($key != 'id_category') ? "'{$value}'," : '';
}
$sql .= "NOW())";

if ($this->mDb->query($sql))
{
$sql = "INSERT INTO `{$this->mPrefix}link_categories` ";
$sql .= "(`id_link`, `id_category`) ";
$sql .= "VALUES ('{$aLink['id']}', '{$aLink['id_category']}')";
}

$category = $this->getCategoryById($aLink['id_category']);

/** sends email to administrator **/
$admin =& $this->getAdmin();
if ($admin['submit_notif'])
{
$this->mMailer->sendSubmissionNotif($admin, $aLink, $category);
}

$aSendmail = ($this->mConfig) ? true : false;

if($aLink['email'] && $aSendmail)
{
$cause = ($this->mConfig['auto_approval']) ? "link_approve" : 'link_submit';
$this->mMailer->sendMail($cause, $aLink, $category);
}

return $this->mDb->query($sql);
}


*** In this code replace the text of red color with the following: ***


$aSendmail = ($this->mConfig['link_submit']) ? true : false;


***Save File***

I am not sure, that empty forms of messages are connected to all blanks of Email.

If it not so, please inform about it!