Raised This Month: $ Target: $400
 0% 

Prototype for sending EMails through Sourcemod (working)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Timiditas
Senior Member
Join Date: Apr 2009
Old 10-04-2009 , 15:30   Prototype for sending EMails through Sourcemod (working)
Reply With Quote #1

See attachment

Uses
[INC] Base64 Encoding and Decoding library functions by SirLamer
Needs
[EXTENSION] Socket by sfPlayer

Usage:
PHP Code:
SendSMTPMail("SMTP hostname/IP"port"username""password""sender email""recipient email""subject""message text"); 
Oops, posted to the wrong subforum, this should have gone to "Snippets"...
Attached Files
File Type: sp Get Plugin or Get Source (sendmail.sp - 588 views - 5.2 KB)
__________________


Last edited by Timiditas; 10-04-2009 at 15:44.
Timiditas is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 10-04-2009 , 19:28   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #2

Pretty cool!
Dragonshadow is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 10-04-2009 , 21:38   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #3

That's awesome, does it work yet?
noodleboy347 is offline
Timiditas
Senior Member
Join Date: Apr 2009
Old 10-05-2009 , 03:13   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #4

Yes, I sent several emails to myself with it.
It doesn't handle unexpected responses from the SMTP server, tho.
__________________

Timiditas is offline
Timiditas
Senior Member
Join Date: Apr 2009
Old 10-05-2009 , 06:07   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #5

Try this attached version. It will let you send an email through the server console.

usage: smsendmail "SMTP hostname/IP" port "username" "password" "sender email" "recipient email" "subject" "message text"

enclose every string in quotation marks
Attached Files
File Type: sp Get Plugin or Get Source (sendmail.sp - 403 views - 6.1 KB)
__________________

Timiditas is offline
Stinkyfax
BANNED
Join Date: Aug 2007
Old 10-05-2009 , 15:00   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #6

ah, that's just awesome feature!
Stinkyfax is offline
seattle_ice
Member
Join Date: Dec 2010
Old 03-18-2012 , 15:54   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #7

No matter what I do, I get error 530 back in the logs. ANyone get this working with gmail or hotmail smtp servers?
seattle_ice is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-18-2012 , 16:06   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #8

Are you just trying to use the attached test plugin right out of the box?

Quote:
530 SMTP authentication is required.

You have enabled SMTP authentication for the IP range that the user is connecting from, but the user has not configured his client to use SMTP authentication. There's two ways to solve this problem. Either configure your email client to use SMTP authentication. This setting is normally found in the account settings in your email client. Or, disable SMTP authentication for the IP range. The first solution is recommended since it reduces the risk that anyone will send spam through your server.
__________________
Peace-Maker is offline
seattle_ice
Member
Join Date: Dec 2010
Old 03-18-2012 , 16:27   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #9

Quote:
Originally Posted by Peace-Maker View Post
Are you just trying to use the attached test plugin right out of the box?
No, but I guess I should ask if this will work with SMTP servers that require either TLS or SSL?

I cannot get this to work for me.

Last edited by seattle_ice; 03-22-2012 at 20:41.
seattle_ice is offline
matchaboy
Senior Member
Join Date: Jun 2013
Location: Bananaland
Old 10-18-2013 , 09:27   Re: Prototype for sending EMails through Sourcemod (working)
Reply With Quote #10

is it possible if i want to make this in my plugin?
__________________
Learning how to make plugins.
matchaboy is offline
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 18:10.


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