Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB POP3 / IMAP Email Client 1.4 - Web-based access to POP email accounts Details »»
vB POP3 / IMAP Email Client 1.4 - Web-based access to POP email accounts
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-24-2003 Last Update: Never Installs: 90
 
No support by the author.

vB POP3 / IMAP Email Client 1.4 - by Dr. Erwin Loh

vB3 version here:
https://vborg.vbsupport.ru/showthread.php?t=66247

World's easiest hack to install! Upload a file, and you're done! No templates to add, no files to edit!!!

Ever wanted to access your POP3 or IMAP email account when you are away from your Outlook Express? Sick of Hotmail and free web-based email addresses, and want to just stick with your ISP email account? Want to be able to use a web-based interface? Want to be able to integrate this interface into your forums and offer it to your members?

Here we have it - I've created a file that does all that.

Features:

1. Only 1 file to upload, no templates, no file edits!
2. Automatic integration into your forums, with your forum colors and layout.
3. Accesses any POP3 or IMAP email account.
4. Ability to bypass any firewalls that any mail servers may have.
5. Ability to READ, REPLY, REPLY ALL, DELETE, FORWARD, and COMPOSE emails using the interface.
6. Ability to read HTML emails.
7. Ability to ATTACH files.
8. Ability to VIEW / DOWNLOAD ATTACHMENTS.
9. Ability to show HEADERS of emails.
10. Ability to allow certain usergroups access to this.
11. Ability to allow or disallow users from changing their FROM: email address
12. Ability to let yourself change the FROM: email address at at all times.
13. Your user can use this to access their ISP email account, or (Yahoo email or Hotmail premium accounts) via your forums!


Installation:

Upload email.php into your forums directory, link to it, and you've got an instant web-based POP3/ IMAP email interface in your forums!

Nothing else to do!

By default, this allows registered members, moderators and admins access only. You can edit the top of email.php to add or remove usergroupids easily.

Settings:

At the top of the PHP file, you can change the variables to:

1. Decide which usergroups can use this
2. Allow or disallow the changing of the FROM: email address (security update)
3. Exempt yourself so you can always change the FROM: email address

Requirements:

1) This hack requires PHP 4 or higher on your server.

2) This hack requires you to have IMAP support compiled with PHP on your server. If you get a error like "imap_open undefined function", then you dont have IMAP support. Sorry!


Please click the install link at the bottom of this thread for updates.

Enjoy!

Add-On (OPTIONAL) - Username and Mail Server saved in Member Profile:

To make the Username and Password become part of a member's profile (I don't suggest to include password as well as staff can then have access to this), just create 2 custom profile fields in your Admin CP - one for Username, the other for Mail Host Server. Make sure they do not show up in the user's profile.

Then, note down the custom profile ID number of each of the 2 custom profile fields (hover your mouse over the link to each, and it's the number at the very end of the URL in the status bar).

Then, in email.php, find:

PHP Code:
if ($CMD=="")
    {
    if (!
$session_server)
        { 
Underneath, add:

PHP Code:
$user $bbuserinfo[fieldx];
$host $bbuserinfo[fieldy]; 
Change x to the ID number of the username profile ID, and y to the ID number of the host mail server profile ID. Done!

Updates

Version 1.1 - Fixed <td> errors. Fixed error where message did not show when attachment present.

Version 1.2 - Security update - Added settings at the top of the PHP file that you can change to allow or disallow users from changing their FROM: email address. You can exempt yourself and always be able to change your own FROM: email address by modifying the userid here as well.

Version 1.3 - Fixed header text colors - Minor cosmetic improvements - Fixed Attachment Viewer and Downloader!!!

Version 1.4 - Fixed PHP header and cookie problem for certain servers that prevented login.


Screenshots:

Attachment: email.jpg
Courtesy of irn-bru.

Download:

When downloading, make sure it's the latest version - 1.4 (it will say this at the top of the PHP file).

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-25-2003, 09:03 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, that helped on the page not found error. Now it get this error:

Fatal error: Call to undefined function: imap_open() in /xxxxxx/xxxx/xxxxxxxxxx/forum/email.php on line 601

I was using POP3 when I got this.
Reply With Quote
  #23  
Old 03-25-2003, 09:06 AM
Ghostsuit's Avatar
Ghostsuit Ghostsuit is offline
 
Join Date: Nov 2001
Location: Glasgow, Scotland
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I only got that message when I used the wrong Username:, Server: or Password: details
Reply With Quote
  #24  
Old 03-25-2003, 09:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried it again and I get the same error. Everything is correct. The only thing it might be is my pop3 server name is like this:

pop.server.com
Reply With Quote
  #25  
Old 03-25-2003, 09:15 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 11:16 Boofo said this in Post #17


The magic man! What did you do to get it working?
Dont know why it works, but it works!
I?ve just copy the file to my forum-dir and browse it...
The Data i use: my Username, my Server (like pop.server.com), and my Password.

Idea: Why don?t make 3 Profilefields for the user like: Email-Username, Server, Password and than use this as input for the fields? So the user has his Data cached.
[high]* Kars10 Copperfield[/high]
Reply With Quote
  #26  
Old 03-25-2003, 09:25 AM
Ghostsuit's Avatar
Ghostsuit Ghostsuit is offline
 
Join Date: Nov 2001
Location: Glasgow, Scotland
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 11:12 AM Boofo said this in Post #23
I just tried it again and I get the same error. Everything is correct. The only thing it might be is my pop3 server name is like this:

mail.mchsi.com
Mines like that too mail. however I have to put my fullemail in for some accounts in stead of just the bit before the @ for example

kosh@.inyourcity.com instead of just kosh as the username. (Note I stuck an extra . in there to stop spam)
Reply With Quote
  #27  
Old 03-25-2003, 09:34 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried everything. I can't get past that error.
Reply With Quote
  #28  
Old 03-25-2003, 09:50 AM
Ghostsuit's Avatar
Ghostsuit Ghostsuit is offline
 
Join Date: Nov 2001
Location: Glasgow, Scotland
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Probably have to wait for Erwin then
Reply With Quote
  #29  
Old 03-25-2003, 10:05 AM
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Location: Glasgow
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm im gonna give this a try but having checked it on ghostsuit`s site i enetered all my data and it worked

and my mail server is set up mail.kjshsk.co.uk
Reply With Quote
  #30  
Old 03-25-2003, 10:07 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I've fixed that directory path bug.

I forgot to update it to make it workable for some forums. It now uses the $bburl variable - make sure your forum path is set correctly in your Admin CP vB Options section.

For those with problems, download the new email.php (making sure you refresh the cache). Also, this uses cookies, so make sure you close all windows, upload the new email.php and open a new window to login again.

EDIT: Make sure you empty your browser cache when attempting to download again - otherwise, the email.php is in your temporary folder and will be the OLD one.
Reply With Quote
  #31  
Old 03-25-2003, 10:14 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:58 PM Kars10 said this in Post #13
For me it works like a charm.
Is there a way to store the data (Username, password, server) for the users?? Or is this a high security-problem??

Kars
Not a bad idea... easily done... but my aim was to make this hack the easiest hack to install, while having great features.
Reply With Quote
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. The time now is 11:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05055 seconds
  • Memory Usage 2,327KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete