noalyss Version-9
|
Send email for Noalyss after checking if it is possible : if cannot be sent if the limit of max email is reached,. More...
Public Member Functions | |
can_send () | |
Check if email can be sent from a folder. More... | |
get_email_sent (Database $p_repo, $p_dossier_id, $p_date) | |
Return the amount of send emails for the date (YYYYMMDD) More... | |
get_max_email (Database $p_repo, $p_dossier_id) | |
return max email the folder can send More... | |
increment_mail (Database $p_repo, $p_dossier, $p_date) | |
Add $p_amount_email to email sent. More... | |
send () | |
Send the message. More... | |
verify () | |
check if there is a mandatory domain, if yes More... | |
Public Member Functions inherited from Sendmail_Core | |
__construct () | |
add_file (FileToSend $file) | |
Add file to the message. More... | |
add_supplemental_header () | |
Function to override if supplemental header are needed. More... | |
compose () | |
create the message before sending More... | |
mailto ($p_mailto) | |
set the recipient More... | |
send () | |
Send email. More... | |
set_from ($p_from) | |
set the from More... | |
set_message ($p_message) | |
body of the message (utf8) More... | |
set_subject ($p_subject) | |
verify () | |
verify that the message is ready to go More... | |
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().
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().
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().
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().
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().
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.