|
|
|||||
| The SENDER_NAME string tag appears in taglists prepared for the SEND_MESSAGE function, and in message taglists returned from the GET_Q_ENTRIES_INFO function. This tag contains the name of the sender of a message, which is usually the name of a person. When sending fax messages when a cover template is enabled at the fax server, the value of the SENDER_NAME tag is merged into the cover template's $(SenderName) replacement field. | |||||
| Type | Max Size | Multiple Allowed | |||
| String | 64 | No | |||
Example: |
|||||
|
function SendFaxCover() { var Tl, StatusNum; Tl = CAS.New(); CAS.AddTag(Tl,"SEND_MESSAGE",""); CAS.AddTag(Tl,"REGISTERED_NAME",UserName); CAS.AddTag(Tl,"REGISTERED_PASSWORD",UserPassword); CAS.AddTag(Tl,"TRANSFER_TYPE",0); // 1= EMAIL, 0=FAX CAS.AddTag(Tl,"SUBJECT","The subject of this fax"); CAS.AddTag(Tl,"SENDER_NAME","Alfons Dalma"); Sl = CAS.CreateSection(Tl,"RECEIVER_ADDRESS","555-123-1234"); CAS.AddTag(Sl,"RECEIVER_NAME","Recipient"); CAS.CloseSection(Sl); Sl = CAS.CreateSection(Tl,"CONTENT_PART",2); // Cover Message CAS.AddTag(Sl,"CONTENT_TYPE",1); // File Type ASCII CAS.AddTag(Sl,"CONTENT_DATA","This is my cover text!"); CAS.CloseSection(Sl); // Send message on this already open session Tl = CAS.Send(cInst,Tl); StatusNum = parseInt(CAS.GetTag(Tl,"STATUS_NUM",0)); CAS.Delete(Tl); return(StatusNum); } |
|||||
See Also: |
|||||
| SEND_MESSAGE, GET_Q_ENTRIES_INFO | |||||
|
|