Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
No Transactional Emails Being Sent
 
Russ
Jr. Member
 
Total Posts:  2
Joined:  2008-06-07
Los Angeles, CA
 

Ok this is getting very frustrating.

I have the latest version of Magento installed.  Crucial web hosting installed it.  Everything looks great.

However, no transactional emails are being sent.  No order emails to either the customer or the admin.  No order update emails such as invoice or shipping.  If the customer requests a lost password, it says is sends it, but it doesn’t.

Also, there is no Newsletter Tab in the configuration panel.

I really would like to utilize Magento for my clients, but order emails is a required necessity.

The only thing I can think of is that is has either something to do with the Locale folder or the Default Email Domain in the configuration settings.

If anyone has found a solution to this issue, please help.

It’s running on a Linux server at crucial web hosting.

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial Web Host
Sr. Member
 
Avatar
Total Posts:  196
Joined:  2007-11-08
Phoenix, AZ
 

This appears to be a known bug.

http://www.magentocommerce.com/bug-tracking/issue?issue=1619

There is a detailed discussion of the cause and potential fixes/patches at the following URL.

http://www.magentocommerce.com/boards/viewthread/5081/

Hope this helps.

 Signature 

Crucial Web Hosting
Magento hosting in shared, semi-dedicated, and dedicated configurations. Demo store.
Dedicated Containers come with Varien’s professional support services for Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial Web Host
Sr. Member
 
Avatar
Total Posts:  196
Joined:  2007-11-08
Phoenix, AZ
 

Russ,

Your issue appears unrelated to the links I listed.

We are installing a previous version of Magento to test against as this issue appears to be effecting newest versions only.

 Signature 

Crucial Web Hosting
Magento hosting in shared, semi-dedicated, and dedicated configurations. Demo store.
Dedicated Containers come with Varien’s professional support services for Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial
Guru
 
Avatar
Total Posts:  542
Joined:  2007-11-07
Phoenix, AZ
 

I have tested this on three different servers on the following versions of Magento:

Magento 1.0.19870.1
Magento 1.0.19870.2
Magento 1.0.19870.3
Magento 1.0.19870.4

When no email is listed in the Sales Email section, the person who placed the order gets an email. As soon as you add an email address in Sales Email to get a copy sent over, neither the email address listed in there nor the person who placed the order gets the email.

In this thread there is a fix for this, but it’s incomplete. Adding this code will now only send a new order notification email to you, but nothing to the person who ordered it.

To fix this, open up the following file:

app/code/core/Mage/Sales/Model/Order.php

Go to line 555 where the sendNewOrderEmail() function starts and comment out the following:

if ($bcc $this->_getEmails(self::XML_PATH_EMAIL_COPY_TO)) {
    $mailTemplate
->addBcc($bcc);
}

Add the following code right before return $this:

