Copyright 2009, Markus Hedlund, Mimmin AB, www.mimmin.com Licensed under The MIT License Redistributions of files must retain the above copyright notice.
Constants for configuration are:
POSTMARKAPP_API_KEY
POSTMARKAPP_MAIL_FROM_ADDRESS
POSTMARKAPP_MAIL_FROM_NAME
[optional]
POSTMARKAPP_MAIL_FROM_ADDRESS
may be omitted, if method from()
is called.
Mail_Postmark::compose()
->to('[email protected]', 'Name')
->subject('Subject')
->messagePlain('Plaintext message')
->send();
or:
$email = new Mail_Postmark();
$email->to('[email protected]', 'Name')
->subject('Subject')
->messagePlain('Plaintext message')
->send();
Call method debug(Mail_Postmark::DEBUG_VERBOSE)
or
debug(Mail_Postmark::DEBUG_RETURN)
to enable debug mode.
DEBUG_VERBOSE
prints debug info and DEBUG_RETURN
makes
send()
return debug info as an array.