Difference between revisions of "Send Email API Function"
From TMM Wiki
Jump to navigationJump to searchTMMStephenY2 (talk | contribs) (Created page with 'The Send Email API Function is a new feature in the NATS Admin API that allows NATS to automatically send emails to members or [[ct#Affiliate|affiliat…') |
TMMStephenY (talk | contribs) m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{NATS4 Manual | ||
+ | | show_api_admin_section = true | ||
+ | }} | ||
+ | |||
The Send Email API Function is a new feature in the [[NATS4_API|NATS Admin API]] that allows NATS to automatically send emails to [[ct#Member|members]] or [[ct#Affiliate|affiliates]]. The function differentiates between members and affiliates based on whether the email uses a member ID number or login ID number as an argument. | The Send Email API Function is a new feature in the [[NATS4_API|NATS Admin API]] that allows NATS to automatically send emails to [[ct#Member|members]] or [[ct#Affiliate|affiliates]]. The function differentiates between members and affiliates based on whether the email uses a member ID number or login ID number as an argument. | ||
+ | |||
+ | == Possible Arguments == | ||
This function takes into account the following arguments: | This function takes into account the following arguments: | ||
Line 9: | Line 15: | ||
* '''Login ID''' - The ID number if the email type is an Affiliate email. This argument is required to be defined if the email is being sent to an [[ct#Affiliate|affiliate]] | * '''Login ID''' - The ID number if the email type is an Affiliate email. This argument is required to be defined if the email is being sent to an [[ct#Affiliate|affiliate]] | ||
* '''Custom_vars''' - Indicates a serialized array of custom variables. | * '''Custom_vars''' - Indicates a serialized array of custom variables. | ||
+ | |||
+ | == Required Arguments == | ||
Some of these arguments are required in order to send emails through the API: | Some of these arguments are required in order to send emails through the API: | ||
− | * Subject, Type, Template, and either Member ID or Login ID must be defined, or your emails will not be sent. | + | * ''Subject'', ''Type'', ''Template'', and either ''Member ID'' or ''Login ID'' must be defined, or your emails will not be sent. |
+ | ** Member ID is required for sending email to members, Login ID is required for sending email to affiliates | ||
+ | |||
+ | [[Category:NATS4 API Articles]] |
Latest revision as of 12:10, 18 May 2011
The Send Email API Function is a new feature in the NATS Admin API that allows NATS to automatically send emails to members or affiliates. The function differentiates between members and affiliates based on whether the email uses a member ID number or login ID number as an argument.
Possible Arguments
This function takes into account the following arguments:
- Subject - Define the subject of the email being sent
- Type - Select whether you are sending your email to a member or affiliate.
- Template - The name of the template being used for the email.
- Member ID - The ID number if the email type is a Member email. This argument is required to be defined if the email is being sent to a member.
- Login ID - The ID number if the email type is an Affiliate email. This argument is required to be defined if the email is being sent to an affiliate
- Custom_vars - Indicates a serialized array of custom variables.
Required Arguments
Some of these arguments are required in order to send emails through the API:
- Subject, Type, Template, and either Member ID or Login ID must be defined, or your emails will not be sent.
- Member ID is required for sending email to members, Login ID is required for sending email to affiliates