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)

ajk 06-15-2003 08:28 AM

Is there a syntax to force them to use one server?
Example: mail.myserver.com?

Thanks

Erwin 06-15-2003 08:33 AM

Yes there is, and the answer to that is somewhere in this thread already. :)

Ian Cunningham 06-15-2003 12:06 PM

Is there any way so that when a user opens email.php they will automatically be logged into a specific account (i.e predefined $hosts, $pass, $user). Basically, I want all of my mods to only be allowed access to the file and for it to check a single account for news.

Erwin 06-16-2003 01:49 AM

Quote:

Yesterday at 11:06 PM Ian Cunningham said this in Post #223
Is there any way so that when a user opens email.php they will automatically be logged into a specific account (i.e predefined $hosts, $pass, $user). Basically, I want all of my mods to only be allowed access to the file and for it to check a single account for news.
Not hard to do at all.

Edit email.php and find:

PHP Code:

        $errormessage .= "<tr><td align=right><normalfont>Username: </normalfont></td><td><input TYPE=text NAME=user value='$user'></td>\n";
        
$errormessage .= "<tr><td align=right><normalfont>Server: </normalfont></td><td><input TYPE=text NAME=host value='$host'></td></tr>\n";
        
$errormessage .= "<tr><td align=right><normalfont>Password: </normalfont></td><td> <input TYPE=password NAME=pass></td></tr>\n"

Replace with:

PHP Code:

$user "Username";
$host "mail.server.com";
$pass "Password";
        
$errormessage .= "<tr><td align=right> </normalfont></td><td><input TYPE=hidden NAME=user value='$user'></td>\n";
        
$errormessage .= "<tr><td align=right></td><td><input TYPE=hidden NAME=host value='$host'></td></tr>\n";
        
$errormessage .= "<tr><td align=right></td><td> <input TYPE=hidden NAME=pass value=$password></td></tr>\n"

Edit the values here:
$user = "Username";
$host = "mail.server.com";
$pass = "Password";

It should work... Feel free to edit that bit of code so that it looks the way you want it to.

Ian Cunningham 06-16-2003 10:08 AM

cheers :) Thats what I am using at the moment, but is there any way to skip this section automatically, i.e it just logged in?

Thanks :)

TheVoidz 06-16-2003 05:02 PM

Hmmm I got a small problem, Recieving emails works fine but I can't send them, any ideas? oh ya and theres no errors.

Ian Cunningham 06-19-2003 11:09 AM

This doesnt seem to work with the latest version of PHP... any ideas? I got this help from my hosts.

Quote:

PHP has been upgraded and you may need to connect to the mail server in a diferent way. With the latest version of PHP, you need to connect to the mail server using;

$inbox = @imap_open ("{server.com/pop3:110/notls}", $username, $password);

Erwin 06-19-2003 11:35 AM

This definitely works for the newest versions of PHP - I know because I use the latest version.

PHP needs to be compiled with IMAP support. :) That's missing from your host. Your host needs to recompile PHP with IMAP for this to work.

Ian Cunningham 06-19-2003 11:40 AM

ah, ok. The reason I told my hosts it didn't work was because after I have submitted the form I just end up on a server not found page - and this only happened after the PHP update

Ian Cunningham 06-19-2003 11:42 AM

looks like it is compiled : http://juliet.dnsaction.com/serverphpinfo


All times are GMT. The time now is 08:59 AM.

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.01208 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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