File/nasmail/src/compose.php

Description

This code sends a mail.

There are 4 modes of operation:

  • Start new mail
  • Add an attachment
  • Send mail
  • Save As Draft
This script contains modifications ported from SquirrelMail 1.4.9+. See commits tagged with SM-PATCH keyword. Modifications are copyrighted by the SquirrelMail Project Team. Copyright (c) 2007 The SquirrelMail Project Team

  • version: $Id: compose.php 1454 2009-10-28 11:46:14Z tokul $
  • copyright: (c) 1999-2006 The SquirrelMail Project Team
  • copyright: (c) 2006-2009 The NaSMail Project
  • license: GNU Public License
Includes
 include_once (SM_PATH.'functions/forms.php') (line 33)
 include_once (SM_PATH.'functions/date.php') (line 29)
 include_once (SM_PATH.'functions/mime.php') (line 30)
 include_once (SM_PATH.'functions/imap.php') (line 28)
 include_once (SM_PATH.'class/deliver/Deliver.class.php') (line 31)
 include_once (SM_PATH.'functions/addressbook.php') (line 32)
 include_once (SM_PATH.'functions/identity.php') (line 34)
 require_once (SM_PATH.'include/validate.php') (line 27)
Functions
deliverMessage (line 1632)

Delivers message

Temporary function to make use of the deliver class. In the future the responsable backend should be automaticly loaded and conf.pl should show a list of available backends. The message also should be constructed by the message class.

  • return: false on delivery error. boolean true or message size on success
boolean|integer deliverMessage (object Message $composeMessage, [boolean $draft = false])

Documentation generated on Sun, 22 Nov 2009 17:36:21 +0200 by phpDocumentor 1.4.3