Jump to content
Rahat_Arif

How to send mail from custom template to client authorized user email address.

Recommended Posts

First of all thank you all.

Is there any documnetation for how to send custom template  to Client Authorized user Email.

#SendEmail only send mail to client id. 

 

Share this post


Link to post
Share on other sites
Here is a example. 
$apiuser = 'user_with_api_access';
$template = 'Name of Your Template';
$clientid = '100';
$action = 'sendemail';
$data = array('messagename'=>$template, 'id'=>$clientid);
$result = localApi($action, $data, $apiuser);
if ($result['result'] != 'success') {
   print 'ERROR: '.$results['result'];
} else {
   print 'Mail sent successfully';
}

One clinet have some registered users that can logged in his client area and manage his account,invoice etc.

Now,  I created a Custom module that send mail from custom tempalte. 

But here you can can see they send by $clientid only not by $userid. 

How can i use SendEmail Api to send mail to clinet associate registered users???

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated