# \*WEB/MAIL: Send Simple Text Mail to a Local SMTP Server

> Source: https://manual.pvxplus.com/web-server-reference/setting-up-pxplus-web-server/pxplus-web-server-utilities/send-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.<br>Note:  <br>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$. |
