The SendMessageNL method:

  1. Allows to send a message to the recipients listed in a CSV file
  2. Synchronously executes the following steps:

    1. Scheduling of a sending at the date and time contained in the parameters
    2. Return of a delivery ID to the caller

  3. Asynchronously executes the following steps:

    1. Creation of a group in MailUp in which to gather the recipients that have to be imported
    2. Import to MailUp of the recipients included in the file. Recipients will be imported to the list indicated by the filename (see details)

Method parameters

Parameters listGuid listId can be used together or alternatively, passing one of them as null or empty: in the first case the list is verified using both parameters, otherwise using only the provided parameter.


SendMessageNL method

  • Requires the CSV file to be moved to MailUp servers before method is called
  • Manages import and sending for a specific list. Differently from batch FTP imports from a CSV file, this method does not allow to import contacts to different lists. All recipients must be imported in the same list
  • The file containing the recipients must be in CSV format (can also be provided in a compressed format using ZIP compression).The file and its fields must be structured following the guidelines contained in the CSV file description



SendMessageNL is often the best option for a fast bulk import and sending but users should be aware of some known limitations

The method returns

Since SendMessageNL starts 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


SOAP Examples


Sample request

<soap:Envelope xmlns:soap="" xmlns:ws="">
			<ws:senderName>Your Dealer</ws:senderName>
			<!-- +02:00 is the shift due to time zone setting. If not specified, the time zone of Italy will be used -->
			<!-- Please take into account note that time shift changes during Daylight saving time (e.g. during summer its value for Italy is +02:00 instead of +01:00) -->


Sample response

<soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd="">
      <SendMessageNLResponse xmlns="">
<soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd="">
      <SendMessageNLResponse xmlns="">



Code Examples

class MailUpWsSend {
	protected $WSDLUrl = "";
	public function loginFromId() {
	public function logout() {
	public function sendMessageNL($params) {
		try {
			$params = array_merge((array)$params, array("accessKey" => $this->accessKey));
		} catch (SoapFault $soapFault) {	

$WsSend = new MailUpWsSend();
$filename = "10_201105031527211234.csv"
uploadFile($filename) or die("Unable to upload list of recipients through FTP");
$sendingDate = date ("c", mktime(13,20,0,7,1,2013)); //set date with 2013-07-01T13:20:00+00:00
$sendMessageNLData = array("fileName" => $filename,
						   "separator" => ";",
						   "listId" => "10",
						   "listGuid" => "0e591119-cd77-4157-9379-6ac75335664",
						   "messageId" => "151",
						   "senderName" => "Your Dealer",
						   "sender" => "",
						   "subject" => "",
						   "timeDateSending" => $sendingDate



Related pages