[Include] SendMail - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] SendMail (
/showthread.php?tid=397606)
SendMail -
Dolby - 05.12.2012
Introduction
Hello Guys, this is my include with only one function:
SendMail
This include was made using
a_http and use a PHP Script hosted for me.
If you need, you can get PHP Script
Here.
How to use
To use, you need put this in top of your script:
and use the function
SendMail.
Params:
SendMail( | Email(To), | Subject, | Email(From), | Message); |
I've tested this script with
hotmail and
gmail, but it's worth mentioning that, in the case the email isn't delivered, you should check the
Spam Box.
Download
Credits
SA-MP Team | Past/Present/Future |
Gustavo Araъjo | Include |
Jonathan Feitosa | Idea and host the PHP fileІ |
Any bugs? Contact-me.
Re: SendMail -
steki. - 05.12.2012
Great!
Re: SendMail -
JonathanFeitosa - 06.12.2012
Nice
Re: SendMail -
goviscrap - 06.12.2012
Getting errors when I compile it?
Re: SendMail -
Ballu Miaa - 06.12.2012
Any benchmarks?
And how is it better from this one?
Re: SendMail -
Dolby - 06.12.2012
Quote:
Originally Posted by goviscrap
Getting errors when I compile it?
|
what error?
Quote:
Originally Posted by Ballu Miaa
|
Due to simplicity, mine gets being the faster, however, his code is better, moreover, i didn't even know about this way.
Re: SendMail -
dr.lozer - 06.12.2012
can i use \n
Re: SendMail -
Dolby - 06.12.2012
Quote:
Originally Posted by dr.lozer
can i use \n 
|
currently, no.
Respuesta: SendMail -
adri1 - 06.12.2012
This is my version,xD:
pawn Код:
stock SendMail(to[],asunto[],mensaje[],from[])
{
new Link[1200];
format(Link,sizeof(Link),"adri1servers.com.ar/mailer.php?code=44514&to=%s&asunto=%s&msg=%s&from=%s",to,asunto,mensaje,from);
for(new c; c < strlen(Link)+1; c++)
{
if(Link[c] == ' ') Link[c] = '+';
}
HTTP(0, HTTP_POST, Link, "", "");
return 1;
}
this is tested
example:
pawn Код:
SendMail("adri223@hotmail.es","Mensaje enviado desde SA:MP Server","Este mensaje fue enviado desde un servidor de SA:MP","adri1@dontrepply.com");
Re: Respuesta: SendMail -
Ballu Miaa - 07.12.2012
Quote:
Originally Posted by adri1
This is my version,xD:
pawn Код:
stock SendMail(to[],asunto[],mensaje[],from[]) { new Link[1200]; format(Link,sizeof(Link),"adri1servers.com.ar/mailer.php?code=44514&to=%s&asunto=%s&msg=%s&from=%s",to,asunto,mensaje,from); for(new c; c < strlen(Link)+1; c++) { if(Link[c] == ' ') Link[c] = '+'; } HTTP(0, HTTP_POST, Link, "", ""); return 1; }
this is tested
example:
pawn Код:
SendMail("adri223@hotmail.es","Mensaje enviado desde SA:MP Server","Este mensaje fue enviado desde un servidor de SA:MP","adri1@dontrepply.com");
|
Maybe i will use this: But adri what does line it about? The Mailing server which is sending the mail?
pawn Код:
format(Link,sizeof(Link),"adri1servers.com.ar/mailer.php?code=44514&to=%s&asunto=%s&msg=%s&from=%s",to,asunto,mensaje,from);
How it will effect if i will change it!