Programming Guide



sm_*mail_attach

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.

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 from pathname.

delete
If not 0, the file will be deleted when the message is sent or deleted.

name
The name assigned to the mail object.

Returns

Description

sm_mail_attach adds an attachment to the mail message.

See Also

sm_mail_new