PHP Classes

File: example/example1.php

Recommend this page to a friend!
  Classes of Vedanta Barooah   Auto-Responder   example/example1.php   Download  
File: example/example1.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: 601 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 */
$respond->responseContentSource="This is a response to your mail!";
/* send out a html format custom autoresponse and delete all the mails in the mail server */
$respond->send('custom','html',true);
/* close the mailbox */
$respond->close_mailbox();