Friday, 22 January 2010

PHP mail helper class


todays post is about a very simple to use php helper class for mail sending.

The class is easy to use and can serve the purpose of multiple mail sending using one function call.

Remember you need to do all your validation yourself... until I build the php helper class for all possible sorts of required validations.

Simply get the mail class from

//include the mail class in your code

//instantiate the Mailer class with the
$mail = new Mailer('','','subject','message');

//or you can also instanciate with cc and Bcc
$mail = new Mailer('','','subject','message','','');

//then simple call the send mail function

//you can also send mail to a list of people
$mail = new Mailer('','','subject','message');
$array = new array('','','');

1 comment:

  1. This is a nice article..
    Its very easy to understand ..
    And this article is using to learn something about it..

    c#,, php tutorial

    Thanks a lot..!