ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMailMimeTransportSmtp Class Reference

Class ilMailMimeTransportSmtp. More...

+ Inheritance diagram for ilMailMimeTransportSmtp:
+ Collaboration diagram for ilMailMimeTransportSmtp:

Protected Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from ilMailMimeTransportBase
 __construct (\ilSetting $settings, \ilAppEventHandler $eventHandler)
 ilMailMimeTransportBase constructor. More...
 
 send (\ilMimeMail $mail)
 
Parameters
ilMimeMail$mail
Returns
bool
More...
 
- Protected Attributes inherited from ilMailMimeTransportBase
 $mailer
 
 $settings
 

Detailed Description

Class ilMailMimeTransportSmtp.

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

Member Function Documentation

◆ onBeforeSend()

ilMailMimeTransportSmtp::onBeforeSend ( )
protected

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

References settings().

13  {
14  $this->mailer->isSMTP();
15 
16  $this->mailer->Host = $this->settings->get('mail_smtp_host');
17  $this->mailer->Port = (int) $this->settings->get('mail_smtp_port');
18  if (strlen($this->settings->get('mail_smtp_user')) > 0) {
19  $this->mailer->SMTPAuth = true;
20  $this->mailer->Username = $this->settings->get('mail_smtp_user');
21  $this->mailer->Password = $this->settings->get('mail_smtp_password');
22  }
23  $this->mailer->SMTPSecure = $this->settings->get('mail_smtp_encryption');
24  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

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