SendMessageNL is often likely the best option for a fast bulk import and sending but users should be aware of some known limitations
- the ID of the sending
- -1 in case the operation is did not completed complete successfully (e.g. due to incorrect parameters or system failure). In this case any no recipient has been imported and no messages message has been sent.
You could should then check:
- if parameters fileName, messageId and accessKey has have been provided.
- if parameter accessKey is correct (it should contain the key obtained by from login method).
- that at least one of the parameters listId and ListGuid has been provided. And if they their values are correct.
- ithat parameter that the sender argument contains a correct valid email address or an empty string when provided.
- -3 in case the request command to start import to MailUp of the recipients included in the file fail. (e.g. due to an import operation already running that the system doesn't recognize).
If this is the caseyou could access to MailUp Console and verify if Import operation related to file has been queued. In this case sending operation will be completed, otherwise the SendMessageNL operation should be repeated
, you should login into your mailup account and check if the import process was successfully queued. If so, the dispatch will take place correctly, else, it would be required to run once again the SendMessageNL method.
Since SendMessageNL starts as an asynchronous task, in some cases a failure may occur after the method call is completed. In this case the failure is notified by means of an alert