AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [Native] Amx Mail (https://forums.alliedmods.net/showthread.php?t=179756)

kiki33hun 03-05-2012 06:27

[Native] Amx Mail
 
2 Attachment(s)
Amx Mail

Author: PomanoB
Version: 0.1.0


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

Plugin Example(s)
Coming soon

Functions:
Code:

/ *
* 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 [email protected])
* 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);


zeus 03-05-2012 06:39

Re: [Native] Amx Mail
 
What can I say anything else than : THANK YOU GOD !

brian201049 03-05-2012 06:49

Re: [Native] Amx Mail
 
Use this module to make a register system plugin which need to verify e-mail address :)

kiki33hun 03-05-2012 06:52

Re: [Native] Amx Mail
 
It would be nice, but many would not be able to use! But eventually I could write!

Exolent[jNr] 03-05-2012 09:33

Re: [Native] Amx Mail
 
Does the "To" parameter allow multiple recipients?

kiki33hun 03-05-2012 09:37

Re: [Native] Amx Mail
 
I do not think

Carlen20 03-05-2012 15:24

Re: [Native] Amx Mail
 
gj Kiki33hun

kiki33hun 03-06-2012 01:09

Re: [Native] Amx Mail
 
no,

Author: PomanoB

DjOptimuS 03-06-2012 07:01

Re: [Native] Amx Mail
 
i don't like the infinite task, it is costly to the server resources. Can't be avoided ? To use a task only when needed ? Thank you.

Arkshine 03-06-2012 07:43

Re: [Native] Amx Mail
 
Why the plugin's author doesn't post himself his stuff ?


All times are GMT -4. The time now is 23:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.