Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • DateTime
  • Directory
  • File
  • Image
  • Mailer
  • SQL
  • YAML

Class Mailer

Contains helper methods concerned with sending email.

Namespace: Core\Helpers
Located at helpers/mailer.php

Methods summary

public static boolean
# send( array $params, boolean $auth = true )

Sends an email via standard Unix /usr/bin/sendmail.

Sends an email via standard Unix /usr/bin/sendmail.

Parameters

$params
Array containing the sender, receiver, and mail content details.
$auth
Enable authentication (only applicable for SMTP mailer type).

Returns

boolean
Result TRUE if the email was successfully sent, FALSE otherwise.
private static boolean
# processSendmail( array $params )

Sends email via standard PHP mailer.

Sends email via standard PHP mailer.

Parameters

$params
Sending parameters.

Returns

boolean
Result TRUE if the email was successfully sent, FALSE otherwise.
private static boolean
# processSmtp( array $params, boolean $auth = true )

Sends email via SMTP Mail Server.

Sends email via SMTP Mail Server.

Parameters

$params
Sending parameters.
$auth
Flag for usage of SMTP authentication or not.

Returns

boolean
Result TRUE if the email was successfully sent, FALSE otherwise.

Uses

Core\Config()
private static boolean
# processEmail( PHPMailer $mail, array $params )

Process email.

Process email.

Parameters

$mail
PHPMailer object.
$params
Sending parameters.

Returns

boolean
Result TRUE if the email was successfully sent, FALSE otherwise.

Uses

Core\Config()
Silla.IO API API documentation generated by ApiGen