Programming Guide |
Sends an attachment with the email message
int 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);
obj_id
- The object ID of the mail object.
name
- The name of the message.
pathname
- The path to the file.
filename
- The name to use when the file is saved by the message recipient. If the null string or null pointer is passed, the
filename
will be taken frompathname
.delete
- If not 0, the file will be deleted when the message is sent or deleted.
name
- The name assigned to the mail object.
- 0 Success.
sm_mail_attach
adds an attachment to the mail message.