|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
Send email for Noalyss after checking if it is possible : if cannot be sent if the limit of max email is reached,. More...
Inheritance diagram for Sendmail:
Collaboration diagram for Sendmail:Public Member Functions | |
| can_send () | |
| Check if email can be sent from a folder. | |
| get_email_sent (Database $p_repo, $p_dossier_id, $p_date) | |
| Return the amount of send emails for the date (YYYYMMDD) | |
| get_max_email (Database $p_repo, $p_dossier_id) | |
| return max email the folder can send | |
| increment_mail (Database $p_repo, $p_dossier, $p_date) | |
| Add $p_amount_email to email sent. | |
| send () | |
| Send the message. | |
| verify () | |
| check if there is a mandatory domain, if yes | |
Public Member Functions inherited from Sendmail_Core | |
| __construct () | |
| add_file (FileToSend $file) | |
| Add file to the message. | |
| add_supplemental_header () | |
| Function to override if supplemental header are needed. | |
| compose () | |
| create the message before sending | |
| mailto ($p_mailto) | |
| set the recipient | |
| set_from ($p_from) | |
| set the from | |
| set_message ($p_message) | |
| body of the message (utf8) | |
| set_subject ($p_subject) | |
Additional Inherited Members | |
Protected Attributes inherited from Sendmail_Core | |
| $afile | |
| $content | |
| $from | |
| $header | |
| $mailto | |
| $message | |
| $subject | |
Send email for Noalyss after checking if it is possible : if cannot be sent if the limit of max email is reached,.
Definition at line 35 of file sendmail.class.php.
| Sendmail::can_send | ( | ) |
Check if email can be sent from a folder.
if send from a dossier , then check limit of this dossier otherwise send true
Compare max value in repo
Definition at line 60 of file sendmail.class.php.
References $date, $dossier, $http, $repo, get_email_sent(), and get_max_email().
Referenced by send().
Here is the call graph for this function:| Sendmail::get_email_sent | ( | Database | $p_repo, |
| $p_dossier_id, | |||
| $p_date ) |
Return the amount of send emails for the date (YYYYMMDD)
| Database | $p_repo | |
| $p_dossier_id | int | |
| $p_date | string YYYYMMDD |
Definition at line 108 of file sendmail.class.php.
References $p_date, and DatabaseCore\get_value().
Referenced by can_send(), and increment_mail().
Here is the call graph for this function:| Sendmail::get_max_email | ( | Database | $p_repo, |
| $p_dossier_id ) |
return max email the folder can send
| $p_repo | Database |
| $p_dossier_id | int |
Definition at line 95 of file sendmail.class.php.
References DatabaseCore\get_value().
Referenced by can_send().
Here is the call graph for this function:| Sendmail::increment_mail | ( | Database | $p_repo, |
| $p_dossier, | |||
| $p_date ) |
Add $p_amount_email to email sent.
| $p_repo | Database |
| $p_dossier | int id of the folder (dossier.dos_id) |
| $p_date | string (YYYYMMDD) |
Definition at line 161 of file sendmail.class.php.
References $p_date, DatabaseCore\exec_sql(), get_email_sent(), and return.
Referenced by send().
Here is the call graph for this function:| Sendmail::send | ( | ) |
Send the message.
| Exception |
Reimplemented from Sendmail_Core.
Definition at line 41 of file sendmail.class.php.
References $date, $dossier, $http, $repo, _, can_send(), content, EMAIL_LIMIT, increment_mail(), and Sendmail_Core\mailto().
Here is the call graph for this function:| Sendmail::verify | ( | ) |
check if there is a mandatory domain, if yes
| Exception |
Reimplemented from Sendmail_Core.
Definition at line 124 of file sendmail.class.php.
References $e, $valid, EXC_INVALID, and from.