FEAT #10460 TIME 1 clean model V1 sendmail

parent f4925f66
Documentation d'installation :
https://docs.maarch.org/gitbook/html/MaarchCourrier/18.10/guat/guat_installation/debian.html
https://docs.maarch.org/gitbook/html/MaarchCourrier/19.04/guat/guat_installation/debian.html
......@@ -6,25 +6,25 @@
# Maarch Courrier
Gestionnaire Électronique de Correspondances – Libre et Open Source –
**Dernière version stable V18.10**
**Dernière version stable V19.04**
Démonstration : http://demo.maarchcourrier.com/
Documentation : https://docs.maarch.org/gitbook/html/MaarchCourrier/18.10/
Documentation : https://docs.maarch.org/gitbook/html/MaarchCourrier/19.04/
## Installation
1. Vérifiez que vous avez l'ensemble des [pré-requis](https://docs.maarch.org/gitbook/html/MaarchCourrier/18.10/guat/guat_prerequisites/home.html)
2. Décompressez *MaarchCourrier-18.10.tar.gz* dans votre zone web
1. Vérifiez que vous avez l'ensemble des [pré-requis](https://docs.maarch.org/gitbook/html/MaarchCourrier/19.04/guat/guat_prerequisites/home.html)
2. Décompressez *MaarchCourrier-19.04.tar.gz* dans votre zone web
3. Vérifiez votre vhost Apache
4. Laissez-vous guider par notre installeur à [http://IP.ouDomaine.tld/MaarchCourrier/install/](https://docs.maarch.org/gitbook/html/MaarchCourrier/18.10/guat/guat_installation/online_install.html)
4. Laissez-vous guider par notre installeur à [http://IP.ouDomaine.tld/MaarchCourrier/install/](https://docs.maarch.org/gitbook/html/MaarchCourrier/19.04/guat/guat_installation/online_install.html)
## Requis techniques
* Apache2.x
* PostgreSQL 9.x
* PHP 7.0.* ou PHP 7.1.*
* PHP 7.0, 7.1, 7.2. 7.3
* Extensions PHP (adaptées à votre version de PHP) : PHP-[XSL](http://php.net/manual/en/book.xsl.php), PHP-[XML-RPC](http://php.net/manual/en/book.xmlrpc.php), PHP-[Gettext](http://php.net/manual/en/b$
* Bibliothèques pear/CLITools
* [ImageMagick](http://imagemagick.org/), avec PHP-[ImageMagick](http://php.net/manual/en/book.imagick.php)
......
<?php
/**
* Copyright Maarch since 2008 under licence GPLv3.
* See LICENCE.txt file at the root folder for more details.
* This file is part of Maarch software.
*
*/
/**
* @brief mail Model
* @author dev@maarch.org
* @ingroup sendmail
*/
namespace Sendmail\Models;
class MailModel extends MailModelAbstract
{
// Do your stuff in this class
}
<?php
/**
* Copyright Maarch since 2008 under licence GPLv3.
* See LICENCE.txt file at the root folder for more details.
* This file is part of Maarch software.
*
*/
/**
* @brief Mail Model
* @author dev@maarch.org
* @ingroup sendmail
*/
namespace Sendmail\Models;
class MailModelAbstract
{
public static function createMail($data)
{
try {
\SrcCore\models\DatabaseModel::insert([
'table' => 'sendmail',
'columnsValues' => [
'coll_id' => $data->coll_id,
'res_id' => $data->res_id,
'user_id' => $data->user_id,
'to_list' => $data->to_list,
'cc_list' => $data->cc_list,
'cci_list' => $data->cci_list,
'email_object' => $data->email_object,
'email_body' => $data->email_body,
'is_res_master_attached' => $data->is_res_master_attached,
'email_status' => $data->email_status,
'creation_date' => $data->creation_date,
'sender_email' => $data->sender_email,
'message_exchange_id' => $data->message_exchange_id,
]
]);
} catch (Exception $e) {
return false;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment