Send subscription registration emails
Use this method to send registration emails for a list of subscriptions.
Request parameters
sessionID
Required (string) Session identifier, output of the Login method. An exception is thrown if the values are incorrect.
subscriptionReferencesList
Required (stringArray) Array of subscription references for which the registration email will be sent. You can send registration emails for a maximum of 50 subscriptions at once.
email
Required (string) End user email address.
language
Optional (string) ISO 639-1 two-letter language code for the language used in email registration messages. You can use all languages active on your account. Default language is English (en). Can be NULL.
Request sample
<?php
require('PATH_TO_AUTH'); // Authentication example: https://knowledgecenter.avangate.com/Integration/Channel_Manager_API/SOAP/02Authentication
require('PATH_TO_setPartner'); // setPartner example: https://knowledgecenter.avangate.com/Integration/Channel_Manager_API/SOAP/06Reference/Partner/00Set_partner
$subscriptionReferencesList = array('REFERENCE_1', 'REFERENCE_2');
$email = 'YOUR_EMAIL_ADDRESS';
$language = 'YOUR_LANGUAGE';
try {
$RegistrationEmail= $client->sendRegistrationEmail ($sessionID, $subscriptionReferencesList, $email, $language);
} catch (SoapFault $e) {
Echo "REmail: " . $e->getMessage();
exit;
}
var_dump ("REmail ", $RegistrationEmail);Response parameters
Result
Boolean True or false
Errors
NOT_FOUND_PARTNER
A partner must be set first.
INVALID_ORDER
Order is not yet completed.
EMPTY_SUBSCRIPTION_REFERENCES_LIST
The subscription references list is empty.
INVALID_SUBSCRIPTION_REFERRENCE
The subscription reference is invalid.
INVALID_EMAIL
The email address is invalid.
REGISTRATION_EMAIL_SENDING_FAILED
Failed to send the registration email.
Last updated
Was this helpful?