[Native] Amx Mail

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1347
Gender:
United States of America

[Native] Amx Mail

Post by Archive-Poster »

Amx Mail

Author: PomanoB
Version: 0.1.0

Description:
This plugin allows you to send emails directly from the server.

Functions:

Code: Select all

/ *
* Connect to an SMTP server
*
* Server - the server address
* Port - the server port
*
* If successful, the function returns the identifier of the server
* It should be used in the first parameter of the remaining functions
*
* In case of failure, returns -1
*
* /
native smtp_connect (server [], port);

/ *
* Login to the SMTP server
*
* Socket - server ID
* Username - user name (for example name@mail.hu)
* Password - the password
*
* /
native smtp_auth (socket, username [], password []);

/ *
* Send a letter
*
* Socket - server ID
* From - from whom a letter (for most servers must match the name of the user)
* To - to whom the letter
* Subject - the subject line
* Mail - the contents of the letter
* AddHeaders - additional headers (eg Reply-To :)
*
* /
native smtp_send (socket, from [], to [], subject [], mail [], addHeaders []);

/ *
* Disconnect from the server
*
* Socket - server ID
* /
native smtp_quit (socket);
Attachments
amx_mail.sma.zip
(1.8 KiB) Downloaded 8 times
amxmail.inc.zip
(446 Bytes) Downloaded 7 times

Who is online

Users browsing this forum: No registered users and 0 guests