Overview

Packages

  • Jyxo_Beholder
  • Jyxo_Charset
  • Jyxo_Color
  • Jyxo_Css
  • Jyxo_ErrorHandling
  • Jyxo_FirePhp
  • Jyxo_Gettext
    • Parser
  • Jyxo_Html
  • Jyxo_Input
    • Chain
    • Filter
    • Validator
  • Jyxo_Mail
    • Email
    • Parser
    • Sender
  • Jyxo_Rpc
    • Json
    • Xml
  • Jyxo_Shell
  • Jyxo_SpamFilter
  • Jyxo_Spl
  • Jyxo_String
  • Jyxo_Svn
  • Jyxo_Time
  • Jyxo_Timer
  • Jyxo_Webdav
  • Jyxo_XmlReader
  • PHP

Classes

  • Jyxo_Mail_Sender
  • Jyxo_Mail_Sender_Result
  • Jyxo_Mail_Sender_Smtp

Exceptions

  • Jyxo_Mail_Sender_CreateException
  • Jyxo_Mail_Sender_Exception
  • Jyxo_Mail_Sender_RecipientUnknownException
  • Jyxo_Mail_Sender_SmtpException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Jyxo_Mail_Sender_Smtp

Class for sending emails using a SMTP server. Works in combination with Jyxo_Mail_Sender.

Category: Jyxo
Package: Jyxo_Mail
Subpackage: Sender
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jaroslav HanslĂ­k
Located at Mail/Sender/Smtp.php
Methods summary
public
# __construct( string $host = 'localhost', integer $port = 25, string $helo = 'localhost', integer $timeout = 5 )

Creates an instance.

Creates an instance.

Parameters

$host
string
Server hostname
$port
integer
Server port
$helo
string
HELO value
$timeout
integer
Connection timeout
public
# __destruct( )

Destroys an instance and disconnects from the server.

Destroys an instance and disconnects from the server.

public Jyxo_Mail_Sender_Smtp
# connect( )

Connects to the SMTP server.

Connects to the SMTP server.

Returns

Jyxo_Mail_Sender_Smtp

Throws

Jyxo_Mail_Sender_SmtpException
If a connection error occurs
public Jyxo_Mail_Sender_Smtp
# disconnect( )

Disconnects from server.

Disconnects from server.

Returns

Jyxo_Mail_Sender_Smtp
public Jyxo_Mail_Sender_Smtp
# auth( string $user, string $password )

Connects to the server using a username and password.

Connects to the server using a username and password.

Parameters

$user
string
Username
$password
string
Password

Returns

Jyxo_Mail_Sender_Smtp

Throws

Jyxo_Mail_Sender_SmtpException
On authentication error
public Jyxo_Mail_Sender_Smtp
# from( string $from )

Sets the sender.

Sets the sender.

Parameters

$from
string
Sender

Returns

Jyxo_Mail_Sender_Smtp
public Jyxo_Mail_Sender_Smtp
# recipient( string $recipient )

Adds a recipient.

Adds a recipient.

Parameters

$recipient
string
Recipient

Returns

Jyxo_Mail_Sender_Smtp
public Jyxo_Mail_Sender_Smtp
# data( string $header, string $body )

Sends email headers and body.

Sends email headers and body.

Parameters

$header
string
Headers
$body
string
Body

Returns

Jyxo_Mail_Sender_Smtp

Throws

Jyxo_Mail_Sender_SmtpException
On data sending error
public Jyxo_Mail_Sender_Smtp
# reset( )

Resets previous commands.

Resets previous commands.

Returns

Jyxo_Mail_Sender_Smtp
Constants summary
string LINE_END "\r\n"
#

Line endings.

Line endings.

Jyxo PHP Library API documentation generated by ApiGen 2.3.0