$mail = new Zend_Mail(); 
$mail->setBodyHtml(
    
$this->getShippingAddress()->format('html').'<br /><br />Shipping: '.
    
$this->getShippingMethod().'<br /><br >'.
    
$itemsBlock->toHtml()
); 
$mail->setFrom('FROM_EMAIL_ADDRESS'
    ->
addTo('YOUR_EMAIL_ADDRESS')
    ->
setSubject('EMAIL_SUBJECT')
    ->
send();

Or you can replace the entire function:

public function sendNewOrderEmail()
    
{
        $itemsBlock 
Mage::getBlockSingleton('sales/order_email_items')->setOrder($this);
        
$paymentBlock Mage::helper('payment')->getInfoBlock($this->getPayment())
            ->
setIsSecureMode(true);

        
$mailTemplate Mage::getModel('core/email_template');
        
/* @var $mailTemplate Mage_Core_Model_Email_Template */
       
        /* Need to comment this out so email hack below works
        if ($bcc = $this->_getEmails(self::XML_PATH_EMAIL_COPY_TO)) {
            $mailTemplate->addBcc($bcc);
        }
        */
        
        
if ($this->getCustomerIsGuest()) {
            $template 
Mage::getStoreConfig(self::XML_PATH_EMAIL_GUEST_TEMPLATE$this->getStoreId());
            
$customerName $this->getBillingAddress()->getName();
        
else {
            $template 
Mage::getStoreConfig(self::XML_PATH_EMAIL_TEMPLATE$this->getStoreId());
            
$customerName $this->getCustomerName();
        
}

        $mailTemplate
->setDesignConfig(array('area'=>'frontend''store'=>$this->getStoreId()))
            ->
sendTransactional(
                
$template,
                
Mage::getStoreConfig(self::XML_PATH_EMAIL_IDENTITY$this->getStoreId()),
                
$this->getCustomerEmail(),
                
$customerName,
                array(
                    
'order'         => $this,
                    
'billing'       => $this->getBillingAddress(),
                    
'payment_html'  => $paymentBlock->toHtml(),
                    
'items_html'    => $itemsBlock->toHtml(),
                )
            );
        
        
/* Start Email Hack */
        
$mail = new Zend_Mail(); 
        
$mail->setBodyHtml(
            
$this->getShippingAddress()->format('html').'<br /><br />Shipping: '.
            
$this->getShippingMethod().'<br /><br >'.
            
$itemsBlock->toHtml()
        ); 
        
$mail->setFrom('FROM_EMAIL_ADDRESS'
            ->
addTo('YOUR_EMAIL_ADDRESS')
            ->
setSubject('EMAIL_SUBJECT')
            ->
send();
        
/* End Email Hack */
        
        
return $this;
    
}

NOTE: Make sure you replace the FROM_EMAIL_ADDRESS, YOUR_EMAIL_ADDRESS, and EMAIL_SUBJECT before you upload this!

 Signature 

Crucial Web Hosting
Magento hosting in shared, semi-dedicated, and dedicated configurations. Demo store.
Dedicated Containers come with Varien’s professional support services for Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
groupthing
Member
 
Total Posts:  36
Joined:  2007-12-24
 

Hi Crucial,
I’ve copied the whole function into my site, but it still doesn’t seem to be sending out the order email. The main site is on your server, but email is on another server. Is there any log we can check to figure out where the email is being held?
Thanks for your help so far.

 
Magento Community Magento Community
Magento Community
Magento Community
 
groupthing
Member
 
Total Posts:  36
Joined:  2007-12-24
 

Do you have custom email templates selected or just the default ones? I have been using custom and nothing was sent. Since then, I’ve tested going back to the default template and it worked for Forgotten Password. I’m checking the other templates now…

I also did not copy over all of the template files in \app\design\frontend\default\default\template\email to my new template. That seems to be the main source of these issues and now everything is working.

Russ - 30 June 2008 07:03 AM

Ok this is getting very frustrating.

I have the latest version of Magento installed.  Crucial web hosting installed it.  Everything looks great.

However, no transactional emails are being sent.  No order emails to either the customer or the admin.  No order update emails such as invoice or shipping.  If the customer requests a lost password, it says is sends it, but it doesn’t.

Also, there is no Newsletter Tab in the configuration panel.

I really would like to utilize Magento for my clients, but order emails is a required necessity.

The only thing I can think of is that is has either something to do with the Locale folder or the Default Email Domain in the configuration settings.

If anyone has found a solution to this issue, please help.

It’s running on a Linux server at crucial web hosting.

Thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
markl
Member
 
Total Posts:  33
Joined:  2008-04-18
 

Hi groupthing,

Did you mean that copying all the template files over fixed it? or not copying the template files over fixed it?

Thanks,

Mark

ps. Sorry ... I know this is an old post, but I’m desparate!

 
Magento Community Magento Community
Magento Community
Magento Community
 
groupthing
Member
 
Total Posts:  36
Joined:  2007-12-24
 

Yes, copying over all of the files seemed to fix it.
But…
I also had to send emails like “Contact Us” to my yahoo account because emails sent to the same domain as the site were not working (as described in this thread).

markl - 11 August 2008 08:23 AM

Hi groupthing,

Did you mean that copying all the template files over fixed it? or not copying the template files over fixed it?

Thanks,

Mark

ps. Sorry ... I know this is an old post, but I’m desparate!

 
Magento Community Magento Community
Magento Community
Magento Community
 
markl
Member
 
Total Posts:  33
Joined:  2008-04-18
 

Thanks for getting back to me. I managed to get my emails working again. There were two things at play

1. The standard templates were being blocked by my symantec spam filter. Removing some of the key words in the text let them come through to me.

2. The problem getting email to the test recipient was down to their mail security software checking the from: address and comparing it to the from: in the email header. My server runs sendmail and by default was announcing itself as server3323 or something. I found the config to tweak that setting and now all is well.

Thanks,

Mark

 
Magento Community Magento Community
Magento Community
Magento Community
 
turbo1
Sr. Member
 
Avatar
Total Posts:  112
Joined:  2008-08-19
Los Angeles, CA
 
markl - 28 August 2008 01:45 PM


2. The problem getting email to the test recipient was down to their mail security software checking the from: address and comparing it to the from: in the email header. My server runs sendmail and by default was announcing itself as server3323 or something. I found the config to tweak that setting and now all is well.

Could you please advise how you did this?  I’m having the same problem.

 Signature 

My contributions: Google Base Data Feed module, Shopping.com Data Feed module

Wanted: Order deletion, RMA support

I’m not here to sell you anything. My help and contributions are always free.

 
Magento Community Magento Community
Magento Community
Magento Community
 
markl
Member
 
Total Posts:  33
Joined:  2008-04-18
 

Hi Turbo1, In the end I had to change the name of my dedicated server. I’m sure there is an easier way to do it though.

Thanks,

Mark

 
Magento Community Magento Community
Magento Community
Magento Community
 
turbo1
Sr. Member
 
Avatar
Total Posts:  112
Joined:  2008-08-19
Los Angeles, CA
 

Yikes, that would suck. Heh..  I guess you wound up having to name the server the same name as your domain?  For example, if your email domain is xyzcorp.com, then you named your server xyzcorp?

 Signature 

My contributions: Google Base Data Feed module, Shopping.com Data Feed module

Wanted: Order deletion, RMA support

I’m not here to sell you anything. My help and contributions are always free.

 
Magento Community Magento Community
Magento Community
Magento Community
 
markl
Member
 
Total Posts:  33
Joined:  2008-04-18
 

Hi Turbo1, Yeah, I just checked and I changed the name to www and the domain to .mydomain.com I think! I’m a newbie to linux ad sendmail so it was a case of tinkering with the settings until I got it to work.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52318 users|432 users currently online|105656 forum posts