PHP Classes

File: cronjob/reply_mails.php

Recommend this page to a friend!
  Classes of Vedanta Barooah  >  Auto-Responder  >  cronjob/reply_mails.php  >  Download  
File: cronjob/reply_mails.php
Role: Application script
Content type: text/plain
Description: Example Script for Console
Class: Auto-Responder
Mail Autoresponder Class
Author: By
Last change: code correction, sorry! :(
Date: 11 years ago
Size: 989 bytes


Class file image Download

# in linux this script needs +x (exec permission)

/* this script will call the autoresponder from the console */

/* customize to your requirements */
$SERVER_TYPE='pop' # alternate is imap
$PORT='110'; # 143 for imap
$RESPONSE_TYPE='custom' # alternate is file and url

/* a simple custom autoresponse message! */
$message="Your auto-response message goes here!\r\n";

/* include the class file */
/* create a object of the class */
/* connect to the server */
/* set the response message */
/* send the response mails - text mail not purged from the server */
/* close the mailbox */