search
top

Mail in Magento

While working in Magento eCommerce, many times need arises to send mail from within custom modules. Magento is based on Zend, Zend has a class defined for doing this. I am listing here the method for sending mail. <?php $to_email = ‘test@test.com’; $to_name = ‘to name’; $subject = ‘Mail Testing’; $Body = “Sending mail from magento”; $sender_email = “sender@sender.com”; $sender_name...
read more

Mail in PHP

I am listing here the method for sending mail using PHP code. This will be useful in many ways, for example when you want to sent mail after say a form is submitted. Note: This may work in local , but I am suggesting you to execute on live server. <?php ini_set("SMTP","mail.yoursitename.com"); //this is in general case, put here the SMTP address. ini_set("SMTP_PORT",25);...
read more

Send email from components

While working in Joomla CMS, many times need arises to send mail from the components. Joomla has a class defined for doing this. I am listing here the method for sending mail. <?php $admin_email = ‘test@test.com’; $subject = ‘Mail Testing’; $Body = “Sending mail from component”; $sender_email = “sender@sender.com”; $sender_name = “Sender Name”; $mail = &JFactory::getMailer();...
read more

top