mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
24 lines
553 B
PHP
24 lines
553 B
PHP
<?php
|
|
|
|
use Alchemy\Phrasea\Application;
|
|
|
|
class mail
|
|
{
|
|
public static function ftp_sent(Application $app, $email, $subject, $body)
|
|
{
|
|
$to = array('email' => $email, 'name' => $email);
|
|
|
|
return self::send_mail($app, $subject, $body, $to);
|
|
}
|
|
|
|
public static function ftp_receive(Application $app, $email, $body)
|
|
{
|
|
$subject = _("task::ftp:Someone has sent some files onto FTP server");
|
|
|
|
$to = array('email' => $email, 'name' => $email);
|
|
|
|
return self::send_mail($app, $subject, $body, $to);
|
|
}
|
|
|
|
}
|