Pages: 1 [2] 3 4   Go Down
  Print  
Author Topic: Contact Plugin  (Read 3388 times) Bookmark and Share
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #15 on: August 21, 2010, 03:51:59 AM »

Great ! Cheesy I update now !
Logged

Jr. Member
**
Posts: 16
Offline Offline
« Reply #16 on: September 01, 2010, 02:18:01 PM »

Great plugin!

I need to authenticate first with my smtp.
How can i do that?

edit:

Also if its possible to add gmail smtp server.
This uses TLS to authenticate.

All my email works with google aps.  Smiley
« Last Edit: September 01, 2010, 02:32:31 PM by Hendrik » Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 111
Offline Offline
WWW
« Reply #17 on: September 02, 2010, 01:35:44 AM »

of this is not possible, I must see this problem for a future release

you can try to change contact.py

this
Code:
server = smtplib.SMTP(smtpserver)
server.sendmail(mfrom, mto, email.as_string())

by

Code:
gmailUser=mfrom
gmailPasswor="YOUR PASSWORD"
server = smtplib.SMTP('smtp.gmail.com', 587)
server.login(gmailUser, gmailPassword)
server.sendmail(gmailUser, mto, email.as_string())
Logged
Jr. Member
**
Posts: 16
Offline Offline
« Reply #18 on: September 02, 2010, 04:08:30 AM »

Thanks.

I didn't edit my message yesterday after i got it working.

I got it working in a way.  Undecided

Maybe its usefull.
It is not nice because im noob.

contact.py (changed part)
Code:
           email = MIMEText.MIMEText(message)
            email['From']=mfrom
            email['To']=mto
            email['Subject']=sujetmail
            print "connecting"
            server = smtplib.SMTP("smtp.gmail.com",587)
            server.set_debuglevel(1)
            server.ehlo('username')
            server.starttls()
            server.ehlo()
            server.login("username", "password")
            server.sendmail(mfrom, mto, email.as_string())
            server.quit()
            client.message('Your message has been sent')
            client.message('Your nickname, ip, guid and id appear in the message sent')

« Last Edit: September 02, 2010, 04:10:31 AM by Hendrik » Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 111
Offline Offline
WWW
« Reply #19 on: September 02, 2010, 04:44:40 AM »

I think replacing
Code:
print "connecting"
by
Code:
client.message('connecting')

in a future version I'll add the posibility gmail smtp server
Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 111
Offline Offline
WWW
« Reply #20 on: September 02, 2010, 06:27:11 AM »

thank you to Hendrik

new version (v1.3) allows the sending of mail through gmail smtp server

in contact.xml enter your username and password gmail

download->contact v1.3
« Last Edit: September 02, 2010, 08:28:45 AM by PtitBigorneau » Logged
Jr. Member
**
Posts: 16
Offline Offline
« Reply #21 on: September 02, 2010, 07:47:45 AM »

Nice!

 Grin
Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 111
Offline Offline
WWW
« Reply #22 on: November 14, 2010, 02:48:17 PM »

v1.3.3 fixes small problem with b3 v1.4.1

download->contact v1.3.3
Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: cod4 & cod6
Posts: 26
Offline Offline
WWW
« Reply #23 on: January 20, 2011, 01:11:06 PM »

Got a new issue for ya

110120 16:08:21   BOT       Loading Plugin #10 contact [C:\Program Files (x86)\BigBrotherBot_1.4.1\extplugins\conf\contact.xml]
110120 16:08:21   INFO   Could not load built in plugin contact (No module named contact)
110120 16:08:21   INFO   trying external plugin directory : C:\Program Files (x86)\BigBrotherBot_1.4.1\extplugins
110120 16:08:21   CRITICAL   Error loading plugin: No module named iterators
Traceback (most recent call last):
  File "b3\parser.pyo", line 535, in loadPlugins
  File "b3\parser.pyo", line 645, in pluginImport
  File "C:\Program Files (x86)\BigBrotherBot_1.4.1\extplugins\contact.py", line 12, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "email\message.pyo", line 90, in <module>
  File "email\message.pyo", line 790, in Message
  File "email\__init__.pyo", line 79, in __getattr__
ImportError: No module named iterators

not sure what that means, since i have virtually no experience with python, but thats what i get when trying to run the plugin
Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 111
Offline Offline
WWW
« Reply #24 on: January 27, 2011, 02:07:52 AM »

you use which version of b3?


Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: cod4 & cod6
Posts: 26
Offline Offline
WWW
« Reply #25 on: January 27, 2011, 10:34:46 AM »

Currently using version 1.4.1 and I don't think it matters considering the plugin doesn't seem to be game specific but im trying to do this for cod4 and 6
Logged
Moderator
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 111
Offline Offline
WWW
« Reply #26 on: January 27, 2011, 01:21:01 PM »

version standalone windows ?

obviously the problem comes from the python module email

Quote
File "C:\Program Files (x86)\BigBrotherBot_1.4.1\extplugins\contact.py", line 12, in <module>

Code:
from email import *

pluguin not working with the older versions of Windows b3 standalone but that with version B3 from sources

I have not tested with the latest version
Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: cod4 & cod6
Posts: 26
Offline Offline
WWW
« Reply #27 on: January 27, 2011, 03:26:23 PM »

again, im horrible with python, soooooo how should i go about fixing this?

i downloaded the source pack and python but im not too sure how to get that one running... thanks again
Logged
Beta Testers
*
OS: Windows
Type: Renting Server, no B3
Gameservers: COD4 | COD2 | COD BO (Ranked and Unranked) | MOH 2010
Posts: 94
Online Online
« Reply #28 on: March 29, 2011, 01:26:16 PM »

Hi,

I have installed the latest version of B3 (1.5.0) and the latest contact plugin version and I am receiving:

110329 22:01:30   BOT       Plugin antinoob (1.0.8 - Anubis) loaded
110329 22:01:30   BOT       Loading Plugin #12 contact [M:\B3\B3_BO_Ranked\Ext_Plugins\conf\contact.xml]
110329 22:01:30   INFO   Could not load built in plugin contact (No module named contact)
110329 22:01:30   INFO   trying external plugin directory : M:\B3\B3_BO_Ranked\Ext_Plugins
110329 22:01:30   CRITICAL   Error loading plugin: No module named iterators
Traceback (most recent call last):
  File "b3\parser.pyo", line 554, in loadPlugins
  File "b3\parser.pyo", line 667, in pluginImport
  File "M:\B3\B3_BO_Ranked\Ext_Plugins\contact.py", line 12, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "email\message.pyo", line 90, in <module>
  File "email\message.pyo", line 790, in Message
  File "email\__init__.pyo", line 79, in __getattr__
ImportError: No module named iterators

Windows server 2k8, running as full admin, Mysql on the same box.

any ideas?
Logged
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 3x CoD4, 1x CoD6, 1x BF3
Posts: 2365
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #29 on: March 29, 2011, 01:57:00 PM »

means it is looking for a file called iterators.py in the extplugins folder. Verify you have one...
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Tags:
Pages: 1 [2] 3 4   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal