Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Copyright 2010-2017 Horde LLC (http://www.horde.org/) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Copyright: 2010-2017 Horde LLC
License: http://www.horde.org/licenses/bsd New BSD License
File Size: 350 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Mail_Transport_Smtp:: (6 methods):
  __construct()
  send()
  getSMTPObject()
  addServiceExtensionParameter()
  disconnect()
  _error()


Class: Horde_Mail_Transport_Smtp  - X-Ref

SMTP implementation.

__construct(array $params = array()   X-Ref
Constructor.

param: array $params  Additional parameters:

send($recipients, array $headers, $body)   X-Ref
No description

getSMTPObject()   X-Ref
Connect to the SMTP server by instantiating a Net_SMTP object.

return: Net_SMTP  The SMTP object.

addServiceExtensionParameter($keyword, $value = null)   X-Ref
Add parameter associated with a SMTP service extension.

param: string $keyword  Extension keyword.
param: string $value    Any value the keyword needs.

disconnect()   X-Ref
Disconnect and destroy the current SMTP connection.

return: boolean True if the SMTP connection no longer exists.

_error($text, $error, $e_code)   X-Ref
Build a standardized string describing the current SMTP error.

param: string $text       Custom string describing the error context.
param: PEAR_Error $error  PEAR_Error object.
param: integer $e_code    Error code.