File: addMail.php

Recommend this page to a friend!
  Classes of solomongaby  >  Newsletter Queue  >  addMail.php  >  Download  
File: addMail.php
Role: Example script
Content type: text/plain
Description: example adding a mail in the queue
Class: Newsletter Queue
Queue newsletters in MySQL for delivering later
Author: By
Last change: added new fields
Date: 13 years ago
Size: 1,011 bytes


Class file image Download

$mysql= new mysql('localhost' , 'mysqlUser', 'mysqlPassw', 'mysqlDB' );

$newsletter= new newsletter();

$data=array('method' => 'SMTP',
'From' => '',
'FromName' => 'My Name',
'Host' => '',
'SMTPAuth' => true,
'Username' => '',
'Password' => 'password',
'recepientMail' => '',
'recepientName' => 'Joe Silva',
'subject' => 'Hello friend',
'body' => 'How are you !',
'ContentType' => 'text/html',
'priority' => '3',
'SendDate' => time(),
if (
$add===false) echo $newsletter->errorMsg;


For more information send a message to info at phpclasses dot org.