help email system
#3

Код:
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;
}
Reply


Messages In This Thread
help email system - by jasonnw666 - 06.01.2010, 17:33
Re: help email system - by Striker_Moe - 06.01.2010, 17:35
Re: help email system - by GTAguillaume - 06.01.2010, 17:38
Re: help email system - by jasonnw666 - 07.01.2010, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)