Q:

Create custom script for send mail in magento 1.9

We want to create one php file.
When we run it from front side then send mail.
We don't want to create module.
We also wand to use magento 1.9 default functionality.
Any one help me for create it.

A:

Create send.php file into root folder. 
    require_once('app/Mage.php'); //Path to Magento
umask(0);
Mage::app();
            $html=" Write your Content Here

            ";
            $mail = Mage::getModel('core/email');
            $mail->setToName('Your Name');
            $mail->setToEmail('YoueEmail@gmail.com');
            $mail->setBody('Mail Text / Mail Content');
            $mail->setSubject('Mail Subject');
            $mail->setFromEmail('Sender Mail Id');
            $mail->setFromName("Msg to Show on Subject");
            $mail->setType('html');// You can use Html or text as Mail format
            $mail->setBodyHTML($html);  // your content or message

            if($mail->send()){
                echo 'Your request has been sent';
            } else {
               echo 'Unable to send.';
            } 

