Raised This Month: $ Target: $400
 0% 

Email Module?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 06-24-2006 , 20:28   Email Module?
Reply With Quote #1

Hmm.
I was thinking, if someone was up to it, anyone want to code a small module for AMXX that handles an SMTP/POP3 mail server?

The reason I'm asking this is because it'll make great use for plugins, such as mine, that allow you only to register for a site while in-game.

The reason for that being, so people cannot fake their SteamID's and/or use others when registering for an account.

Help keep track of who people really are in-game. The only thing left is I can't send EMAILS.

I setup an email server, and I can even send out emails via batch file.
The thing is, I cannot pull users from the SQL database that have not yet verified their accounts, nor can I export query results automatically.

If anyone is up for it, I'd appreciate it greatly, and if it works I may even put forth a small amount of cash.

Thanks in advance.

----
On a sidenote before I get posts that ask "Why did I post this in coding help".
Reason being, if anyone knows an alternative, it'd help me out coding wise.
----
__________________


Last edited by mysticssjgoku4; 06-24-2006 at 20:30.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 06-25-2006 , 10:50   Re: Email Module?
Reply With Quote #2

Alright, well, attempting to use to the "Socket" module for this.

Once connected through the socket, what type of language do I use to set forth command? DOS? C? C++? What?
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
BAILOPAN
Join Date: Jan 2004
Old 06-25-2006 , 11:09   Re: Email Module?
Reply With Quote #3

What?
__________________
egg
BAILOPAN is offline
KoST
Senior Member
Join Date: Jul 2005
Old 06-25-2006 , 11:26   Re: Email Module?
Reply With Quote #4

http://en.wikipedia.org/wiki/SMTP
__________________
KoST is offline
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 06-25-2006 , 11:59   Re: Email Module?
Reply With Quote #5

i wrote a function months ago, but it doesn't work like it should.
I would fix it, but i don't have time for it atm.
here is it:
Code:
sendMail( server[], port, to[], from[], subject[], text[] ) {     static buff[1024];     static socket;     static error;     static len;         socket = socket_open( server , port, SOCKET_TCP, error );     if( error )         return error;             len = format( buff, 1023, "HELO %s^r^n", server );     socket_send( socket, buff, len );     log_amx( ">> LEN %i <<", len );         len = format( buff, 1023, "MAIL FROM:<%s>^r^n", from );     socket_send( socket, buff, len );     log_amx( ">> LEN %i <<", len );         len = format( buff, 1023, "RCPT TO:<%s>^r^n", to );     socket_send( socket, buff, len );     log_amx( ">> LEN %i <<", len );         len = format( buff, 1023, "DATA ^r^n" );     socket_send( socket, buff, len );     log_amx( ">> LEN %i <<", len );         len = format( buff, 1023, "SUBJECT: %s^r^n%s^r^n.^r^n", subject, text );     socket_send( socket, buff, len );     log_amx( ">> LEN %i <<", len );         socket_close(socket);         return 0; }

i added the log_amx() to debug it

Last edited by Greenberet; 06-25-2006 at 12:05.
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 06-25-2006 , 13:29   Re: Email Module?
Reply With Quote #6

Hmm I 'll test that, but I throught before you specify anything you, you first need to connect via telnet. Or is that what the sockets module does?

Well eitherway I'll post the results once I'm finished testing that.

-----------

I need to authenticate my-self through telnet. Anyone know how?

-----------
AUTH LOGIN
-----------
Anyhow, I almost have it to work. I can now send emails.
That's only with TELNET though, and for some reason, when I receive it in my gmail account, it has "unknown sender", has no text whatsoever with no subject.
Lol.
Help?

Here's what I typed:

Quote:
telnet 192.168.1.104 25
AUTH LOGIN
[email protected]
password
HELO 192.168.1.104
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
Hello sir, how are you today?
.

QUIT
-----------
This is the first thing I give up on.
I've read pages of explainations of SMTP, installed SMTP service on my server through IIS, connected, but everything takes so much damn configuration, thorough knowledge, and each program that is a "SMTP server" takes different protocol formats.

If anyone wants to code a module for this it would be great, but it looks as if I'll save this big ass project for a rainy day.

Thanks anyhow.
__________________


Last edited by mysticssjgoku4; 06-25-2006 at 17:54.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode