DecryptWeb Blog

Opensource Web Solutions

Email

Hide email address from bots

Due to the constant crawling and scrapping of the site by bots, any email addresses shown on the site are prone to spamming. Best way is to avoid showing any email address on site and use a contact us page that triggers a mail to a specified email address. But in case you need to […]

Add attachment to order email in Magento

Many times there arise the need to attach files to the order mail. I am giving here a brief explanation for this: I have used Magento ver. 1.7.0.0 ( In previous version there was no mailer class). 1) Rewrite Sales Class Copy the file found at app\code\core\Mage\Sales\Model\Order.php to app\code\local\Mage\Sales\Model\Order.php Overwrite the `sendNewOrderEmail()’ method found. Here […]

Custom Email Templates in Magento

Hello, I am explaining here the method for sending custom emails using the custom email templates with variables. 1) Create an email template from Admin-end > System > Transactional Emails, for example lets put this as Template Content 2) Suppose the id of the template created is 3 3) Below code you can write in […]

Scroll to top