Child pages
  • Email messages

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DescriptionSend a message to all list subscribers

HTTP Method

POST

URL

 Use the default list sender

Code Block
POST https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email/{id_Message}/Send

Use the sender that is provided by querystring parameters

Code Block
POST https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email/{id_Message}/Send?SenderName="{name}"&SenderAddress="{email}"

JSON request (example)

none

JSON response (example)

See notes at the bottom of this page1

Code Block
{"Id":2147483647,"InvalidRecipients":[],"Sent":7,"UnprocessedRecipients":[],"idMessage":24}

Paging and filtering (example)

none

Send to list

...

recipients filtering by groups

Description

Send a message to list subscribers filtering by groups. The method allows subscribers inclusion and exclusion by groups.
The method applies this logic:

  • include subscribers by groups defined by inGroups querystring parameters;
  • exclude subscribers by groups defined by notInGroups querystring parameters.

The method checks if the selected list contains the provided groupsYou may need to restrict your mailing to those recipients that belong to some MailUp groups or you may need to exclude the recipients of some groups.
When using specific querystring parameters with a valid value, the Send method allows including or excluding the recipients that belong to a list of specified groups.

Here is how it works:

  • use the inGroups querystring parameter to set the IDs of the MailUp groups to be included (i.e. all the group members will be added)
  • use the notInGroups querystring parameter to set the IDs of the MailUp groups to be excluded;

Please note that all the parameters' values must correspond to groups that belong to the MailUp list {id_List} specified in the REST endpoint.

HTTP Method

POST

URL

Inclusion

Include subscribers by recipients that belong to one or more groups.
It is mandatory that the list contains at least one of provided groups belongs to the specified MailUp list, otherwise the method return returns a 500 error. In case of empty values, the inGroups parameter is ignored and the message is sent to all the MailUp list recipients
If a subscriber appairs in more then recipients belongs to more than one group, it will be taken only added just one time.

Code Block
POST https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email/{id_Message}/Send?inGroups=12
POST https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email/{id_Message}/Send?inGroups=12,23,45


Exclusion

Exclude subscribers by that belong to one or more groups.
If the specified MailUp list does not contain all the provided groups, the method does not exclude any subscribers recipient and it sends the newsletter to all the MailUp list subscribersrecipients.

Code Block
POST https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email/{id_Message}/Send?notInGroups=12
POST https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email/{id_Message}/Send?notInGroups=12,23,45

 

Inclusion and exclusionInclude and exclude subscribers by one or more groups.
It is mandatory that the list contains

This is a case of that merges the cases seen above: both inGroups  and notInGroups are used.

inGroups: it is mandatory that at least one of groups defined by inGroups querystring parameter, otherwise the method return the provided groups belongs to the specified MailUp list. Otherwise the method returns a 500 error.
The method exclude subscribers by groups if list contains at least one group from notInGroups querystring parameter, otherwise In case of empty values, the inGroups parameter is ignored and the message is sent to all the MailUp list recipients.

notInGroups: if the specified MailUp list does not contain all the provided groups, the method does not exclude any subscribers recipient and sends the newsletter to all subscribers contained in groups defined by inGroups querystring the recipients filtered by the inGroups parameter.

Code Block
POST https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email/{id_Message}/Send?inGroups=12&notInGroups=89,90
POST https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email/{id_Message}/Send?inGroups=12,23,45&notInGroups=89

JSON request (example)

none

JSON response (example)

See notes at the bottom of this page1

Code Block
{"Id":2147483647,"InvalidRecipients":[],"Sent":7,"UnprocessedRecipients":[],"idMessage":24}

Paging and filtering (example)

none


...