[ Index ]

PHP Cross Reference of MyBB 1.8.37

title

Body

[close]

/inc/mailhandlers/ -> smtp.php (summary)

MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved Website: http://www.mybb.com License: http://www.mybb.com/about/license

File Size: 604 lines (12 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SmtpMail:: (12 methods):
  __construct()
  send()
  connect()
  auth()
  get_data()
  connected()
  send_data()
  check_status()
  close()
  get_error()
  set_error()
  cram_md5_response()


Class: SmtpMail  - X-Ref

__construct()   X-Ref
Whether to use TLS encryption.

send()   X-Ref
Sends the email.
return: bool whether or not the email got sent or not.

connect()   X-Ref
Connect to the SMTP server.
return: boolean True if connection was successful

auth($auth_methods)   X-Ref
Authenticate against the SMTP server.
return: boolean True on success
param: string $auth_methods A list of authentication methods supported by the server

get_data()   X-Ref
Fetch data from the SMTP server.
return: string The data from the SMTP server

connected()   X-Ref
Check if we're currently connected to an SMTP server
return: boolean true if connected

send_data($data, $status_num = false)   X-Ref
Send data through to the SMTP server.
return: boolean True on success
param: string $data The data to be sent
param: int|bool $status_num The response code expected back from the server (if we have one)

check_status($status_num)   X-Ref
Checks if the received status code matches the one we expect.
return: string|bool
param: int $status_num The status code we expected back from the server

close()   X-Ref
Close the connection to the SMTP server.

get_error()   X-Ref
Get the last error message response from the SMTP server
return: string The error message response from the SMTP server

set_error($error)   X-Ref
Set the last error message response from the SMTP server
param: string $error The error message response

cram_md5_response($password, $challenge)   X-Ref
Generate a CRAM-MD5 response from a server challenge.
return: string CRAM-MD5 response.
param: string $password Password.
param: string $challenge Challenge sent from SMTP server.



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref