Raised This Month: $51 Target: $400
 12% 

Sending an e-mail with amxx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 05-12-2013 , 09:46   Sending an e-mail with amxx
Reply With Quote #1

I tried to search some ways to send an e-mail. What I could find was just one plugin which seems to crash the server and since the author is inactive, I would like to know how todo that and what in the code is wrong.

http://forums.alliedmods.net/showthread.php?t=57431
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-12-2013 , 10:29   Re: Sending an e-mail with amxx
Reply With Quote #2

Quote:
Originally Posted by bibu View Post
I tried to search some ways to send an e-mail. What I could find was just one plugin which seems to crash the server and since the author is inactive, I would like to know how todo that and what in the code is wrong.

http://forums.alliedmods.net/showthread.php?t=57431


This is so much easier
put this HTML on you webhost or something

Code:
<!DOCTYPE html>
<html>
<body>
<h3>Send e-mail to [email protected]:</h3>
<form action="MAILTO:[email protected]" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name" value="your name"><br>
E-mail:<br>
<input type="text" name="mail" value="your email"><br>
Comment:<br>
<input type="text" name="comment" value="your comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
bibu
Veteran Member
Join Date: Sep 2010
Old 05-12-2013 , 10:39   Re: Sending an e-mail with amxx
Reply With Quote #3

I would like to send it simple through the console, so no MOTD if possible.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-13-2013 , 14:44   Re: Sending an e-mail with amxx
Reply With Quote #4

Not sure if works, no tried.
https://forums.alliedmods.net/showthread.php?t=179756
dFF is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 05-14-2013 , 15:51   Re: Sending an e-mail with amxx
Reply With Quote #5

Thanks, seems to connect fine, but I always get the following error. Anyone got an idea?

Quote:
L 05/14/2013 - 19:50:02: Invalid cellvector handle provided (3:0:0)
L 05/14/2013 - 19:50:02: [AMXX] Displaying debug trace (plugin "amx_mail.amxx")
L 05/14/2013 - 19:50:02: [AMXX] Run time error 10: native error (native "ArrayGetString")
L 05/14/2013 - 19:50:02: [AMXX] [0] amx_mail.sma::recvTask (line 187)
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2013 , 04:00   Re: Sending an e-mail with amxx
Reply With Quote #6

Quote:
Originally Posted by bibu View Post
Thanks, seems to connect fine, but I always get the following error. Anyone got an idea?
Post in the thread of the plugin . . . ?
__________________
fysiks is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-15-2013 , 07:10   Re: Sending an e-mail with amxx
Reply With Quote #7

Quote:
Originally Posted by bibu View Post
Thanks, seems to connect fine, but I always get the following error. Anyone got an idea?
Try to change on line 185:
PHP Code:
if (g_status[i] == mail_status_send
with
PHP Code:
if (g_status[i] == mail_status_send && g_mailData[i]) 
something like this, or use debug-mode from plugin.

Sorry i can't test plugin to help you more.
dFF is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 05-15-2013 , 15:12   Re: Sending an e-mail with amxx
Reply With Quote #8

Thanks for the try. I still get the same:

Quote:
L 05/15/2013 - 21:10:26: Invalid cellvector handle provided (3:0:0)
L 05/15/2013 - 21:10:26: [AMXX] Displaying debug trace (plugin "amx_mail.amxx")
L 05/15/2013 - 21:10:26: [AMXX] Run time error 10: native error (native "ArrayGetString")
L 05/15/2013 - 21:10:26: [AMXX] [0] amx_mail.sma::recvTask (line 187)
extra log:

Quote:
L 05/15/2013 - 21:10:26: [amx_mail.amxx] <-
220 gmx.com (mrgmx101) Nemesis ESMTP Service ready
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-16-2013 , 08:58   Re: Sending an e-mail with amxx
Reply With Quote #9

Create a PHP page that sends an email.
Using Sockets extension, send something like this:

PHP Code:
/amx_email.php?Title=THIS_TITLE&Receiver=THIS_RECEIVER&Content=THIS_CONTENT 
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-17-2013 , 10:24   Re: Sending an e-mail with amxx
Reply With Quote #10

Do you have a SMTP server that doesn't require authentication?
__________________
Bugsy 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 07:04.


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