Program_Root/inc.functions_mail.php

Description

inc.functions_mail.php - email functions

  • copyright: 2001 - 2003 Mandarin Trading (Pty) Ltd
  • author: Richard Howes
Includes
require ("phpmailer/class.mailer.php") (line 12)

Include the phpmailer class

Variables
mailer $mailer (line 18)

Server email is being sent from.

Functions
email (line 36)

Sends email either immediately or via data transfer depending on flag in database table ----, field ----

  • todo:

    Make this function asynchronous because sending a large amount of mail will make data transfer very slow.

string email (string $from, string $to, string $subject, string $headers, mixed $message, [mixed $action = 0], [string $emailID = 0], [mixed $resID = ], [mixed $fromName = "Resrequest User"], [mixed $attachString = ], [mixed $attachStringFilename = ], string $action=0)
  • string $from
  • string $to
  • string $subject
  • string $headers
  • string $action=0:
    • -1=create, 0=send (default), 1=resend, 2=forward, 3=print, 4=delete
  • string $emailID:
    • ID of message to resend, forward, print or delete
webSendmail (line 205)

Send data transfered mail

Sends out email transferred from principal via Data transfer. This function should be called asynchronously if possible (Dont know how at the moment). Only called on hosted servers so will send to local sendmail for speed.

void webSendmail ()

Documentation generated on Mon, 15 Sep 2003 16:19:52 +0200 by phpDocumentor 1.2.2