magento这封信不能发送给特定的邮件 [英] magento this letter cannot be sent for particular mail only

查看:196
本文介绍了magento这封信不能发送给特定的邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好编程地,我在magento中添加邮件。默认邮件系统运行良好。但是我的邮件通过这个错误。

Hi programatically i add mail in magento. Default mail system works well. but my mail through this bug.

2013-10-08T05:06:17+00:00 ERR (3): 
exception 'Exception' with message 'This letter cannot be sent.' in /home/domain/public_html/fashion/app/code/core/Mage/Core/Model/Email/Template.php:398
Stack trace:
#0 /home/mall140/public_html/fashion/app/code/local/seller/Marketplaceseller/controllers/SendmailController.php(18): Mage_Core_Model_Email_Template->send('amia.1901@...', 'victor', Array)
#1 /home/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Webkul_Marketplacepartner_SendmailController->indexAction()
#2 /home/fashion/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#3 /home/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#4 /home/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#5 /home/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#6 /home/index.php(87): Mage::run('', 'store')

这是错误代码。请帮助我

This is error code. please help me

推荐答案

此异常意味着 Mage_Core_Model_Email_Template :: isValidForSend()返回 false

public function isValidForSend()
{
    return !Mage::getStoreConfigFlag('system/smtp/disable')
        && $this->getSenderName()
        && $this->getSenderEmail()
        && $this->getTemplateSubject();
}

没有看到代码设置你的电子邮件模板,发送之前很难说这四个条件都失败了。

Without seeing the code setting up your email template before sending it's hard to say which of the four conditions fails.

我的猜测是SMTP后缀中的SMTP邮件被禁用。

My wild guess would be that SMTP mails are disabled in your backend.

检查是否 System - >配置 - >系统 - >邮件发送设置 - >禁用电子邮件通信设置为否。

这篇关于magento这封信不能发送给特定的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