# InetSendMail

int InetSendMail (const char *server, const char *from, const char *to, const char *subject, const char *messageText, const char *attachments);

## Purpose

Sends an internet email message.

## Parameters

Input
Name | Type | Description
server | const char * | The name or IP address of a machine running an SMTP mail server.
from | const char * | The text to place in the "From:" field of the message.
to | const char * | The comma–separated email addresses to which the email should be sent. Generally, each address should be in the following form: username@host.name
subject | const char * | The subject of the message.
messageText | const char * | The actual text of the message. The text represents the contents of the message. A newline character (\n) results in a line break in the email message. Send binary data as an attachment.
attachments | const char * | A list of files on the local machine that are to be sent as attachments. You must separate the filenames with semicolons.

## Return Value

Name | Type | Description
result | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.