Jump to content

Need sample email code to send email from module file


Hamendra Sunthwal

Recommended Posts

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 ?

Edited by Hamendra Sunthwal (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...