private $message;
private $html;
private $word_wrap = 70;
+ private $timeout = 300;
private $errors = array();
private $recipients = array();
global $i18n;
$this->mail = new PHPMailer();
+ $this->mail->Timeout = $this->timeout;
switch ($this->preferences->pref_mail_method) {
case self::METHOD_SMTP:
$this->sender_address = $address;
return $this;
}
+
+ /**
+ * Set timeout on SMTP connexion
+ *
+ * @param integer $timeout SMTP timeout
+ *
+ * @return GaletteMail
+ */
+ public function setTimeout($timeout)
+ {
+ $this->timeout = $timeout;
+ return $this;
+ }
}