Jump to content

send email from hooks


Andrey

Recommended Posts

Please help me!

I want to send an email to clients from the my hook.

Where I have to specify the email address of the client?

what is the id?

 

 <?php

# Set Vars
$command = 'SendEmail';
$values = array( 'messagename' => 'Test Template', 'id' => '1', );
$adminuser = 'DemoAdmin';

# Call API
$results = localAPI($command,$values,$adminuser);
if ($results['result']!="success") echo "An Error Occurred: ".$results['result'];

?>

Link to comment
Share on other sites

Do I understand correctly ID it is a client ID in the system

What other values ​​should be in the array?

From mail template? or other?

 

I need to send messages to customers.

Edited by Andrey
Link to comment
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