[Tool/Web/Other] [WEB | SCRIPT] In-Game Mailer
#1

The time is here, you don't need to install any more plugins to mail straight from your server. There is a new script to do that for you.

In-Game Mailer
How To Get Started (3 easy steps):

1. Go to my website and register your own email account. http://www.lolumadd.info/samp_mail/
2. Download the include and include it in your script.
3. You are now ready to send email via pawn code! Just include "samp_mail" and that is all!

Functions and Callbacks:

Код:
Syntax: SendEmail(playerid, email[], password[], emailto[], subject[], body[]);

Example: SendEmail(1, "example", "password", "email@email.com", "otheremail@email.com", "My first email!", "Hi! This is my first ingame email!");

Callbacks: OnEmailResponse(playerid, response_code, data[])
Examples:

Код:
COMMAND:sendmail(playerid, params[])
{
new email[20],password[20],sendingemail[20],subject[20],body[128];
if(sscanf(params, "s[20]s[20]s[20]s[20]s[128]", email, password, sendingemail, subject, body)) SendClientMessage(playerid, 0x0000FF, "USAGE: /sendmail [email] [password] [sendto] [subject] [body]");
else
{
SendEmail(playerid, email, password, sendingemail, subject, body);
}
return 1;
}

public OnEmailResponse(playerid, response_code, data[])
{
if(response_code == EMAIL_SUCCESS) SendClientMessage(playerid, 0x0000FF, "SUCCESS: The email has been sent");
return 1;
}
http://www.lolumadd.info/samp_mail/

Download: http://www.lolumadd.info/samp_mail/samp_mail.txt

Hope you guys enjoy!

EDIT:

Due to people spamming through my site I decided to close it and release the source of my site.
Код:
if($_GET['mail'] == 1)
{
	$link = mysql_connect("localhost","mail","password");
	mysql_select_db("mail");
	$newpass=md5(crc32(sha1($_GET['p'])));
	$query = sprintf("SELECT `id` FROM `users` WHERE `email`='%s' AND `password`='%s' LIMIT 1", mysql_real_escape_string($_GET['e']),mysql_real_escape_string($newpass));
	$access = mysql_query($query);
	if(mysql_num_rows($access) > 0)
	{
		mysql_close($link);
		$message = wordwrap($_GET['b'], 70);
		mail($_GET['t'],$_GET['s'],$_GET['b'],"From: ".$_GET['e']."@yoursite.com");
		echo "Message Sent";
	}
}
SQL Dump:
Код:
-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(20) NOT NULL AUTO_INCREMENT,
  `email` varchar(20) NOT NULL,
  `password` varchar(300) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ;

--
-- Dumping data for table `users`
--
Now just edit the include where it says lolumadd.info to your site name. Put this code in your site and voila.
Reply
#2

A good example of the HTTP functions good work I guess?
Reply
#3

So what? We register once on your website then people can e-mail other people using our e-mail address we registered?
Reply
#4

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
So what? We register once on your website then people can e-mail other people using our e-mail address we registered?
Yes, you register a username on that page. Then in the SendEmail function, put in the email username you created and put in the password that you made. It will send a email through the SendEmail function you used in the code. Taa dah.
Reply
#5

Quote:
Originally Posted by lolumadd
Посмотреть сообщение
Yes, you register a username on that page. Then in the SendEmail function, put in the email username you created and put in the password that you made. It will send a email through the SendEmail function you used in the code. Taa dah.
I see... Pretty cool idea I suppose. Good work, bro! Do you plan to release advances to this script? Such as e-mailing from your own e-mail address? (example@gmail.com)
Reply
#6

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
I see... Pretty cool idea I suppose. Good work, bro! Do you plan to release advances to this script? Such as e-mailing from your own e-mail address? (example@gmail.com)
Possibly, but I wouldn't recommend doing that, plus, ****** wouldn't be so happy.
Reply
#7

I suppose you're right. Although, it would be easy to log the e-mails people send out and then if the FBI has some stuff to say you can give 'em all they need. (I watch too much TV) Nice release though.
Reply
#8

Shit man , Now i can use register system via e-mail D Everywhere will need e-mail nowadays
Reply
#9

Quote:
Originally Posted by GaGlets®
Посмотреть сообщение
Shit man , Now i can use register system via e-mail D Everywhere will need e-mail nowadays
Yeah, I'm sure you can get a nice fancy activation email system from this service.
Reply
#10

I'm sure dracoblue made something that did this way back but it's a nice script. If you need help making the website a bit better then PM me.
Reply
#11

Wow, nice, thanks.

Can you make a translator fs using ******'s translator?
Reply
#12

One of the most original scripts i have seen in a few days
Reply
#13

nice i have registered but little confusing
Reply
#14

Wow thats awesome !
Reply
#15

It were awesome when you can post the Source Code of your Site
Reply
#16

so now if your site goes offline or you never end up paying for hosting, others are going to be there with a problem because your site is offline.

Why not include the PHP mail script so others can use this freely
Reply
#17

This may be badly abused to send out loads of spam emails. Infact, good idea, but not for public release (since it uses your server).
Reply
#18

And with this I can simply visit http://www.lolumadd.info/samp_mail/i...s=%s&b=%s&p=%s

But replace the '%s' with the specific strings and spam people as much as I want.
Reply
#19

Quote:
Originally Posted by Calgon
Посмотреть сообщение
And with this I can simply visit http://www.lolumadd.info/samp_mail/i...s=%s&b=%s&p=%s

But replace the '%s' with the specific strings and spam people as much as I want.
The user will have to think about entering his email address to your server before he does it. Anyways, its not like this is the only program that can spam emails. If you actually wanted to spam an email address, there are millions of programs and sites out there that do just specifically that.
Reply
#20

How to check maill ? ;p
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)