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/) Copyright (c) 2010 Gerd Schaufelberger 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
Copyright: 2010 Gerd Schaufelberger
License: http://www.horde.org/licenses/bsd New BSD License
File Size: 362 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Mail_Transport_Smtpmx:: (6 methods):
  __construct()
  __destruct()
  send()
  _getMx()
  _loadNetDns()
  _error()


Class: Horde_Mail_Transport_Smtpmx  - X-Ref

SMTP MX implementation.

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

param: array $params  Additional options:

__destruct()   X-Ref
Destructor implementation to ensure that we disconnect from any
potentially-alive persistent SMTP connections.


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

_getMx($host)   X-Ref
Recieve MX records for a host.

param: string $host  Mail host.
return: mixed  Sorted MX list or false on error.

_loadNetDns()   X-Ref
Initialize Net_DNS2_Resolver.


_error($id, $info = array()   X-Ref
Format error message.

param: string $id   Maps error ids to codes and message.
param: array $info  Optional information in associative array.