vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBulletin POP3 / IMAP Email Client for vB3 - Web-based access to POP email accounts! (https://vborg.vbsupport.ru/showthread.php?t=66247)

Deaths 12-09-2004 03:33 PM

Hey there,

When I go to <myforum>/email.php I get :
Code:

Warning: Unknown(/home/death/public_html/vb/email.php): failed to open stream: Permission denied in Unknown on line 0

Warning: Unknown(/home/death/public_html/vb/email.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)(): Failed opening '/home/death/public_html/vb/email.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0

I have no idea what I have done wrong , since there is nothing to do wrong :ermm: .
How can I fix this?

Thanks

Oops , fixed it already , it didnt have permitions :nervous: .
Thanks anyway :D

boo.3 12-09-2004 11:55 PM

nice hack!!!

the text is hard to read on my gray background tho

boo.3 12-09-2004 11:58 PM

where would be to code to change font color?

achtungbaby 12-12-2004 05:18 AM

Great hack. Couple of questions though before I release it to my forum (and please excuse me if they sound dumb and/or they've been asked already):

1) How secure is this? To date I've given out about twenty email accounts to users from my site and nearly all of them access their webmail through a secure connection.

2) How much of a server resource hog is this? I have about 1,200+ emails in my inbox (I'm very slow to respond to emails:P) When I try logging in, it gets to the "now logging you in" page and then basically times-out. I have to hit refresh in order to actually see my inbox. I've tried using another email account and it still takes a while before I actually see some emails.

3) Is there any sort of pagination available?

jad65 12-18-2004 02:49 PM

Thanks for this great hack

Installed and all working fine

1- Just if some one inter any wrong username or server name, coming this erroe and also if login me out affter sometime

PHP Code:

Warningimap_open(): Couldn't open stream {ggg:110/pop3}INBOX in /home/xxxxx/public_html/forum/email.php on line 695 




2- and, how to chang font size please ?

Thanks again for help

sonicdriven 12-27-2004 06:25 AM

Worked Perfect for me as well. :)

dieselpowered 12-27-2004 07:14 AM

Worked fine for me except for the select all check box....Java error?

NexVision 12-29-2004 01:42 AM

My question is I have installed this and its great also added the link in the navbar is there anyway to only make the navbar link show for certain usergroups.

djjeffa 12-30-2004 01:03 AM

Quote:

Originally Posted by NexVision
My question is I have installed this and its great also added the link in the navbar is there anyway to only make the navbar link show for certain usergroups.


<if condition="$bbuserinfo[usergroupid] == X"> $templatevar </if>

The Prohacker 01-01-2005 04:26 PM

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.

Slave 01-09-2005 08:59 AM

hmm .. I'd love to get this working on my forums ..

One problem though .. When trying to get into my own mailbox, which is based on the same server, I keep getting this error ..

Code:

Warning: imap_open(): Couldn't open stream {mail.domain.net:110/pop3}INBOX in /email.php on line 695
Now .. I know I'm using the right login info as it works when using http://www.mail2web.com/ ..

I've seen others have the same problem .. could it be because the mailbox is on the same server but using a different domain to what the email.php file is using?

Perhaps there is a security setting on the server to stop things jumping from one domain to another?

If anyone could shed some light on this it would be appreciated .. ta :)

Erwin 01-09-2005 06:34 PM

Quote:

Originally Posted by Slave
hmm .. I'd love to get this working on my forums ..

One problem though .. When trying to get into my own mailbox, which is based on the same server, I keep getting this error ..

Code:

Warning: imap_open(): Couldn't open stream {mail.domain.net:110/pop3}INBOX in /email.php on line 695
Now .. I know I'm using the right login info as it works when using http://www.mail2web.com/ ..

I've seen others have the same problem .. could it be because the mailbox is on the same server but using a different domain to what the email.php file is using?

Perhaps there is a security setting on the server to stop things jumping from one domain to another?

If anyone could shed some light on this it would be appreciated .. ta :)

Your port 110 is blocked by your firewall? IMAP is not compiled in your PHP?

Slave 01-10-2005 06:09 AM

Quote:

Originally Posted by Erwin
Your port 110 is blocked by your firewall? IMAP is not compiled in your PHP?

Hi Erwin .. :)

This is what I've got in my PHP info ..

IMAP c-Client Version 2001
SSL Support enabled
Kerberos Support enabled

So it looks like I've got IMAP enabled ..

Next thing to look at is the firewall .. Although if I can get to my mailbox via a different server, wouldn't that then be the same for my own server getting to a different domain on the same box?

Soto 01-13-2005 11:51 AM

Cool - works perfectly on www.swanseasucks.com

djjeffa 01-26-2005 02:52 AM

Quote:

Originally Posted by Soto
Cool - works perfectly on www.swanseasucks.com

Ok I cant get this to work lol
when i fill out the feilds and click log in it takes me to http://mysite.com/fourm/email.php?CMD=cookie
The page cannot be found
any ideals

djjeffa 02-03-2005 08:44 PM

Quote:

Originally Posted by djjeffa
Ok I cant get this to work lol
when i fill out the feilds and click log in it takes me to http://mysite.com/fourm/email.php?CMD=cookie
The page cannot be found
any ideals

BUMP?

Erwin 02-03-2005 09:03 PM

Quote:

Originally Posted by djjeffa
BUMP?

This happens on some servers - I can't explain it to be honest.

NexVision 02-03-2005 09:15 PM

Quote:

