WP File Manager
Current Path:
/
home
/
argothem
/
www
/
organecyberpresse
/
plugins
/
auto
/
mailshot
/
v4.0.1
/
bulkmailer
/
Name
Action
..
defaut.php
Edit
mailjet.php
Edit
mandrill.php
Edit
sendinblue.php
Edit
smtp.php
Edit
sparkpost.php
Edit
Editing: smtp.php
<?php /** * Plugin MailShot * (c) 2012 Cedric Morin * Licence GNU/GPL */ if (!defined('_ECRIRE_INC_VERSION')) return; include_spip("inc/config"); /** * @param array $to_send * string email * string sujet * string html * string texte * @param array $options * bool filtre_images * array smtp * string host * string port * string auth * string username * string password * string secure * string errorsto * string adresse_envoi_nom * string adresse_envoi_email * @return null|SPIP\Facteur\FacteurMail */ function &bulkmailer_smtp_dist($to_send,$options=array()){ static $config = null; static $mailer_defaut; if (is_null($config)){ $config = lire_config("mailshot/"); $mailer_defaut = charger_fonction("defaut","bulkmailer"); } // on ecrase le smtp avec celui de la config $options['smtp'] = $config['smtp']; return $mailer_defaut($to_send,$options); }