PHP Classes

File: ex_easymail.php

Recommend this page to a friend!
  Classes of Srihari Sri   EasyMail   ex_easymail.php   Download  
File: ex_easymail.php
Role: Example script
Content type: text/plain
Description: it is an example script for easyMail class
Class: EasyMail
Send HTML e-mail messages
Author: By
Last change: nothing
Date: 11 years ago
Size: 1,066 bytes
 

Contents

Class file image Download
<?php
//example code for easyMail class
$body = "<p>CSS3 is changing how we build websites. Even though many of us are still reluctant to start using CSS3 due to the lack of support in some browsers, there are those out there that are moving forward and doing some amazing stuff with its cool new features. No longer will we have to rely on so much JavaScript and images to create nice looking website elements such as buttons and menu navigations. </p>
<p>You can build a cool rounded navigation menu, with no images and no Javascript, and effectively make use of the new CSS3 properties border-radius and animation. This menu works perfectly well with Firefox, Opera, Chrome and Safari. The dropdown also works on non-CSS3 compitable browsers such as IE7+, but the rounded corners and shadow will not be rendered. CSS3 transitions could one day replace all the fancy jQuery animation tricks people use. </p>"
;
$mail = new easyMail('srihari@obsol.net', 'message from mailclass file', $body);
if(
$mail->SendMail())
echo
"success";

else
echo
"not sent";
?>