$from_address = "*****@*****.**"; $from_name = "Prabhakar"; $subject = "Test"; $html_message = "this is test mail"; $toname = "prabhakarindia2006"; $tomailid = "prabhakarindia2006@gmail"; $sendmail->sendHtmlEMail($from_address, $from_name, $toname, $tomailid, $subject, $html_message, $html_message); */ /* Instantiate Object -------------------------------------------------------------------*/ //$mailer = new SendMail ( MSG_TXT ); $mailer = new SendMail(MSG_HTML + MSG_TXT); $mailer->setSMTP('smtp.gmail.com', '465', '*****@*****.**', 'prabhaprofit121085'); /* Set Basics, like sender, recipient (receiver), a CC, and the subject -------------------------------------------------------------------*/ $mailer->setSender('Prabhakar', '*****@*****.**'); $mailer->setReceiver('senthil', '*****@*****.**'); //$mailer->addCC('you','*****@*****.**'); $mailer->subject = 'This is a test message.'; /* Set the actual message, both HTML and TXT -------------------------------------------------------------------*/ // Load the HTML template //$template_file = fopen ( 'mail_template.html' , 'r' ); /*$template = ''; while (!feof ($template_file)) { $template .= fgets ($template_file); } fclose ($template_file); */ $msg = <<<MSG this is text test mail in php MSG;