GustavoAraujo

SendEmail

Nov 1st, 2013
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.57 KB | None | 0 0
  1. #include <a_http>
  2.  
  3. #if !defined Function
  4.     #define Function::%0(%1)    %0(%1); public %0(%1)
  5. #endif
  6. Function::SendEmail(Email[],Assunto[],Remetente[],Mensagem[])
  7. {
  8.     if(strfind(Email, "@", true)) return 0;
  9.     new Link[1200];
  10.     format(Link,sizeof(Link),"www.gospmail.com/jfs/envia.php?Email=%s&Assunto=%s&From=%s&Mensagem=%s",Email,Assunto,Remetente,Mensagem);
  11.     for(new c; c < strlen(Link)+1; c++)
  12.     {
  13.          if(Link[c] == ' ') Link[c] = '+';
  14.     }
  15.     HTTP(0, HTTP_POST, Link, "", "");
  16.     return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment