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

Reply
 
Thread Tools
vBulletin POP3 / IMAP Email Client for vB3 - Web-based access to POP email accounts! Details »»
vBulletin POP3 / IMAP Email Client for vB3 - 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: 3.0.3 Rating:
Released: 06-16-2004 Last Update: Never Installs: 154
 
No support by the author.

vBulletin POP3 / IMAP Email Client
Version 1.4 for vBulletin 3.x.x by Dr Erwin Loh

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!

If you see this error message, you do NOT have IMAP compiled with PHP:

Quote:
Fatal error: Call to undefined function: imap_open() in /home/yourforums/public_html/forum/email.php on line 652

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

Enjoy!

Add-Ons (OPTIONAL) -

1) 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!

2) Force user to use a specific mail server:

In email.php, find:

PHP Code:
$HTML .= "<tr><td align=right>Server: </td><td><input TYPE=text NAME=host value='$host'></td></tr>\n"
Change to:

PHP Code:
$HTML .= "<input TYPE=hidden NAME=host value='mail.yourserver.com'>"
Change 'mail.yourserver.com' to your own mail server subdomain name.

3) To force users to use only POP3 or IMAP

In email.php, find:

PHP Code:
$HTML .= "<tr><td align=right>Type: </td><td> POP3<INPUT TYPE=radio size=1 NAME=opt group=opt value='POP3' checked>";
$HTML .= "IMAP <INPUT TYPE=radio size=1 NAME=opt group=opt value='IMAP'></td></tr>";
// $HTML .= "<input type='hidden' name='opt' value='POP3'>\n"; // set to IMAP als IMAP 
Replace with:

PHP Code:
$HTML .= "<input type='hidden' name='opt' value='POP3'>"
Change POP3 to IMAP if you wish.

Updates:

Version 1.1 - removed the vB2 variable $bburl which was left over.
Version 1.2 - removed the vB2 variable $bbtitle, changed it to vB3, and also fixed up the table heading variable - purely cosmetic.
Version 1.3 - added automatic navbar support.
Version 1.4 - fixed email address server name domains, removed 1 query by caching template, fixed Attachment: alignment.

Screenshots:

1. Login screen
2. List of emails
3. Reading emails
4. Composing emails

Enjoy!

Show Your Support

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

Comments
  #222  
Old 02-20-2005, 04:25 PM
Durtay Durtay is offline
 
Join Date: Feb 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin is there anywhere you can suggest on how to install IMAP for dummies? I'd like for my users to have email access via my forums but it seems I don't have IMAP installed.
Reply With Quote
  #223  
Old 02-23-2005, 01:02 PM
ccunnin71 ccunnin71 is offline
 
Join Date: Mar 2004
Location: Crystal, MN. USA
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin this is VERY nice. Thank you. I installed it with relatively no problems. My only suggestion or request is if you could illustrate a good way to integrate it into vB3. I could likely jury rig a link on the nav bar, or create a forum link to goto it... both are messy option in my book.

Does anyone have suggestions on how to add a link in UserCP? Just the php file change or is it a template that needs to be adjusted?

Once again Erwin great MOD!!
Reply With Quote
  #224  
Old 02-23-2005, 10:30 PM
Durtay Durtay is offline
 
Join Date: Feb 2004
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ccunnin71
Erwin this is VERY nice. Thank you. I installed it with relatively no problems. My only suggestion or request is if you could illustrate a good way to integrate it into vB3. I could likely jury rig a link on the nav bar, or create a forum link to goto it... both are messy option in my book.

Does anyone have suggestions on how to add a link in UserCP? Just the php file change or is it a template that needs to be adjusted?

Once again Erwin great MOD!!
It's a template edit. In your templates find the one called "USERCP_SHELL"

If you want it in the 'Settings & Options' category, in that template find:
Code:
<if condition="$show['profilepiclink']">
	<tr>
		<td class="$navclass[profilepic]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td>
	</tr>
</if>
and below it add:
Code:
<tr>
		<td class="$navclass[options]" nowrap="nowrap"><a class="smallfont" href="email.php?$session[sessionurl]">Email</a></td>
	</tr>
