Jump to content

Email in Module


Recommended Posts

hello

 

take a look how it works in mailalerts module

 

 

there is a subdirectory with mail templates like /mails/en/ maile/gb/ etc.

you can find mails there

 

and in module php code, to send an email,  this module uses Mail function:

Mail::Send(
					$id_lang,
					$template,
					sprintf(Mail::l('New order - #%06d', $id_lang), $order->id),
					$template_vars,
					$merchant_mail,
					null,
					$configuration['PS_SHOP_EMAIL'],
					$configuration['PS_SHOP_NAME'],
					null,
					null,
					dirname(__FILE__).'/mails/',
					null,
					$id_shop
				);
Link to comment
Share on other sites

×
×
  • Create New...