...
Parameters listGuid e 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
|
...
- Se data e ora hanno un valore che appartiene al passato l'invio è gestito come Invio Immediato. Il ritardo minimo prestabilito è calcolato in base al valore fornito dal parametro sendDelayTest:.
- Se il valore di data/ora è successivo a quello attuale allora l'invio è gestito come Invio Schedulato Pianificato, programmato.
...
- uguale o minore di zero. In questo caso il ritardo dell'Invio Immediato è un valore fisso definito in MailUp (Configurato in 20 minuti).
- Maggiore di zero. In questo caso il ritardo dell'Invio Immediato corrisponde al valore del parametro.
...
timeDateSending | sendDelayTest | Data invio schedulata in MailUp |
valore = MinValue Data e Ora o valore <= data attuale (Invio Immediato) | sendDelayTest > 0 | data attuale + sendDelayTest |
valore = MinValue Data e Ora o valore <= data attuale (Invio Immediato) | sendDelayTest <= 0 | data attuale + Valore fisso definito in MailUp |
valore > data attuale (Invio Schedulato
|
The combination of the parameters timeDateSending and sendDelayTest determines the date of the scheduled sending
TimeDateSending parameter can assume the following values:
- If date and time refer to the past the sending is handled as an Immediate sending. Minimum delay depends on the valure provided by sendDelayTest parameter.
- If date and time indicate a time in the future then the sending is handled as a Scheduled sending
SendDelayTest is considered only if the value provided by timeDateSending parameter indicates an Immediate sending.
This parameter can assume the following values:
- = or < 0. In this case the delay of the immediate sending is a fixed value defined in MailUp (setup takes 20 minutes).
- > 0. The delay of the immediate sending is the value assumed by the parameter.
How a sending is scheduled according to the parameters timeDateSending e sendDelayTest is summed up in the following table
timeDateSending | sendDelayTest | Scheduled sending date in MailUp |
value <= current date (Immediate sending) | sendDelayTest > 0 | current date + sendDelayTest |
value <= current date (Immediate sending) | sendDelayTest <= 0 | current date + fixed value in MailUp |
value > current date (Scheduled sending) | sendDelayTest > 0 | timeDateSending |
valore value > data attuale (Invio Schedulatocurrent date (Scheduled sending) | sendDelayTest <= 0 | timeDateSending |
Tabella 7: Calcolo programmazione invio
Il metodo restituisce:
...
...
The method returns
- ID of the sending
- -1 in case the operation is not completed successfully (e.g. incorrect parameters or system failure).