OXID eShop CE  4.9.7
 All Classes Files Functions Variables Pages
oxEmail Class Reference
+ Inheritance diagram for oxEmail:
+ Collaboration diagram for oxEmail:

Public Member Functions

 __construct ()
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 send ()
 setSmtp ($oShop=null)
 sendOrderEmailToUser ($oOrder, $sSubject=null)
 sendOrderEmailToOwner ($oOrder, $sSubject=null)
 sendRegisterConfirmEmail ($oUser, $sSubject=null)
 sendRegisterEmail ($oUser, $sSubject=null)
 sendForgotPwdEmail ($sEmailAddress, $sSubject=null)
 sendContactMail ($sEmailAddress=null, $sSubject=null, $sMessage=null)
 sendNewsletterDbOptInMail ($oUser, $sSubject=null)
 sendNewsletterMail ($oNewsLetter, $oUser, $sSubject=null)
 sendSuggestMail ($oParams, $oProduct)
 sendInviteMail ($oParams)
 sendSendedNowMail ($oOrder, $sSubject=null)
 sendDownloadLinksMail ($oOrder, $sSubject=null)
 sendBackupMail ($aAttFiles, $sAttPath, $sEmailAddress, $sSubject, $sMessage, &$aStatus, &$aError)
 sendEmail ($sTo, $sSubject, $sBody)
 sendStockReminder ($aBasketContents, $sSubject=null)
 sendWishlistMail ($oParams)
 sendPriceAlarmNotification ($aParams, $oAlarm, $sSubject=null)
 sendPricealarmToCustomer ($sRecipient, $oAlarm, $sBody=null, $sReturnMailBody=null)
 setSubject ($sSubject=null)
 getSubject ()
 setBody ($sBody=null, $blClearSid=true)
 getBody ()
 setAltBody ($sAltBody=null, $blClearSid=true)
 getAltBody ()
 setRecipient ($sAddress=null, $sName=null)
 getRecipient ()
 clearAllRecipients ()
 setReplyTo ($sEmail=null, $sName=null)
 getReplyTo ()
 clearReplyTos ()
 setFrom ($sFromAddress, $sFromName=null)
 getFrom ()
 getFromName ()
 setCharSet ($sCharSet=null)
 setMailer ($sMailer=null)
 getMailer ()
 setHost ($sHost=null)
 getErrorInfo ()
 setMailWordWrap ($iWordWrap=null)
 setUseInlineImages ($blUseImages=null)
 addAttachment ($sAttPath, $sAttFile= '', $sEncoding= 'base64', $sType= 'application/octet-stream')
 addEmbeddedImage ($sFullPath, $sCid, $sAttFile= '', $sEncoding= 'base64', $sType= 'application/octet-stream')
 getAttachments ()
 clearAttachments ()
 headerLine ($sName, $sValue)
 getCharset ()
 getShop ()
 setShop ($oShop)
 getViewConfig ()
 getView ()
 getCurrency ()
 setViewData ($sKey, $sValue)
 getViewData ()
 getViewDataItem ($sKey)
 setUser ($oUser)
 getUser ()
 getOrderFileList ($sOrderId)

Public Attributes

 $SMTP_PORT = 25

Protected Member Functions

 _getSmarty ()
 _setSmtpProtocol ($sUrl)
 _isValidSmtpHost ($sSmtpHost)
 _getNewsSubsLink ($sId, $sConfirmCode=null)
 _includeImages ($sImageDir=null, $sImageDirNoSSL=null, $sDynImageDir=null, $sAbsImageDir=null, $sAbsDynImageDir=null)
 _getUseInlineImages ()
 _sendMailErrorMsg ()
 _addUserInfoOrderEMail ($oOrder)
 _addUserRegisterEmail ($oUser)
 _addForgotPwdEmail ($oShop)
 _addNewsletterDbOptInMail ($oUser)
 _clearMailer ()
 _setMailParams ($oShop=null)
 _getShop ($iLangId=null, $iShopId=null)
 _setSmtpAuthInfo ($sUserName=null, $sUserPassword=null)
 _setSmtpDebug ($blDebug=null)
 _setMailerPluginDir ()
 _makeOutputProcessing ()
 _sendMail ()
 _processViewArray ()

Protected Attributes

 $_sForgotPwdTemplate = "email/html/forgotpwd.tpl"
 $_sForgotPwdTemplatePlain = "email/plain/forgotpwd.tpl"
 $_sNewsletterOptInTemplate = "email/html/newsletteroptin.tpl"
 $_sNewsletterOptInTemplatePlain = "email/plain/newsletteroptin.tpl"
 $_sSuggestTemplate = "email/html/suggest.tpl"
 $_sSuggestTemplatePlain = "email/plain/suggest.tpl"
 $_sInviteTemplate = "email/html/invite.tpl"
 $_sInviteTemplatePlain = "email/plain/invite.tpl"
 $_sSenedNowTemplate = "email/html/ordershipped.tpl"
 $_sSenedNowTemplatePlain = "email/plain/ordershipped.tpl"
 $_sSendDownloadsTemplate = "email/html/senddownloadlinks.tpl"
 $_sSendDownloadsTemplatePlain = "email/plain/senddownloadlinks.tpl"
 $_sWishListTemplate = "email/html/wishlist.tpl"
 $_sWishListTemplatePlain = "email/plain/wishlist.tpl"
 $_sRegisterTemplate = "email/html/register.tpl"
 $_sRegisterTemplatePlain = "email/plain/register.tpl"
 $_sReminderMailTemplate = "email/html/owner_reminder.tpl"
 $_sOrderUserTemplate = "email/html/order_cust.tpl"
 $_sOrderUserPlainTemplate = "email/plain/order_cust.tpl"
 $_sOrderOwnerTemplate = "email/html/order_owner.tpl"
 $_sOrderOwnerPlainTemplate = "email/plain/order_owner.tpl"
 $_sOrderUserSubjectTemplate = "email/html/order_cust_subj.tpl"
 $_sOrderOwnerSubjectTemplate = "email/html/order_owner_subj.tpl"
 $_sOwnerPricealarmTemplate = "email/html/pricealarm_owner.tpl"
 $_sPricealamrCustomerTemplate = "email_pricealarm_customer.tpl"
 $_aShops = array()
 $_blInlineImgEmail = null
 $_aRecipients = array()
 $_aReplies = array()
 $_aAttachments = array()
 $_oSmarty = null
 $_aViewData = array()
 $_oShop = null
 $_sCharSet = null

Private Member Functions

 _clearSidFromBody ($sAltBody)

Detailed Description

Includes PHP mailer class. Mailing manager. Collects mailing configuration, other parameters, performs mailing functions (newsletters, ordering, registration emails, etc.).

Definition at line 13 of file oxemail.php.

Constructor & Destructor Documentation

oxEmail::__construct ( )

Class constructor.

Definition at line 266 of file oxemail.php.

Member Function Documentation

oxEmail::__call (   $sMethod,
  $aArgs 
)

Only used for convenience in UNIT tests by doing so we avoid writing extended classes for testing protected or private methods

Parameters
string$sMethodMethods name
array$aArgsArgument array
Exceptions
oxSystemComponentExceptionThrows an exception if the called method does not exist or is not accessible in current class
Returns
string

Definition at line 296 of file oxemail.php.

oxEmail::_addForgotPwdEmail (   $oShop)
protected

Does nothing, returns same object as passed to method. This method is called from oxemail::SendForgotPWDEMail() to do additional operation with shop object before sending email

Parameters
oxShop$oShopShop object
Returns
oxShop

Definition at line 1921 of file oxemail.php.

oxEmail::_addNewsletterDbOptInMail (   $oUser)
protected

Does nothing, returns same object as passed to method. This method is called from oxEmail::SendNewsletterDBOptInMail() to do additional operation with user object before sending email

Parameters
oxUser$oUserUser object
Returns
oxUser

Definition at line 1935 of file oxemail.php.

oxEmail::_addUserInfoOrderEMail (   $oOrder)
protected

Does nothing, returns same object as passed to method. This method is called from oxEmail::sendOrderEMailToUser() to do additional operation with order object before sending email

Parameters
oxOrder$oOrderOrdering object
Returns
oxOrder

Definition at line 1893 of file oxemail.php.

oxEmail::_addUserRegisterEmail (   $oUser)
protected

Does nothing, returns same object as passed to method. This method is called from oxEmail::SendRegisterEMail() to do additional operation with user object before sending email

Parameters
oxUser$oUserUser object
Returns
oxUser

Definition at line 1907 of file oxemail.php.

oxEmail::_clearMailer ( )
protected

Clears mailer settings (AllRecipients, ReplyTos, Attachments, Errors)

Definition at line 1943 of file oxemail.php.

oxEmail::_clearSidFromBody (   $sAltBody)
private

Performs search for "sid", removes it and adds shop id to string.

Parameters
string$sAltBodyBody.
Returns
string

Definition at line 2238 of file oxemail.php.

oxEmail::_getNewsSubsLink (   $sId,
  $sConfirmCode = null 
)
protected

Returns newsletter subscription link

Parameters
string$sIduser id
string$sConfirmCodeconfirmation code
Returns
string $sUrl

Definition at line 842 of file oxemail.php.

oxEmail::_getShop (   $iLangId = null,
  $iShopId = null 
)
protected

Get active shop and set global params for it If is set language parameter, load shop in given language

Parameters
int$iLangIdlanguage id
int$iShopIdshop id
Returns
oxShop

Definition at line 1980 of file oxemail.php.

oxEmail::_getSmarty ( )
protected

Smarty instance getter, assigns this oxEmail instance to "oEmailView" variable

Returns
smarty

Definition at line 340 of file oxemail.php.

oxEmail::_getUseInlineImages ( )
protected

Gets use inline images.

Returns
bool

Definition at line 1852 of file oxemail.php.

oxEmail::_includeImages (   $sImageDir = null,
  $sImageDirNoSSL = null,
  $sDynImageDir = null,
  $sAbsImageDir = null,
  $sAbsDynImageDir = null 
)
protected

Checks for external images and embeds them to email message if possible

Parameters
string$sImageDirImages directory url
string$sImageDirNoSSLImages directory url (no SSL)
string$sDynImageDirPath to Dyn images
string$sAbsImageDirAbsolute path to images
string$sAbsDynImageDirAbsolute path to Dyn images

Definition at line 1421 of file oxemail.php.

oxEmail::_isValidSmtpHost (   $sSmtpHost)
protected

Checks if smtp host is valid (tries to connect to it)

Parameters
string$sSmtpHostcurrently used smtp server host name
Returns
bool

Definition at line 471 of file oxemail.php.

oxEmail::_makeOutputProcessing ( )
protected

Process email body and alt body thought oxOutput. Calls oxOutput::processEmail() on class instance.

Definition at line 2039 of file oxemail.php.

oxEmail::_processViewArray ( )
protected

Process view data array through oxOutput processor

Definition at line 2073 of file oxemail.php.

oxEmail::_sendMail ( )
protected

Sends email via phpmailer.

Returns
bool

Definition at line 2052 of file oxemail.php.

oxEmail::_sendMailErrorMsg ( )
protected

Try to send error message when original mailing by smtp and via mail() fails

Returns
bool

Definition at line 1862 of file oxemail.php.

oxEmail::_setMailerPluginDir ( )
protected

Sets path to PHPMailer plugins

Definition at line 2030 of file oxemail.php.

oxEmail::_setMailParams (   $oShop = null)
protected

Set mail From, FromName, SMTP values

Parameters
oxShop$oShopShop object

Definition at line 1959 of file oxemail.php.

oxEmail::_setSmtpAuthInfo (   $sUserName = null,
  $sUserPassword = null 
)
protected

Sets smtp authentification parameters.

Parameters
string$sUserNamesmtp user
oxShop$sUserPasswordsmtp password

Definition at line 2010 of file oxemail.php.

oxEmail::_setSmtpDebug (   $blDebug = null)
protected

Sets SMTP class debugging on or off

Parameters
bool$blDebugshow debug info or not

Definition at line 2022 of file oxemail.php.

oxEmail::_setSmtpProtocol (   $sUrl)
protected

Sets smtp parameters depending on the protocol used returns smtp url which should be used for fsockopen

Parameters
string$sUrlinitial smtp
Returns
string

Definition at line 413 of file oxemail.php.

oxEmail::addAttachment (   $sAttPath,
  $sAttFile = '',
  $sEncoding = 'base64',
  $sType = 'application/octet-stream' 
)

Adds an attachment to mail from a path on the filesystem

Parameters
string$sAttPathpath to the attachment
string$sAttFileattachment name
string$sEncodingattachment encoding
string$sTypeattachment type
Returns
bool

Definition at line 1776 of file oxemail.php.

oxEmail::addEmbeddedImage (   $sFullPath,
  $sCid,
  $sAttFile = '',
  $sEncoding = 'base64',
  $sType = 'application/octet-stream' 
)

Adds an embedded attachment (check phpmail documentation for more details)

Parameters
string$sFullPathPath to the attachment.
string$sCidContent ID of the attachment. Use this to identify the Id for accessing the image in an HTML form.
string$sAttFileOverrides the attachment name.
string$sEncodingFile encoding (see $Encoding).
string$sTypeFile extension (MIME) type.
Returns
bool

Definition at line 1800 of file oxemail.php.

oxEmail::clearAllRecipients ( )

Clears all recipients assigned in the TO, CC and BCC array.

Definition at line 1601 of file oxemail.php.

oxEmail::clearAttachments ( )

Clears all attachments from mail.

Returns
null

Definition at line 1822 of file oxemail.php.

oxEmail::clearReplyTos ( )

Clears all recipients assigned in the ReplyTo array. Returns void.

Definition at line 1643 of file oxemail.php.

oxEmail::getAltBody ( )

Gets mail text-only body

Returns
string

Definition at line 1560 of file oxemail.php.

oxEmail::getAttachments ( )

Gets mail attachment.

Returns
array

Definition at line 1812 of file oxemail.php.

oxEmail::getBody ( )

Gets mail body

Returns
string

Definition at line 1531 of file oxemail.php.

oxEmail::getCharset ( )

Get mail charset

Returns
string

Definition at line 2096 of file oxemail.php.

oxEmail::getConfig ( )

oxConfig instance getter

Returns
oxConfig

Definition at line 315 of file oxemail.php.

oxEmail::getCurrency ( )

Get active shop currency

Returns
object

Definition at line 2150 of file oxemail.php.

oxEmail::getErrorInfo ( )

Gets mailing error info.

Returns
string

Definition at line 1740 of file oxemail.php.

oxEmail::getFrom ( )

Gets mail "from address" field.

Returns
string

Definition at line 1674 of file oxemail.php.

oxEmail::getFromName ( )

Gets mail "from name" field.

Returns
string

Definition at line 1684 of file oxemail.php.

oxEmail::getMailer ( )

Gets mail mailer.

Returns
string

Definition at line 1720 of file oxemail.php.

oxEmail::getOrderFileList (   $sOrderId)

Get order files

Parameters
string$sOrderIdorder id
Returns
oxOrderFileList

Definition at line 2219 of file oxemail.php.

oxEmail::getRecipient ( )

Gets recipients array. Returns array of recipients f.e. array( array('mail1.nosp@m.@mai.nosp@m.l1.co.nosp@m.m', 'user1Name'), array('mail2.nosp@m.@mai.nosp@m.l2.co.nosp@m.m', 'user2Name') )

Returns
array

Definition at line 1593 of file oxemail.php.

oxEmail::getReplyTo ( )

Gets array of users for which reply is used.

Returns
array

Definition at line 1635 of file oxemail.php.

oxEmail::getShop ( )

Get shop object

Returns
oxShop

Definition at line 2110 of file oxemail.php.

oxEmail::getSubject ( )

Gets mail subject

Returns
string

Definition at line 1505 of file oxemail.php.

oxEmail::getUser ( )

Get user

Returns
oxUser

Definition at line 2207 of file oxemail.php.

oxEmail::getView ( )

Get active view

Returns
object

Definition at line 2140 of file oxemail.php.

oxEmail::getViewConfig ( )

Gets viewConfig object

Returns
object

Definition at line 2130 of file oxemail.php.

oxEmail::getViewData ( )

Get view data

Returns
array

Definition at line 2173 of file oxemail.php.

oxEmail::getViewDataItem (   $sKey)

Get view data item

Parameters
string$sKeyview data array key
Returns
misc

Definition at line 2185 of file oxemail.php.

oxEmail::headerLine (   $sName,
  $sValue 
)

Inherited phpMailer function adding a header to email message. We override it to skip X-Mailer header.

Parameters
string$sNameheader name
string$sValueheader value
Returns
null

Definition at line 1838 of file oxemail.php.

oxEmail::send ( )

Outputs email fields thought email output processor, includes images, and initiate email sending If fails to send mail via SMTP, tries to send via mail(). On failing to send, sends mail to shop administrator about failing mail sending

Returns
bool

Definition at line 359 of file oxemail.php.

oxEmail::sendBackupMail (   $aAttFiles,
  $sAttPath,
  $sEmailAddress,
  $sSubject,
  $sMessage,
$aStatus,
$aError 
)

Sets mailer additional settings and sends backup data to user. Returns true on success.

Parameters
array$aAttFilesArray of file names to attach
string$sAttPathPath to files to attach
string$sEmailAddressEmail address
string$sSubjectEmail subject
string$sMessageEmail body message
array&$aStatusPointer to mailing status array
array&$aErrorPointer to error status array
Returns
bool

Definition at line 1156 of file oxemail.php.

oxEmail::sendContactMail (   $sEmailAddress = null,
  $sSubject = null,
  $sMessage = null 
)

Sets mailer additional settings and sends contact info mail to user. Returns true on success.

Parameters
string$sEmailAddressEmail address
string$sSubjectEmail subject
string$sMessageEmail message text
Returns
bool

Definition at line 771 of file oxemail.php.

oxEmail::sendDownloadLinksMail (   $oOrder,
  $sSubject = null 
)

Sets mailer additional settings and sends "SendDownloadLinks" mail to user. Returns true on success.

Parameters
oxOrder$oOrderorder object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 1088 of file oxemail.php.

oxEmail::sendEmail (   $sTo,
  $sSubject,
  $sBody 
)

Basic wrapper for email message sending with default parameters from the oxBaseShop. Returns true on success.

Parameters
mixed$sToRecipient or an array of the recipients
string$sSubjectMail subject
string$sBodyMail body
Returns
bool

Definition at line 1210 of file oxemail.php.

oxEmail::sendForgotPwdEmail (   $sEmailAddress,
  $sSubject = null 
)

Sets mailer additional settings and sends "forgot password" mail to user. Returns true on success.

Parameters
string$sEmailAddressuser email address
string$sSubjectuser defined subject [optional]
Returns
mixed true - success, false - user not found, -1 - could not send

Definition at line 703 of file oxemail.php.

oxEmail::sendInviteMail (   $oParams)

Sets mailer additional settings and sends "InviteMail" mail to user. Returns true on success.

Parameters
object$oParamsMailing parameters object
Returns
bool

Definition at line 958 of file oxemail.php.

oxEmail::sendNewsletterDbOptInMail (   $oUser,
  $sSubject = null 
)

Sets mailer additional settings and sends "NewsletterDBOptInMail" mail to user. Returns true on success.

Parameters
oxUser$oUseruser object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 799 of file oxemail.php.

oxEmail::sendNewsletterMail (   $oNewsLetter,
  $oUser,
  $sSubject = null 
)

Sets mailer additional settings and sends "newsletter" mail to user. Returns true on success.

Parameters
oxNewsletter$oNewsLetternewsletter object
oxUser$oUseruser object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 864 of file oxemail.php.

oxEmail::sendOrderEmailToOwner (   $oOrder,
  $sSubject = null 
)

Sets mailer additional settings and sends ordering mail to shop owner. Returns true on success.

Parameters
oxOrder$oOrderOrder object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 559 of file oxemail.php.

oxEmail::sendOrderEmailToUser (   $oOrder,
  $sSubject = null 
)

Sets mailer additional settings and sends ordering mail to user. Returns true on success.

Parameters
oxOrder$oOrderOrder object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 502 of file oxemail.php.

oxEmail::sendPriceAlarmNotification (   $aParams,
  $oAlarm,
  $sSubject = null 
)

Sends a notification to the shop owner that price alarm was subscribed. Returns true on success.

Parameters
array$aParamsParameters array
oxPriceAlarm$oAlarmoxPriceAlarm object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 1323 of file oxemail.php.

oxEmail::sendPricealarmToCustomer (   $sRecipient,
  $oAlarm,
  $sBody = null,
  $sReturnMailBody = null 
)

Sends price alarm to customer. Returns true on success.

Parameters
string$sRecipientemail
oxPriceAlarm$oAlarmoxPriceAlarm object
string$sBodyoptional mail body
bool$sReturnMailBodyreturns mail body instead of sending
Returns
bool

Definition at line 1367 of file oxemail.php.

oxEmail::sendRegisterConfirmEmail (   $oUser,
  $sSubject = null 
)

Sets mailer additional settings and sends registration mail to user. Returns true on success.

Parameters
oxUser$oUseruser object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 643 of file oxemail.php.

oxEmail::sendRegisterEmail (   $oUser,
  $sSubject = null 
)

Sets mailer additional settings and sends registration mail to user. Returns true on success.

Parameters
oxUser$oUseruser object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 663 of file oxemail.php.

oxEmail::sendSendedNowMail (   $oOrder,
  $sSubject = null 
)

Sets mailer additional settings and sends "SendedNowMail" mail to user. Returns true on success.

Parameters
oxOrder$oOrderorder object
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 1022 of file oxemail.php.

oxEmail::sendStockReminder (   $aBasketContents,
  $sSubject = null 
)

Sends reminder email to shop owner.

Parameters
array$aBasketContentsarray of objects to pass to template
string$sSubjectuser defined subject [optional]
Returns
bool

Definition at line 1242 of file oxemail.php.

oxEmail::sendSuggestMail (   $oParams,
  $oProduct 
)

Sets mailer additional settings and sends "SuggestMail" mail to user. Returns true on success.

Parameters
object$oParamsMailing parameters object
object$oProductProduct object
Returns
bool

Definition at line 901 of file oxemail.php.

oxEmail::sendWishlistMail (   $oParams)

Sets mailer additional settings and sends "WishlistMail" mail to user. Returns true on success.

Parameters
object$oParamsMailing parameters object
Returns
bool

Definition at line 1283 of file oxemail.php.

oxEmail::setAltBody (   $sAltBody = null,
  $blClearSid = true 
)

Sets text-only body of the message. If second parameter is set to true, performs search for "sid", removes it and adds shop id to string.

Parameters
string$sAltBodymail subject
bool$blClearSidclear sid in mail body (default value is true)

Definition at line 1543 of file oxemail.php.

oxEmail::setBody (   $sBody = null,
  $blClearSid = true 
)

Set mail body. If second parameter (default value is true) is set to true, performs search for "sid", removes it and adds shop id to string.

Parameters
string$sBodymail body
bool$blClearSidclear sid in mail body

Definition at line 1517 of file oxemail.php.

oxEmail::setCharSet (   $sCharSet = null)

Sets mail charset. If $sCharSet is not defined, sets charset from translation file.

Parameters
string$sCharSetemail charset

Definition at line 1695 of file oxemail.php.

oxEmail::setConfig (   $oConfig)

oxConfig instance setter

Parameters
oxConfig$oConfigconfig object

Definition at line 329 of file oxemail.php.

oxEmail::setFrom (   $sFromAddress,
  $sFromName = null 
)

Sets mail from address and name.

Parameters
string$sFromAddressemail address
string$sFromNameuser name

Definition at line 1655 of file oxemail.php.

oxEmail::setHost (   $sHost = null)

Sets smtp host.

Parameters
string$sHostsmtp host

Definition at line 1730 of file oxemail.php.

oxEmail::setMailer (   $sMailer = null)

Sets mail mailer. Set to send mail via smtp, mail() or sendmail.

Parameters
string$sMaileremail mailer

Definition at line 1710 of file oxemail.php.

oxEmail::setMailWordWrap (   $iWordWrap = null)

Sets word wrapping on the body of the message to a given number of characters

Parameters
int$iWordWrapword wrap

Definition at line 1751 of file oxemail.php.

oxEmail::setRecipient (   $sAddress = null,
  $sName = null 
)

Sets mail recipient to recipients array

Parameters
string$sAddressrecipient email address
string$sNamerecipient name

Definition at line 1571 of file oxemail.php.

oxEmail::setReplyTo (   $sEmail = null,
  $sName = null 
)

Sets user address and name to "reply to" array. On error (wrong email) default shop email is added as a reply address. Returns array of recipients f.e. array( array('mail1.nosp@m.@mai.nosp@m.l1.co.nosp@m.m', 'user1Name'), array('mail2.nosp@m.@mai.nosp@m.l2.co.nosp@m.m', 'user2Name') )

Parameters
string$sEmailemail address
string$sNameuser name

Definition at line 1616 of file oxemail.php.

oxEmail::setShop (   $oShop)

Set shop object

Parameters
oxShop$oShopshop object

Definition at line 2120 of file oxemail.php.

oxEmail::setSmtp (   $oShop = null)

Sets SMTP mailer parameters, such as user name, password, location.

Parameters
oxShop$oShopObject, that keeps base shop info
Returns
null

Definition at line 439 of file oxemail.php.

oxEmail::setSubject (   $sSubject = null)

Sets mail subject

Parameters
string$sSubjectmail subject

Definition at line 1492 of file oxemail.php.

oxEmail::setUseInlineImages (   $blUseImages = null)

Sets use inline images. If true, images will be embedded into mail.

Parameters
bool$blUseImagesembed or not images into mail

Definition at line 1761 of file oxemail.php.

oxEmail::setUser (   $oUser)

Set user to view data

Parameters
oxUser$oUseruser object

Definition at line 2197 of file oxemail.php.

oxEmail::setViewData (   $sKey,
  $sValue 
)

Set view data to email view.

Parameters
string$sKeykey value
object$sValueitem value

Definition at line 2163 of file oxemail.php.

Member Data Documentation

oxEmail::$_aAttachments = array()
protected

Definition at line 233 of file oxemail.php.

oxEmail::$_aRecipients = array()
protected

Definition at line 219 of file oxemail.php.

oxEmail::$_aReplies = array()
protected

Definition at line 226 of file oxemail.php.

oxEmail::$_aShops = array()
protected

Definition at line 205 of file oxemail.php.

oxEmail::$_aViewData = array()
protected

Definition at line 247 of file oxemail.php.

oxEmail::$_blInlineImgEmail = null
protected

Definition at line 212 of file oxemail.php.

oxEmail::$_oShop = null
protected

Definition at line 254 of file oxemail.php.

oxEmail::$_oSmarty = null
protected

Definition at line 240 of file oxemail.php.

oxEmail::$_sCharSet = null
protected

Definition at line 261 of file oxemail.php.

oxEmail::$_sForgotPwdTemplate = "email/html/forgotpwd.tpl"
protected

Definition at line 28 of file oxemail.php.

oxEmail::$_sForgotPwdTemplatePlain = "email/plain/forgotpwd.tpl"
protected

Definition at line 35 of file oxemail.php.

oxEmail::$_sInviteTemplate = "email/html/invite.tpl"
protected

Definition at line 70 of file oxemail.php.

oxEmail::$_sInviteTemplatePlain = "email/plain/invite.tpl"
protected

Definition at line 77 of file oxemail.php.

oxEmail::$_sNewsletterOptInTemplate = "email/html/newsletteroptin.tpl"
protected

Definition at line 42 of file oxemail.php.

oxEmail::$_sNewsletterOptInTemplatePlain = "email/plain/newsletteroptin.tpl"
protected

Definition at line 49 of file oxemail.php.

oxEmail::$_sOrderOwnerPlainTemplate = "email/plain/order_owner.tpl"
protected

Definition at line 168 of file oxemail.php.

oxEmail::$_sOrderOwnerSubjectTemplate = "email/html/order_owner_subj.tpl"
protected

Definition at line 184 of file oxemail.php.

oxEmail::$_sOrderOwnerTemplate = "email/html/order_owner.tpl"
protected

Definition at line 161 of file oxemail.php.

oxEmail::$_sOrderUserPlainTemplate = "email/plain/order_cust.tpl"
protected

Definition at line 154 of file oxemail.php.

oxEmail::$_sOrderUserSubjectTemplate = "email/html/order_cust_subj.tpl"
protected

Definition at line 177 of file oxemail.php.

oxEmail::$_sOrderUserTemplate = "email/html/order_cust.tpl"
protected

Definition at line 147 of file oxemail.php.

oxEmail::$_sOwnerPricealarmTemplate = "email/html/pricealarm_owner.tpl"
protected

Definition at line 191 of file oxemail.php.

oxEmail::$_sPricealamrCustomerTemplate = "email_pricealarm_customer.tpl"
protected

Definition at line 198 of file oxemail.php.

oxEmail::$_sRegisterTemplate = "email/html/register.tpl"
protected

Definition at line 126 of file oxemail.php.

oxEmail::$_sRegisterTemplatePlain = "email/plain/register.tpl"
protected

Definition at line 133 of file oxemail.php.

oxEmail::$_sReminderMailTemplate = "email/html/owner_reminder.tpl"
protected

Definition at line 140 of file oxemail.php.

oxEmail::$_sSendDownloadsTemplate = "email/html/senddownloadlinks.tpl"
protected

Definition at line 98 of file oxemail.php.

oxEmail::$_sSendDownloadsTemplatePlain = "email/plain/senddownloadlinks.tpl"
protected

Definition at line 105 of file oxemail.php.

oxEmail::$_sSenedNowTemplate = "email/html/ordershipped.tpl"
protected

Definition at line 84 of file oxemail.php.

oxEmail::$_sSenedNowTemplatePlain = "email/plain/ordershipped.tpl"
protected

Definition at line 91 of file oxemail.php.

oxEmail::$_sSuggestTemplate = "email/html/suggest.tpl"
protected

Definition at line 56 of file oxemail.php.

oxEmail::$_sSuggestTemplatePlain = "email/plain/suggest.tpl"
protected

Definition at line 63 of file oxemail.php.

oxEmail::$_sWishListTemplate = "email/html/wishlist.tpl"
protected

Definition at line 112 of file oxemail.php.

oxEmail::$_sWishListTemplatePlain = "email/plain/wishlist.tpl"
protected

Definition at line 119 of file oxemail.php.

oxEmail::$SMTP_PORT = 25

Definition at line 21 of file oxemail.php.


The documentation for this class was generated from the following file: