vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB POP3 / IMAP Email Client 1.4 - Web-based access to POP email accounts (https://vborg.vbsupport.ru/showthread.php?t=50783)

Erwin 03-24-2003 10:00 PM

vB POP3 / IMAP Email Client 1.4 - Web-based access to POP email accounts
 
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!!! :cool:

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:

https://vborg.vbsupport.ru/external/2008/01/12.gif 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).

Kars10 03-25-2003 05:28 AM

Installed! :)

Thank you for sharing this
Kars

Koutaru 03-25-2003 05:28 AM

This sounds great :) I am definately going to install it in the morning when it's not 1 am ;) I'm going to bed soon

Though, I would love screen shots, this is so easy to install and uninstall so it's not a big deal

Very nice!

*EDIT
Decided to upload anyway XD took about a second!
Worked perfectly! Very very nice!

:cool:

Kevorkian 03-25-2003 05:34 AM

ohohohohohoh really good idea! ^_^

/me click install

partang2 03-25-2003 05:38 AM

Installed, Thanks!

irn-bru 03-25-2003 06:05 AM

thanks *installed*

Screenshot

GoTTi 03-25-2003 06:14 AM

when i put this on, and i put the info in, i got error 404

http://www.SITE.com/email.php?CMD=cookie

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Spike05 03-25-2003 06:17 AM

Quote:

Today at 08:14 AM Da_GoTTi said this in Post #7
when i put this on, and i put the info in, i got error 404

http://www.SITE.com/email.php?CMD=cookie

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

I have the same problem! I have also installed vbportal!

cu

Jochen

Edgemyster 03-25-2003 06:27 AM

I get an error as well - but not quite the same thing. Instead, if I pick POP3 and put anything or nothing in the other fields, I get this error:
------
Fatal error: Call to undefined function: imap_open() in /xxxx/xxxx/xxxx/email.php on line 601
-----

Line 601 is:
if ($opt=="POP3") $mbox = imap_open("{".$host.":110/pop3}".urldecode($folder), $user, $pass);

If I choose IMAP, it comes up with the same error for 602:

elseif ($opt=="IMAP") $mbox = imap_open("{".$host."}".$folder, $user, $pass);

Thanks for any help.

alkatraz 03-25-2003 06:32 AM

WOW! you are the man
this is fantastic

thank you!

hmmm I just tried installing and I get the 404 error too

hmmm now im getting this error:

"Warning: Couldn't open stream {mail.pdm-racing.com:110/pop3}INBOX in /home/alkatraz/www/board/email.php on line 601"

Smoothie 03-25-2003 06:46 AM

Quote:

Today at 03:14 AM Da_GoTTi said this in Post #7
when i put this on, and i put the info in, i got error 404

http://www.SITE.com/email.php?CMD=cookie

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

yep, same here.

Boofo 03-25-2003 06:57 AM

I'm getting the same error as Smoothie and the others.

Kars10 03-25-2003 06:58 AM

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

Freezerator 03-25-2003 07:24 AM

I have installed it,

but i think he doesn't look in wich dir it is in

Because my forum is located in www.site.com/forum/ and when you login, it goes to www.site.com/ and not to /forum/ dir

Freezerator 03-25-2003 07:31 AM

Well,

i fixed problem one ^^

but i still can't login to my pop3 boxes.
Also, what would be nice, that an user can give in in his profile his email server and login name, that he only has to type his password.

Just a thougt

Nice script though, when it would work as promised.

Broekie 03-25-2003 07:59 AM

I don't get a 404, but I do get a blank page after trying to log in

And, when I go to email.php, the Username field contains "Array".

Boofo 03-25-2003 08:16 AM

Quote:

Today at 02:58 AM 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

The magic man! ;) What did you do to get it working? ;)

Smoothie 03-25-2003 08:25 AM

17 installs, and one working.. wOOt!

Boofo 03-25-2003 08:37 AM

LOL @ Smoothie. What are the odds? ;)

Ghostsuit 03-25-2003 08:40 AM

Ok didn't work to start with for me.

I got it working by doing a find and replace for all ../email.php to ../forums/email.php

/forums being my forums directory.

Hope that helps some people.

You can test it out at http://www.alternativenation.net/forums/email.php

but you would need to be a member :S

Boofo 03-25-2003 09:03 AM

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.

Ghostsuit 03-25-2003 09:06 AM

I only got that message when I used the wrong Username:, Server: or Password: details

Boofo 03-25-2003 09:12 AM

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

Kars10 03-25-2003 09:15 AM

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]

Ghostsuit 03-25-2003 09:25 AM

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)

Boofo 03-25-2003 09:34 AM

I've tried everything. I can't get past that error. :(

Ghostsuit 03-25-2003 09:50 AM

Probably have to wait for Erwin then :(

colicab-d 03-25-2003 10:05 AM

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

Erwin 03-25-2003 10:07 AM

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. :)

X-Fan 03-25-2003 10:14 AM

Another great hack from Erwin! Thanks mate

Erwin 03-25-2003 10:14 AM

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. :)

Erwin 03-25-2003 10:16 AM

Quote:

Today at 11:14 PM X-Fan said this in Post #30
Erwin, just noticed on first loading this file there's a loose <td tag in the footer. I know my footer has a table in it, but why would this file corrupt it so?
Really? Looks fine on my forums.

Erwin 03-25-2003 10:19 AM

NOTE: This hack requires PHP 4 or higher to work. Check to see if this is the case if you are having streaming problems.

Also, make sure you use the latest email.php file (I just uploaded it) if you have path problems - make sure you clear your browser cache.

Kars10 03-25-2003 10:26 AM

Quote:

Today at 13:14 Erwin said this in Post #31


Not a bad idea... easily done... but my aim was to make this hack the easiest hack to install, while having great features. :)

Maybe like that way Erwin?

Link...

Kars :)

Erwin 03-25-2003 10:33 AM

Quote:

Today at 11:26 PM Kars10 said this in Post #34


Maybe like that way Erwin?

Link...

Kars :)


Done. I've included instructions on how to do this in the first post. Untested, but should work.

Boofo 03-25-2003 10:42 AM

I'm still getting this error with the new file:

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

Broekie 03-25-2003 11:00 AM

Quote:

Today at 01:42 PM Boofo said this in Post #36
I'm still getting this error with the new file:

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

Me too

And once again, when I go to email.php, the username-field contains the word "Array". I don't think it's supposed to contain that, is it?

Pop3-box information:
username: xxx@yyy.nl (or xxx%yyy.nl would work too, if the @ should be a problem, but I've tried that and didn't work either)
server: pop.yyy.nl
password: zzz
(Where xxx, yyy and zzz stand for something else ofcourse ;))

Server information:
OS: FreeBSD 4.5
Apache: 1.3.22 (Unix)
PHP: 4.2.1
MySQL: 3.23.49

partang2 03-25-2003 11:14 AM

Worked great from the start here! :)

Boofo 03-25-2003 11:17 AM

You're one of the lucky few. ;)

mforster 03-25-2003 11:21 AM

Working - as soon as I remembered the right password :doh:

I was getting the <TD error too, but on page refresh it was fine


All times are GMT. The time now is 12:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01473 seconds
  • Memory Usage 1,843KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete