如何在magento中检查邮件是否已发送?

How to check mail is sent or not in magento?

我的代码:

            $emailTemplate = Mage::getModel('core/email_template')->loadDefault($templateId);
            $senderMail = $order->getCustomerEmail();
            $senderName  = $order->getCustomerName();
            $receiverMail = Mage::helper('orderattachments')->getEmailAddress();
            $receiverName = Mage::helper('orderattachments')->getName();
            $emailTemplate->setTemplateSubject("Order Attachments_ " . $orderId);
            $emailTemplate->setSenderEmail($senderMail, $storeId);
            $emailTemplate->setSenderName($senderName, $storeId);
            $emailTemplate->send($receiverMail,$receiverName, $post);

如何查看邮件是否发送?

  if(!$emailTemplate->getSentSuccess()) {
            throw new Exception('Not Sent');
        }

这是正确的检查方法吗?

试试这个,

 if(!$emailTemplate->send($receiverMail,$receiverName, $post)) {
        throw new Exception('Not Sent');
    }