PHP Classes

File: example/example2.php

Recommend this page to a friend!
  Classes of Vedanta Barooah   Auto-Responder   example/example2.php   Download  
File: example/example2.php
Role: Example script
Content type: text/plain
Description: Example
Class: Auto-Responder
Mail Autoresponder Class
Author: By
Last change:
Date: 19 years ago
Size: 627 bytes
 

Contents

Class file image Download
/* include the main class */
include("../autoresponse.class.php");
/* create a object of the class */
$respond=new autoresponse('vedanta@exampledomain.com','bulky','vedanta@exampledomain.com','mail.exampledomain.com');
/* connect to the mail server specified in the constructor */
$respond->connect();
/* set a autoresponse content to a file in the system*/
$respond->responseContentSource="/path/to/a/readable/file/in/your/system";
/* send out a html format file autoresponse and do not delete the mails in the mail server */
$respond->send('custom','html');
/* close the mailbox */
$respond->close_mailbox();