Bank transfer payment mailing notification

  • Posts: 107
  • Thank you received: 1
11 years 11 months ago #81867

Hi there,

In the payment method "Bank Transfer", I hope it will also send an email to remind the customer about the account info.

Thus, I go to "banktransfer_end.php" but have no idea how and where should I insert some codes in order to send an email to the customer.

I found out joomla seems to have its own api? like the following?

jimport( 'joomla.utilities.utility' );

function sendMail($from, $fromname, $recipient, $subject, $body, $mode=0, $cc=null, $bcc=null, $attachment=null, $replyto=null, $replytoname=null)
        {
                // Get a JMail instance
                $mail = &JFactory::getMailer();
 
                $mail->setSender(array($from, $fromname));
                $mail->setSubject($subject);
                $mail->setBody($body);
 
                // Are we sending the email as HTML?
                if ($mode) {
                        $mail->IsHTML(true);
                }
 
                $mail->addRecipient($recipient);
                $mail->addCC($cc);
                $mail->addBCC($bcc);
                $mail->addAttachment($attachment);
 
                // Take care of reply email addresses
                if (is_array($replyto)) {
                        $numReplyTo = count($replyto);
                        for ($i=0; $i < $numReplyTo; $i++){
                                $mail->addReplyTo(array($replyto[$i], $replytoname[$i]));
                        }
                } elseif (isset($replyto)) {
                        $mail->addReplyTo(array($replyto, $replytoname));
                }
 
                return  $mail->Send();
        }



I tried to use the above code but failed. The page just died.

Can you help me on how to send an email to the customer, and include the following two info?

(1) The bank account of the shop owner.

(2) A web-link that the customer should go and fill up some data after he/she has completed the money transfer.


Thank you so much. :)

Last edit: 11 years 11 months ago by tinachou.

Please Log in or Create an account to join the conversation.

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #82005

Hi,

There is already an email sent to the user when the order is created. You can simply add the text you want to the email:
www.hikashop.com/en/forum/4-how-to/20596...transfer-plugin.html
You could also add a link to the contact form of Joomla in order for the user to notify you that he completed the transfer.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum