You are here: Function Reference > Mailings Functions > SendMailing

SendMailing

 

Sends a mailing based on MailingStruct by creating a row in the inmail_ table. The message is then subject to list processing and validation as if it were a mailing created by an administrator through the administrator GUI. If SegmentID is blank or 0, the mailing is sent to the entire list as defined in MailngStruct. If successful, returns the InMailID of new mailing.

Arguments

SegmentID - The ID of the segment to be sent to. Sends to the entire list if blank or null (int)

MailingStruct - The contents of the mailing as a MailingStruct

 

Returns

Mailing ID of the sent mailing

  

Return Data Type

int

 

Access Rights (learn more)

 

List Site Server Listname Required

x

x x x

 

Version  

ListManager 8.1



SelectContent SendMailingDirect