Zend_Mail
└─Radria_Emailer
public class Radria_Emailer
extends Zend_Mail
| Field Summary | |
|---|---|
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| mixed | |
| Method Summary | |
|---|---|
| void | appendBody(mixed str) |
| void | appendBodyHtml(mixed str) |
| void | attachFile(mixed file, mixed filename, sqlConnect conx, string templatename) Set a file to be attach to the email message. |
| void | cleanup() cleanup Cleanup a message so an other message can be sent. |
| void | eventSendTemplateEmail(EventControler eventcontroler, email string, email_template name, fields array) eventSendTemplateEmail eventaction that uses a template to send an email. |
| void | fusion(sqlConnect query) Merge and send an email message with the content of an executed sqlQuery . |
| void | getBody() |
| Array | getField(String template) Load the field in the field attribute from the HTML template. |
| void | |
| void | |
| void | |
| void | |
| void | hasHtml(mixed bool) |
| void | loadEmailer(mixed conx, mixed templatename) |
| void | mergeArray(mixed fields_values, $fields_values Array) mergeArray() Merge an Array with a currently loaded email template |
| void | prependBody(mixed str) |
| void | prependBodyHtml(mixed str) |
| void | sendMailHtml(string email, string subject, string body, string bodyhtml, string headini) Send an email with a text and html version |
| void | sendMailJoin(string email, string subject, string body, string file, string filename, string headini) Send an email with a file attach |
| void | sendMailStandard(string email, string subject, string body, string header) Send a standard text email |
| void | sendMergeArray(mixed fields_values, str email, array field_value) sendMergeArray() if the email parameter is not set the array parameter requires an email key with the email to send the message to. |
| void | sendMergeQuery(sqlQuery query, $query an) mergeQuery() Does the same as fusion() but using the new naming convention for consistancy with mergetArray(); Its a more elegant got but with a small performance hit. |
| void | setBody(mixed bodytxt) setBody Deprecate use setBodyText() instead. |
| void | setEmailTemplate(string templatename, mixed conx, mix sqlConnect) setEmailTemplate load an instance of an email message to be sent or merged Loading the template directly from the database should not be used anymore, its keeped for compatiblity reason. |
| bool | Set the Header it create the header of the message if the sender is set. |
| void | setSender(string name, string email) Set the sender of the email message This is deprecate use setFrom() instead. |
| void | setTemplateBodyHtml(mixed bodyhtml) |
| void | setTemplateBodyText(mixed body) |
| void | setTemplateSubject(mixed subject) |
| string | stringFusion(mixed thestring, array values, string with) The secret sauce. |
| void | validateEmail(string email) Check if the email as an existing domain name. |
public mixed $cfgEmailField = "email"
public mixed $cfgTemplateTable = "emailtemplate"
public mixed $file
public mixed $filename
public mixed $has_html = false
public mixed $header
public mixed $mBody
public mixed $mBodyHtml
public mixed $mSenderEmail
public mixed $mSenderName
public mixed $mSubject
public mixed $sql_order
public mixed $sql_query
public void appendBody(mixed str)
public void appendBodyHtml(mixed str)
public void attachFile(mixed file, mixed filename, sqlConnect conx, string templatename)
Set a file to be attach to the email message.
public void cleanup()
cleanup Cleanup a message so an other message can be sent.
public void eventSendTemplateEmail(EventControler eventcontroler, email string, email_template name, fields array)
eventSendTemplateEmail eventaction that uses a template to send an email. requires template name, email to send to and optional array of data to merge.
public void fusion(sqlConnect query)
Merge and send an email message with the content of an executed sqlQuery . This one is deprecate, use the sendMergeQuery() instead.
public void getBody()
public Array getField(String template)
Load the field in the field attribute from the HTML template. get Table Field could be used instead but it will not get the extra fields and multiple tables fields
public void getNumberOfEmailSent()
public void getTemplateBodyHtml()
public void getTemplateBodyText()
public void getTemplateSubject()
public void hasHtml(mixed bool)
public void loadEmailer(mixed conx, mixed templatename)
public void mergeArray(mixed fields_values, $fields_values Array)
mergeArray() Merge an Array with a currently loaded email template
public void prependBody(mixed str)
public void prependBodyHtml(mixed str)
public void sendMailHtml(string email, string subject, string body, string bodyhtml, string headini)
Send an email with a text and html version
public void sendMailJoin(string email, string subject, string body, string file, string filename, string headini)
Send an email with a file attach
public void sendMailStandard(string email, string subject, string body, string header)
Send a standard text email
public void sendMergeArray(mixed fields_values, str email, array field_value)
sendMergeArray() if the email parameter is not set the array parameter requires an email key with the email to send the message to.
public void sendMergeQuery(sqlQuery query, $query an)
mergeQuery() Does the same as fusion() but using the new naming convention for consistancy with mergetArray(); Its a more elegant got but with a small performance hit. fusion() is just keeped for high performance needs.
public void setBody(mixed bodytxt)
setBody Deprecate use setBodyText() instead.
public void setEmailTemplate(string templatename, mixed conx, mix sqlConnect)
setEmailTemplate load an instance of an email message to be sent or merged Loading the template directly from the database should not be used anymore, its keeped for compatiblity reason.
public bool setHeader()
Set the Header it create the header of the message if the sender is set.
public void setSender(string name, string email)
Set the sender of the email message This is deprecate use setFrom() instead.
public void setTemplateBodyHtml(mixed bodyhtml)
public void setTemplateBodyText(mixed body)
public void setTemplateSubject(mixed subject)
public string stringFusion(mixed thestring, array values, string with)
The secret sauce. Take a string, extract the fields in [] and replace the fields in [] with their respective values from the $values array.
public void validateEmail(string email)
Check if the email as an existing domain name.
Radria_Emailer Class Used to Send Emails using email templates with merge capabilities.
Its compatible with the older Emailer.class.php but its based on the Zend_Mail http://framework.zend.com