Sends an attachment with the email messageint sm_mail_attach(int obj_id, char *pathname, char *filename, int delete);int sm_n_mail_attach(char *name, char *pathname, char *filename, int delete);
- The object ID of the mail object.
- The name of the message.
- The path to the file.
- The name to use when the file is saved by the message recipient. If the null string or null pointer is passed, the
filenamewill be taken from
- If not 0, the file will be deleted when the message is sent or deleted.
- The name assigned to the mail object.
sm_mail_attachadds an attachment to the mail message.