t.zak510 Posted June 27, 2017 Share Posted June 27, 2017 Hello, I need your help regarding Mail Send, when a time period is over, the status will change to "Release Payment To seller" at this point I want to trigger an email to be sent, I just need the syntax to send the email to my gmail account, here is the code public function setAwaitingButton($echo, $tr) { $url = self::$currentIndex.'&token='.$this->token.'&view'.$this->table.'&id_seller='.(int) $tr['id_seller'].'&id_cart='.(int) $tr['id_cart'].'&releasepayment=1'; $action = $this->l('Awaiting payment validation period'); if ($tr['pending_amount'] > 0) { if ($tr['is_order_shipped']) { $shippedDate = strtotime($tr['shipped_date']); $currentDate = strtotime(date('Y-m-d H:i:s')); $remainingDays = $currentDate - $shippedDate; $daysleft = round((($remainingDays/24)/60)/60); if ($daysleft > Configuration::get('MANGOPAY_ADMIN_TIME_HOLD')) { $disabled = ''; $action = $this->l('Release payment to seller'); I believe the mail send action must be injected at this line? } else { $disabled = 'disabled="disabled"'; } } else { $disabled = 'disabled="disabled"'; } } else { $disabled = 'disabled="disabled"'; $action = $this->l('Transfered Successfully'); } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now