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/) 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.