Originally Posted by Erwin
This happens on some servers - I can't explain it to be honest.

I have been reviewing his issue since he is a friend of mine havent tested it yet but my answer is in the filename he has the email.php in his folder as Email.php could this be the problem?

Erwin 02-05-2005 03:26 AM

Quote:

Originally Posted by NexVision
I have been reviewing his issue since he is a friend of mine havent tested it yet but my answer is in the filename he has the email.php in his folder as Email.php could this be the problem?

Yes, on linux filenames are case sensitive.

djjeffa 02-20-2005 12:10 AM

Quote:

Originally Posted by djjeffa
Ok I cant get this to work lol
when i fill out the feilds and click log in it takes me to http://mysite.com/fourm/email.php?CMD=cookie
The page cannot be found
any ideals

Im a dummy the e in email was capitol lol

Durtay 02-20-2005 04:25 PM

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.

ccunnin71 02-23-2005 01:02 PM

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!! :D

Durtay 02-23-2005 10:30 PM

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!! :D

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

ccunnin71 02-24-2005 12:02 PM

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

BigCheeze 02-24-2005 09:32 PM

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>


TechGuy 02-25-2005 01:22 PM

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.


H@K@N 03-01-2005 09:30 AM

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

pxtek 03-06-2005 08:43 PM

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

Erwin 03-06-2005 08:52 PM

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.

MojoNixon 03-15-2005 11:12 AM

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.

EH-Jay 03-17-2005 11:27 PM

Works 100% perfect. EXACTLY what I wanted. Awesome job! Also it's easy to modify too ;)

Erwin 03-20-2005 08:41 PM

This hacks works fine for some servers, not for others - it's to do with the different OS installs and firewall settings. All I can say is that it works for most servers. :)

integra99 03-24-2005 04:51 AM

I'd find it helpful to add the following features. If you coulduseonedomain to login and authenticate for checking mail, but be abletosetanother domain to actually put on the headers for the emailaddressandthe one listed at the top of every page as the address.

The way my web hosting is setup, I have one main domain thatalltheemail accounts are setup under. The email names from theotherdomainsare just aliases.


i.e. use User1@domain1.com for authentication, but use User1@domain2.com in the header information, 'from' address, listed at the top of the page, etc.

Flow Fusion 04-01-2005 11:13 AM

thank you worked perfectly

TCM 04-02-2005 06:21 PM

Hi. This hack looks awesome, and I decided I'd use it to set up IMAP accounts for my moderators. I created profile fields that could only be access from the admincp to hold the username and password, and I was forcing it to use our server for mail. They'd get no permission if I hadn't entered a username and password for them. If they had, all they'd see is the log-in button. (If I get this working I'll probably make it auto-login, but I won't worry about that until later)

Didn't work. I always get the "Unable to login with the information you entered. Please login again." error.

Here's the section of the code I've modified.

PHP Code:

    if (!$session_server)
        {
      
$user $bbuserinfo['field20'];
      
$host "tasteslikespam.com"
      
$pass $bbuserinfo['field21']; 
        if (
$message$HTML .= "<font size=-1>$message</font>";
        
$HTML .= "<form ACTION='email.php?CMD=cookie' METHOD='post'>\n";
        
$HTML .= "<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td align=center colspan=2><br><b>vB POP3 / IMAP Email Login Client 1.4 - by Dr. Erwin Loh</b><br><br></td>\n";
        
$HTML .= "<input TYPE=hidden NAME=username value='$user'>";
        
$HTML .= "<input TYPE=hidden NAME=host value='$host'>";
        
$HTML .= "<input TYPE=hidden NAME=pass value='$pass'>";
      
$HTML .= "<input type='hidden' name='opt' value='IMAP'>"
        
$HTML .= "<tr><td align=center colspan=2><input type=\"submit\" class=\"button\" name=\"submit\" value=\"Login\" accesskey=\"s\" tabindex=\"3\">";
        
$HTML .= "</td></tr></table></form><br /><br />"

When I test them same login and server in thunderbird, it works fine.

What did I do wrong? Does it seem like it's just my server?

EDIT: Nevermind, I've got it working.

boo.3 05-17-2005 03:35 PM

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

Erwin 05-18-2005 02:40 AM

Quote:

Originally Posted by boo.3
Fatal error: Call to undefined function: imap_open() in /home/b3playg/public_html/forums/email.php on line 695

Read the first post. You don't have IMAP compiled in PHP.

COBRAws 05-23-2005 04:58 PM

is there an addon or way to integrate de "new post" or "new thread" editor for this? So we can give HTML format to emails :D

thanx in advance

Erwin 05-25-2005 02:53 AM

Quote:

Originally Posted by COBRAws
is there an addon or way to integrate de "new post" or "new thread" editor for this? So we can give HTML format to emails :D

thanx in advance

Not at the moment. It can be done but I don't have time to do this.

H@K@N 06-02-2005 11:14 AM

Hello Erwin,

i have updated my php4.3.11 > php 5.0.4

Now i am getting a blank page, when i try to execute the Page.

My error_log is saying following:

Code:

PHP Fatal error:  Cannot re-assign $this in /srv/www/htdocs/web1/html/email_istek.php on line 120
Line 120 says:

Code:

if (is_array($num)) $this=$num[$i]; else $this=$num;
do u know, what could be the reason ?


All times are GMT. The time now is 08:08 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.01626 seconds
  • Memory Usage 1,860KB
  • 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
  • (10)bbcode_code_printable
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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