Need sample email code to send email from module file
i have already used below code but its not working
Mail::Send(
(int) 1,
'in_transit',
'Module Installation',
array(
'{email}' => 'ok',//Configuration::get('PS_SHOP_EMAIL'), // sender email address
'{message}' => 'ok' // email content
),
'[email protected]',
'hm'.' '.'hm',
null,
null,
null,
null,
_PS_MAIL_DIR_,
null,
null
);
Any thoughts what is missing in the above code ?