Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Contact Plugin  (Read 21564 times)

Offline grosbedo

  • Former Dev. (senate)
  • Sr. Member
  • *****
  • Posts: 258
Re: Contact Plugin
« Reply #15 on: August 21, 2010, 01:51:59 PM »
Great ! :D I update now !

Offline Hendrik

  • Jr. Member
  • **
  • Posts: 16
Re: Contact Plugin
« Reply #16 on: September 02, 2010, 12:18:01 AM »
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.  :)
« Last Edit: September 02, 2010, 12:32:31 AM by Hendrik »

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: Contact Plugin
« Reply #17 on: September 02, 2010, 11: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: [Select]
server = smtplib.SMTP(smtpserver) 
server.sendmail(mfrom, mto, email.as_string())

by

Code: [Select]
gmailUser=mfrom
gmailPasswor="YOUR PASSWORD"
server = smtplib.SMTP('smtp.gmail.com', 587)
server.login(gmailUser, gmailPassword)
server.sendmail(gmailUser, mto, email.as_string())
PtitBigorneau

Offline Hendrik

  • Jr. Member
  • **
  • Posts: 16
Re: Contact Plugin
« Reply #18 on: September 02, 2010, 02:08:30 PM »
Thanks.

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

I got it working in a way.  :-\

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

contact.py (changed part)
Code: [Select]
            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, 02:10:31 PM by Hendrik »

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: Contact Plugin
« Reply #19 on: September 02, 2010, 02:44:40 PM »
I think replacing
Code: [Select]
print "connecting"
by
Code: [Select]
client.message('connecting')

in a future version I'll add the posibility gmail smtp server
PtitBigorneau

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: Contact Plugin
« Reply #20 on: September 02, 2010, 04:27:11 PM »
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, 06:28:45 PM by PtitBigorneau »
PtitBigorneau

Offline Hendrik

  • Jr. Member
  • **
  • Posts: 16
Re: Contact Plugin
« Reply #21 on: September 02, 2010, 05:47:45 PM »
Nice!

 ;D

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: Contact Plugin
« Reply #22 on: November 14, 2010, 11:48:17 PM »
v1.3.3 fixes small problem with b3 v1.4.1

download->contact v1.3.3
PtitBigorneau

Offline Nibbles!

  • Jr. Member
  • **
  • Posts: 26
    • Outcasts 24/7 Hardcore
Re: Contact Plugin
« Reply #23 on: January 20, 2011, 10: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

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: Contact Plugin
« Reply #24 on: January 27, 2011, 11:07:52 AM »
you use which version of b3?


PtitBigorneau

Offline Nibbles!

  • Jr. Member
  • **
  • Posts: 26
    • Outcasts 24/7 Hardcore
Re: Contact Plugin
« Reply #25 on: January 27, 2011, 07:34:46 PM »
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

Offline PtitBigorneau

  • Moderator
  • Sr. Member
  • *
  • Posts: 194
    • www.ptitbigorneau.fr
Re: Contact Plugin
« Reply #26 on: January 27, 2011, 10: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: [Select]
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
PtitBigorneau

Offline Nibbles!

  • Jr. Member
  • **
  • Posts: 26
    • Outcasts 24/7 Hardcore
Re: Contact Plugin
« Reply #27 on: January 28, 2011, 12:26:23 AM »
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

Offline [DAD]GrimReaper

  • Full Member
  • ***
  • Posts: 128
Re: Contact Plugin
« Reply #28 on: March 29, 2011, 11: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?

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Contact Plugin
« Reply #29 on: March 29, 2011, 11:57:00 PM »
means it is looking for a file called iterators.py in the extplugins folder. Verify you have one...
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

 


Rate this page +1 at Google Search