Magento: Fix PayPal order confirmation email not sent

--- ./app/code/core/Mage/Checkout/Model/Type/Onepage.php.org	2011-04-06 16:23:32.000000000 +0200
+++ ./app/code/core/Mage/Checkout/Model/Type/Onepage.php	2011-04-06 16:43:11.000000000 +0200
@@ -623,13 +623,13 @@
         /**
          * we only want to send to customer about new order when there is no redirect to third party
          */
-        if(!$redirectUrl){
+//        if(!$redirectUrl){
             try {
                 $order->sendNewOrderEmail();
             } catch (Exception $e) {
                 Mage::logException($e);
             }
-        }
+//        }
 
         $this->getCheckout()->setLastQuoteId($this->getQuote()->getId())
             ->setLastOrderId($order->getId())
1

Links
http://screencastworld.com/2010/03/magento/magento-commerce-how-to-fix-order-confirmation-email-not-sent
http://inchoo.net/ecommerce/magento/debugging-paypal-ipn-in-magento/
http://sergiy.kyrylkov.name/blog/2010/05/payment-problems-in-magento-paypal-standard-with-ipn-after-upgrade-from-1-3-x-to-1-4-0-1/