help email system - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help email system (
/showthread.php?tid=119084)
help email system -
jasonnw666 - 06.01.2010
i try to create email system
how can i create file for each player
stock Mail(from[],to[],subject[],body[])
{
new string[256];
new File:file = fopen("EmailSend.txt", io_write);
fwrite(file,"date: todays-date\n");
format(string,sizeof(string),"to: %s\n",to);
fwrite(file,string);
format(string,sizeof(string),"subject: %s\n",subject);
fwrite(file,string);
format(string,sizeof(string),"from: %s\n\n",from);
fwrite(file,string);
fwrite(file,body);
fclose(file);
SendMail(from,to,subject,body);
return 1;
}
Re: help email system -
Striker_Moe - 06.01.2010
I have released a system doing exactly what you want.
http://forum.sa-mp.com/index.php?topic=139411.0
Please leave a comment if youґre using it.
Re: help email system -
GTAguillaume - 06.01.2010
Код:
stock Mail(from[],to[],subject[],body[])
{
new string[256],filename[100];
format(filename,sizeof filename,"%s.txt",to);
new File:file = fopen(filename, io_write);
fwrite(file,"date: todays-date\n");
format(string,sizeof(string),"to: %s\n",to);
fwrite(file,string);
format(string,sizeof(string),"subject: %s\n",subject);
fwrite(file,string);
format(string,sizeof(string),"from: %s\n\n",from);
fwrite(file,string);
fwrite(file,body);
fclose(file);
SendMail(from,to,subject,body);
return 1;
}
Re: help email system -
jasonnw666 - 07.01.2010
how can i add cmd to write email and send?