Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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.