Class MagratheaEmail
MagratheaEmail: function that manages e-mail sends, building headers and sending e-mails
Methods summary
public
|
|
public
object
|
#
getError( )
if an error happened, it's this way you're gonna get it!
if an error happened, it's this way you're gonna get it!
Returns
object error on mail sending...
|
public
|
#
startSMTP( array $smtp )
if we want to use a different SMTP, it should be set here.
The format of the SMTP is:
array(["smtp_host"] => "", ["smtp_port"] => "", ["smtp_username"] => "", ["smtp_password"] => "")
if we want to use a different SMTP, it should be set here.
The format of the SMTP is: array(["smtp_host"] => "", ["smtp_port"] => "", ["smtp_username"] => "", ["smtp_password"] => "")
Deprecated
for smtp, you should use PEAR library
Parameters
- $smtp
- SMTP for use, in the format above
Returns
$this itself
|
public
|
#
setTo( string $var )
Who's the guy(s) you have been contacting, huh?
Who's the guy(s) you have been contacting, huh?
Parameters
Returns
$this itself
|
public
|
#
setReplyTo( string $var )
Who should be replied?
Parameters
Returns
$this itself
|
public
|
#
setFrom( string $from, string $reply = "" )
Who are you pretending to be?
Who are you pretending to be?
Parameters
- $from
- e-mail 'from'
- $reply
- e-mail 'reply-to' (same as
setReplyTo ) optional
Returns
$this itself
|
public
|
#
setSubject( string $subject )
What the fuck are we talking about?
What the fuck are we talking about?
Parameters
Returns
$this itself
|
public
|
#
setNewEmail( string $to, string $from, string $subject )
Ok, I'm in a hurry and don't want to set everything...
can you give me all of this in a single function?
YES, I CAN!
Ok, I'm in a hurry and don't want to set everything...
can you give me all of this in a single function? YES, I CAN!
Parameters
- $to
- destination e-mail
- $from
- origin e-mail
- $subject
- subject
Returns
$this itself
|
public
|
#
setHTMLMessage( string $message )
Set Message as HTML
Parameters
Returns
$this itself
|
public
|
#
setTXTMessage( string $message )
Set Message as TXT
Parameters
Returns
$this itself
|
public
boolean
|
#
send( )
now we send it!
Returns
boolean true on e-mail sent, false if we have any error
|
Magic methods summary