ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilMailMimeTransportSmtp Class Reference
+ Inheritance diagram for ilMailMimeTransportSmtp:
+ Collaboration diagram for ilMailMimeTransportSmtp:

Public Member Functions

 __destruct ()
 
- Public Member Functions inherited from ilMailMimeTransportBase
 __construct (protected ilSetting $settings, private readonly ilAppEventHandler $event_handler)
 
 send (ilMimeMail $mail)
 
 send (ilMimeMail $mail)
 

Protected Member Functions

 onBeforeSend ()
 
- Protected Member Functions inherited from ilMailMimeTransportBase
 getMailer ()
 
 setMailer (PHPMailer $mailer)
 
 resetMailer ()
 
 onBeforeSend ()
 

Additional Inherited Members

- Protected Attributes inherited from ilMailMimeTransportBase
PHPMailer $mailer
 

Detailed Description

Definition at line 21 of file class.ilMailMimeTransportSmtp.php.

Constructor & Destructor Documentation

◆ __destruct()

ilMailMimeTransportSmtp::__destruct ( )

Definition at line 39 of file class.ilMailMimeTransportSmtp.php.

40 {
41 try {
42 $this->mailer->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_OFF;
43 $this->mailer->smtpClose();
44 } catch (Throwable) {
45 }
46 }

Member Function Documentation

◆ onBeforeSend()

ilMailMimeTransportSmtp::onBeforeSend ( )
protected

Reimplemented from ilMailMimeTransportBase.

Definition at line 23 of file class.ilMailMimeTransportSmtp.php.

23 : void
24 {
25 $this->mailer->isSMTP();
26
27 $this->mailer->Host = $this->settings->get('mail_smtp_host', '');
28 $this->mailer->Port = (int) $this->settings->get('mail_smtp_port', '25');
29 if ($this->settings->get('mail_smtp_user', '') !== '') {
30 $this->mailer->SMTPAuth = true;
31 $this->mailer->Username = $this->settings->get('mail_smtp_user', '');
32 $this->mailer->Password = $this->settings->get('mail_smtp_password', '');
33 }
34 $this->mailer->SMTPSecure = $this->settings->get('mail_smtp_encryption', '');
35 $this->mailer->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_LOWLEVEL;
36 $this->mailer->SMTPKeepAlive = true;
37 }

References ILIAS\Repository\int(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: