Jump to content

Where is the mail script located?


Recommended Posts

In Prestashop there is the class Mail to work with mails, which is available in a standard folder with all “classes”. Mail is the basic class, but it uses the “Swift” library that is activated in the file with class description. Mail class has only three methods, all being static, i.e you can use them without class instance creation.

The methods are:

  • Mail :: Send – it sends messages using templates.

Method parameters:

($id_lang, $template, $subject, $templateVars, $to,

$toName = null, $from = null, $fromName = null, $fileAttachment = null, $modeSMTP = null, $templatePath = _PS_MAIL_DIR_, $die = false)

To read more, visit BelVG blog.

Regards BelVG Team

Link to comment
Share on other sites

×
×
  • Create New...