i believe thats the correct URL
Reply With Quote
  #225  
Old 02-24-2005, 12:02 PM
ccunnin71 ccunnin71 is offline
 
Join Date: Mar 2004
Location: Crystal, MN. USA
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are correct Sir! I meddled with the code a bit but thank you very much with the pointer. Great MOD! Thankfully I my webhosting service had PHP set up to make this a smooth install.
Reply With Quote
  #226  
Old 02-24-2005, 09:32 PM
BigCheeze BigCheeze is offline
 
Join Date: Oct 2002
Location: Lost in Colorado
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm... I get a blank page. When I look at the source all I see is

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>
Reply With Quote
  #227  
Old 02-25-2005, 01:22 PM
TechGuy TechGuy is offline
 
Join Date: Nov 2001
Location: Waynesboro, PA USA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got this exact problem as well... Anyone know of any solutions?


Quote:
Originally Posted by The Prohacker
Still having trouble with no return sender with this hack.

While I'm composing the message, my user name shows up in the "From" box, like the first picture attached.

However, when I send it to my test gmail account, the message I receive is from "Unknown Sender", and the "Reply To" box is empty, like in pictures 2 and 3.

If I change to this...:
Code:
//You can allow or disallow users from changing the FROM email address by switching this to 0 for no or 1 for yes
$allowfromchange = "1";
...the hack works perfectly and my user name shows up in the test email "From" box, and is also in the "Reply To" box.
Which is perfect, except I do not want the other users to have the ability to change the "From" to an admin or mods nick and pass off the email as coming from someoene else.
I also do not want the users to have email being sent from "Unknown Sender" though.

If I switch it back to "0" however, I again get an email from "Unknown Sender" and the "Reply To" box is empty.

I know I can also change the third option to have myself as the only one allowed to change the "From" variable, however again, I don't want the other user's having emails sent from "Unknown Sender's".

Anybody have any ideas?
I really like this hack, but need to configure it properly.
Reply With Quote
  #228  
Old 03-01-2005, 09:30 AM
H@K@N H@K@N is offline
 
Join Date: Dec 2004
Location: Dortmund
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Erwin,

very cool addition, th@nks ....

How can i make a check for new mails automatically in a refresh meta tag ? So that the Mail System checks every 5 Minutes for new Mails automatically.

Still have a Problem, if i read Mails, that they are layered with the Background Image, the Box is missing, where the content of the Mail could be read.

see attached screenshot
Reply With Quote
  #229  
Old 03-06-2005, 08:43 PM
pxtek pxtek is offline
 
Join Date: Dec 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Call to undefined function: imap_open() in /home/pxtek00/public_html/forum/email.php on line 695

This happens after i input all my infos on the fields and selected POP3

how to fix
Reply With Quote
  #230  
Old 03-06-2005, 08:52 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pxtek
Fatal error: Call to undefined function: imap_open() in /home/pxtek00/public_html/forum/email.php on line 695

This happens after i input all my infos on the fields and selected POP3

how to fix
:sigh: Read my first post - you do not have imap compiled in php.
Reply With Quote
  #231  
Old 03-15-2005, 11:12 AM
MojoNixon MojoNixon is offline
 
Join Date: Oct 2004
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok now i have some serious problems ...i tried it with 3 different mail "providers"

First one is working: T-Online (German provider):

I can log in with the data, but when i want to send an email i get the following error message:
Fatal error: Call to undefined function: mail() in /home/htdocs/web1/html/board/email.php on line 686

Don´t know how to solve it.

2nd provider: google mail.
i used the data which i regulary use on gmail.com.
Pop Server: pop.gmail.com

It takes ages to connect and after that it says that my login information is wrong.

3rd provider....i have a Linux Root Server..so the Pop Data is something like that:
pop.mydomain.net
In Outlook its working like a charm. When i use the same login information it says after a short while that i cannot login with the specified data. This is when i try it with Firefox......when i use Opera is see the error message for a short time:

Warning: imap_open(): Couldn´t open stream pop.mydomain.de/110/pop3 Inbox in/email.php on line 695

i hope you can help me out with that.
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 05:58 AM.


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.07617 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (6)bbcode_php
  • (4)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_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