Jump to content

email send problem in prestashop


Recommended Posts

Hello!

 

My question is I want to send an email in prestashop but I can`t send any email because I already got error message.

 

here is my code:

 

 

if (Mail::Send(intval(self::$cookie->id_lang), 'rec_site', Mail::l("Prietenul tau {$from_name} iti recomanda Babyshops"), array('{email}' =>$_POST['from_mail'], '{message}' => $message),$to_mail, $to_name,$from_mail,$from_name

))

{

self::$smarty->assign('mail_sent',1);

}

 

else{

self::$smarty->assign('mail_sent',0);

$this->errors[]=Tools::displayError('Error sending mail');

 

 

}

I don`t know the problem is in my code or I must configure something in prestashop.

 

Please help!!

 

Thank you Laszlo

Link to comment
Share on other sites

×
×
  • Create New...