# Web Utilities

*WEB/MAIL | Send Simple Text Mail to a Local SMTP Server

## Description

The *web/mail utility is used for sending email from a PxPlus application to a local SMTP mail server.

## Format

CALL "*web/mail", smtp_server$, from$, to$, subject$, messagetext$, return$

Where:

smtp_server$ | IP address or DNS of the SMTP server. Note that TCP port ";25" is forced.
from$ | Email address of the person or application sending the mail.
to$ | A list of recipient email addresses separated by the SEP character ($8a$).
subject$ | Subject line of the email.
messagetext$ | Text of the message. #### Note: MessageText$ lines must end with $0d0a$ and must not exceed 100 characters per line, including the $0d0a$ terminator.
return$ | If an error occurs in sending the message, the response from the SMTP server will be in Return$.