Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Can't Use Imap Functions In Php4?


I tried many times in different systems , and find Can't use imap functions in php4? (linux or win32) Is it really?




View Complete Forum Thread with Replies

Related Forum Messages:
Imap + Php4.0.4pl1
I have already installed php4.0.4pl1 on rh6.2 and i want to add the imap module in order to run imp. I have the c-client.tar.Z.
What is the best way to add this module to PHP.

View Replies !
PHP4 IMAP, POP3 And SMTP Protocols
We are building a new web based e-mail client
"Fiezel" that will support IMAP, POP3 and SMTP protocols. Will be written in
php4.
I am trying to collect all the infomation on SNMP I can get and any other
protocols like POP3 infomation for desinging and developing for php4.
I have also collected the infomation wish I will try to support:

RFC2821: Simple Mail Transfer Protocol (SMTP)
RFC2822: Standard for ARPA internet text messages
RFC2060/3501: Internet Message Access Protocol (IMAP) Version 4rev1
RFC1939: Post Office Protocol Version 3 (POP3)
RFC2076: Common Internet Message Headers

Does anyone else know of infomation RFC`s, Draft etc.. Maybe also
on software development of this protocol? Any kind of infomation will be
very much usefull.

View Replies !
IMAP Functions
I have signed up with a new web host and want to use IMAP functions with them. They do support these. I have checked. They have provided webmail at url:

http://webmail.mydomain.com

so I guessed that I should use this syntax in my php script:

imap_open("{webmail.mydomain.com:143 INBOX", "username", "password");

But it does not work. I receive this error message:

Warning: imap_open(): Couldn't open stream {webmail.mydomain.com:143}INBOX

Help! I have asked my host about this and from their reply I dont think they even know what IMAP functions are. So, I am really stuck. I have read about opening an IMAP stream and that there are different syntaxes for different software components and scenarios - how can I find out which one is appropriate for my set up, given that asking my host is out?

The webmail is horde webmail. The login url is below

http://webmail.mydomain.com/horde/

I am on a virtual server. So, I have an IP - but it is a shared IP of course. My host provided me with 3 IPs - one for FTP access, one is just my private IP (behind a firewall), the other is a public IP (outside the firewall). I have to give my public IP to DNS.

View Replies !
Help With Imap Functions
imap_fetchstructure -- Read the structure of a particular message

a query about this function.....
(from php manual)
Description
object imap_fetchstructure ( resource imap_stream, int msg_number [, int
options])

This function fetches all the structured information for a given message.
The optional flags parameter only has a single option, FT_UID, which tells
the function to treat the msg_number argument as a UID. The returned object
includes the envelope, internal date, size, flags and body structure along
with a similar object for each mime attachement. The structure of the
returned objects is as follows:

so if i call imap_fetchstructure($imapstream, $msgNum, FT_UID)

it will treat $msgNum as a messageID?? yes or no and if no then how do i get
this to work.

"The optional flags parameter only has a single option". to be hoonest i do
not understand this optonal flags section.

View Replies !
Help With IMAP And NNTP Functions
Has anyone here ever tried to use the IMAP functions to retrieve postings from a news server? And if so, have you tried to retrieve the messages in a threaded manner. I have looked at the imap_header() function and found that there is a references field which returns an array of parent messages.

Problem that I have is that when retrieving messages, i can't seem to retrieve them in a threaded manner and was wondering if someone had suggestions as to how this could be done...
Or if it's been done already, are there snippets of code that i could refer to.

View Replies !
Cron And IMAP Functions
I have a PHP script using IMAP functions that is called by a cronjob. However, the cron throws errors such as:

imap_status(): supplied argument is not a valid imap resource

The script works fine if I run it from a browser, but not from a cron job. For example,

/usr/bin/php /home/mydomain/www/cron-get-bounces.php

Have any of you run into this? And if so, did you come up with a solution?

View Replies !
Email With Attach Without Imap Functions
I need to send a mail with an attach, but my server doesn't support imap functions. Do you know any perl or other function to send it?

View Replies !
IMAP Functions And Bounced Email
Has anyone got much experience with PHPs IMAP functions. I want to extract the sent-to address from a series of bounced emails. I've got IMAP to open the mailbox and return various bits of data about the emails. Does anyone know how I can extract the address that failed?

View Replies !
Moving Mails Using Imap Functions
i have 2 little questions about this issue:

1. how can i make sure that if i sent a mail that it goes into my sent folder using imapfunctions.

2. how can i move a mail from one folder to another using imapfunctions

View Replies !
PHP IMAP Functions And Character Encoding
i found the forum while i was researching about some character encoding problems i am having with the webmail application i am developing. i read all the information posted on different topics, and there seems to have been a lot of discussion going on the subject of character encoding. so here goes mine: Code:

View Replies !
IMAP Functions, Detecting An Attachement
I'm trying to create a page that checks the content of emails and deletes them if they can be considered as SPAM like.

So, for now I load the emails with the function imap_body, and if any keyword considered as SPAM like is found inside this email, it's automatically deleted.

But, I'd like to improve this process to delete email with files in attachement. Do you know if the imap functions provided by php allow me to do so ? if so, should I look for the attached files in the body or in the header ?

View Replies !
Make Folder In Mailbox Using Imap Functions
some users don't seem to have a standard "Trash" folder, so they can't move mails to Trash if they don't have any, you could say "just make a trash on the server", but thats not what i want, i have over 3500 users by now, if i have to check for each of them if they have a trash or not,....

so what i want to do is make that Trash folder in their mailbox, using an imap function
its easy to detect in php if they have a Trash or not, that part i do have already, but what function (IMAP) do i need to use to CREATE the folder?

View Replies !
IMAP Functions Read/parse Incoming Emails
I am currently trying to write some PHP code to "read"/parse my incoming emails. Open them up "read" them by looking for keywords then delete them etc. To do this I am going to use the IMAP functions in PHP. But of course these are not standard to PHP. They are an extension of sorts. So, I am a bit worried about finding a host for my PHP IMAP code: what percentage of hosts would support this extension.

View Replies !
Use IMAP Functions To Display HTML Msgs W/inline Images
I have been unable to find any explanation of how to use PHP to properly display an HTML formatted email message which was retrieved using PHP's IMAP functions. I know it is possible to do, because there are several webmail clients written in PHP!

I have tried to find the answer by looking at their source codes, but they are WAY too complex for a humble wannabe intermidiate-level PHP coder like me! Code:

View Replies !
Functions In Php4.3 Different Than 4.2?
i upload a website in php that includes files where some functions are defined. it's workin on my local box but on the remote machine the functions are not recognized. so what i get is ...unknown function blahblah in line...? on my box php4.2 i guess on the remote machine 4.3 .

View Replies !
PHP4 Functions In PHP3
An error in my configuration-file (probably) in PHP4 installed by EasyPHP makes it neccesary to use PHP3 local. And therefore, some functions are unavailable.

Who knows a proper function for array_shift and in_array?
Somebody gave me something, but it doesn't seem to work very good:

<?
function in_array($needle,$haystack)
{for($i=0;$i<count($haystack) && $haystack[$i] !=$needle;$i++);
return ($i!=count($haystack));}
function array_shift($array) {
$value_from_beginning=$array[0];
for($i=0;$array[$i];$i++) {
$array[$i]=$array[$i+1]; }
unset( $array[$i] );
return($value_from_beginning); }?>

View Replies !
[PHP4.3] Are Not-used Functions Compiled By PHP?
[concerning PHP4.3]

I have an includefile that I (ahum) include in many scripts.
It contains only functions I need now and then.

Now I was wondering how things work behind the scenes.
Is the whole file loaded and compiled/interpreted every time a php-file is
used that includes this file?
That would be an unwanted extra load for my server.
If so, I should consider splitting up that file in some smaller files, but
that is of course extra overhead for me.

I have no idea how this works.
Can anybody enlighten me?

View Replies !
PHP4 Network Functions
I'm pretty sure that this problem has nothing to do with PHP and a whole lot
to do with my server config, but I've got no idea where to start.

On my server I can't get any of the network functions to work, eg getmxrr()
returns an empty array whereas on another server it will return a populated
array.

Sendmail functions perfectly and I can ping the remote machines, so it's not
a problem with iptables stopping outgoing traffic, or with named.

Is anyone able to send me in the right direction ?

View Replies !
PHP4 - Zlib Functions Not Working
I had to update my server configuration consisting of Apache2 and PHP4. I
now have installed:

apache2/apache2-prefork 2.0.54-2.1
apache-mod_php4/php4-zlib/php4 4.3.11-0.3.1

"Regular" PHP scripts work just fine, but the websvn script is acting up -
after selecting a repository the page just "hangs", i.e. the browser waits
"forever" for a response. If that happens there is no error message in the
server log and it looks like the thread just gets stuck and never returns.
Using Gubed I tracked it down to the zlib functions, i.e. whenever the
script calls a line like

$output = transArray(gzfile($cachedname));

it hangs there and I can't get control over it anymore. Does anybody have
some insight whether I miss anything or tips how i can track this down
further?

View Replies !
IMAP Messages -- Move Them To A Folder On A DIFFERENT IMAP Account.
Is it possible to move a message from one IMAP account to another?

View Replies !
DBM Functions:: Undefined Functions Error
I have been trying to use the DBM Functions (dbmopen etc) in php but always get an undefined funtion error. Do I need to load something or change something in the .ini file to get it to work?

thanks
MIke

View Replies !
File System Functions &amp; FTP Functions
I guess what I am really after is more of an explaination to what are the differences between the two sets. The manual really does a piss-poor job of explaining things sometimes. Some miss the 'introduction' completely Either way, I tried google and a search before I posted but here I am.

View Replies !
PHP And IMAP
i am writing an IMAP client with php. the start is made, and i ge all the folder listings and headers and all, but how do i read a message ?

View Replies !
Imap/ssl
I was just wondering if there is a way to connect to the secure imap
server (port 993) without having --with-imap-ssl option turned on. I
have --with-imap and --with-openssl and recompiling php is not an option
(I'm not the server owner).

View Replies !
Php Pop/imap
How would you implement a PHP webmail client that is connecting to a POP server but indicating that you would like messages to be left on the server? How is this performed?
I could just establish a imap connection and pull down emails - however, if a message is permanently deleted locally but on the server, it'll just get pulled down again.

View Replies !
PHP 4.3.4 And IMAP
Is there any way to force PHP when compiling with IMAP support, not to use
kerberos? I keep getting undefined errors involving GSSAPI. I have compiled
the C-client with an with out SSL, however the php install still continues
to look for the GSSAPI.

View Replies !
IMAP
i have an emailserver (sendmail) coded using php.But i cannot read mails in my machine using imap function in php. when i use imap_open function in php i am getting a warning cannot open stream...

i am using redhat9. DO u need any further information. its urgent. its apart of project work at college. i have to submitt it within 2 days. Is there any configuration for imap .

I am able to access mails using evolution and imap://user@localhost. My host name is xpressmail.com hence imap://vivu@xpressmail.com . but its notworking when i use php function Code:

View Replies !
Using Imap
i have this code to connect to newsgroups, which connects great using imap, but im not sure how to retrieve the data like headers and such once connected, is there any tutorial about on the subject at all? Code:

View Replies !
IMAP In Box
I have this code PHP Code:

<?php
$mbox = imap_open("{localhost:143}", "username", "password");

echo "<h1>Mailboxes</h1>
";
$folders = imap_listmailbox($mbox, "{localhost:143}", "*");

echo "<h1>Headers in INBOX</h1>
";
$headers = imap_headers($mbox);

if ($headers == false) {
   echo "Call failed<br />
.......

View Replies !
How I Can Add Imap Extension
So.. I have Php4 installed in apache webserver and now I would like use imap functions, but I think imap -extension isn´t installed. How can I add an extension into php4. Do I have to install the package again or can I add it "on the fly"?

View Replies !
Imap Attachments
Can anyone tell me how to read mail attachments thru php.
is there any imap function which does this.

View Replies !
IMAP Questions
I've spent hours, days .... weeks(!) reading the manual, but still can't find answers to my questions regarding the use of some IMAP functions and their miscellaneous properties.

From now, I'm gonna list all those questions on this thread and see if some of you can provide even partial but useful comments.

Question number ONE : imap_setflag_full

In imap_setflag_full($mbox, "2,5", "Seen Flagged"); we have the string sequence "2,5" but I fail to understand if it is safe or not to choose any sequence I want regardless of the message structure.

For example, if I apply a "Flagged" flag on all incoming messages exclusively at "2,5", is it possible that I could overwrite some precious information in that particular place? What are the implications of such a method?

View Replies !
IMAP PHP Issue
I am trying to compile University of Washington IMAP C-Client with PHP 4.3.4
on a Red Hat 6.2 to no avail. The most common error message has something to
do with auth_gssapi_vaild. I have tried compiling it with and with out
kerberos, ssl. I have tried various clients and I have re-installed
kerberos.

View Replies !
Help Needed In IMAP+PHP
I am having a mail client script, which will read and send mail to mail
server, using IMAP. When i am sending mail with attachment through
forwarding, the attachment is not getting attached correctly, Plz any
one can help me to come out of the problem.

Note : I am using PHP 4.3.10 + IMAP + Apache +Zend Engine v1.3.0



View Replies !
PHP IMAP Problem
i've got a problem with imap_open(). when i try to log in with a wrong
password, it doesn't le me in. perfect. but i can see that it tries to
log in three times (maybe three different modes like kerberos etc?).
now, the mailserver is configured, that it will lock a user as soon as
he types in a wrong password three times. that works fine with outlook
maybe, but it means for my web interface i have only one chance, i
mustn't mistype.

there are some possibilities on exchange's side like putting the count
of failed logins until locking up to 9 or disabling some login modes
maybe. but these are unlucky alternatives. i need a php side way. any
ideas?

View Replies !
[PHP] Webmail Without Using Imap
I'm busy with making webmail for my site. I've finished it but when i test it i get the error that imap_open is a unkown function. I've send a email to the support desk of my hosting company and they told me they don't support imap . Is there a other way to open a pop3 e-mail box and reading message etc. without using the imap functions.

View Replies !
Imap - Set Up The Web Mail
if i use the php4.0, it is support the imap function ? i want to set up the web mail, it is just install the php apache mysql mail server, still need others...

View Replies !
IMAP Attachment
I've got everything else for my webmail software written, I just cant figure out how to view (in the case of pictures) or download (in any other case) attachments.
I've gotten everything else working, I get headers and parse them, click on the subject to view the message.

Inside the message I have it set currently to just view INLINE messages and shows the headers nicely at the top along with how many attachments (if any) there are and what the file names are. I just need a function to get the attachment for me. Can anyone PLEASE help me, I know someone has to have done something similar to this before.

View Replies !
PHP IMAP Setup
I am running FreeBSD box 4.5 , i am trying to install PHP, Courier-IMAP and IMP well i have it working except for the PHP IMAP support i am quite new to all this system admin stuff so i'll tell you how i installed PHP /usr/ports/www/mod_php4

i did make , and make install and then choose options from the scrren ie IMAP etc It give a few errors sorry they flew past too quick , anyway even when i put the follwoing line into php.ini extention=imap.so , i get the error that imap.so cant be found Everything else is ok as i have tested the IMAP Server with Sqwebmail but i was trying to get IMP to work. IMP wokrs fine but i get an "invalid function error" for all IMAP functions so it doesnt really work at all.

View Replies !
Gmail Imap
I have tried every possible combination to get gmails imap working through php using imap open why cant I connect is anyone else having this problem? Code:

View Replies !
PHP IMAP And X-Headers
I'm trying to parse incoming e-mail. The information I need is in the X-Header of an e-mail. I have the following code:

View Replies !
Imap - Pop3
I'm writing a script to read view and store my emails. Something like hotmail. Would I need to use IMAP or POP3?

View Replies !
Php With IMAP Support
I am getting an error Call to undefined function: imap_open(). so i did some google research and it says you have to compile php with imap support. So i looked at my phpinfo() and it shows that it was compiled with --with-imap-ssl=../imap-2001a . I guess the latest version is 2001e so is 2001a to old to support imap_open() or am i missing something else?

View Replies !
Imap Issues
I have searched the forums and the www and cannot find an answer to my specific question. I am writing a script to read emails from an IMAP server.

Everything is fine until I have an attachment. When I have an email with an attachment the message is not displayed. When I fix it so that the message is displayed, it prints out a bunch of garbage surrounding the message.

View Replies !
Imap Extension
I have installed Php using Zip, and it is working fine,, now i have just uncommented the extension = php_imap.dll and when i try to use its function imap_open i get No output in Browser, No Warning, No Error and not any output of other codes on page, I dont know why it is happeneing, extension is on c:phpextensionsphp_imap.dll and on php.ini extension_dir = "C:phpextensions"

any idea? My Test page code is

<?
$k = imap_open("ssdf","sdfsdf","sdfsdf");
echo "sfsd";

?>

View Replies !
Imap Dll And Php.ini Configuration
I am running PHP on a Windows 2000 box running IIS.

I want to configure my server to usethe imap dll.

Is it possible to simply copy the dll into the php directory and then enable it within the php.ini file?

I am more used to Apache setups so I am not 100& clear how PHP works on IIS.

My php.ini is located in the following location:

c:/winnt

But there is also a PHP folders :

c:/php

I have placed the imap.dll in the php folder and uncommented the line in the php.ini file.

Is there anything else I need to do or am I over simplyfying things here?

I noticed there is also a line in the php.ini where you can specify the module extensions directory, do I need to do this and if so what would it be inmy case. I did try "c:/php" but this seemed to cause php not to start correctly.

View Replies !
IMAP -- Raw Return Only
Anyone know if it's possible to fetch a raw message entity using IMAP? I can't seem to find any reference to it in the imap docs, though I'm sure it's a part of the process given that it parses everything out for you otherwise.

View Replies !
Couier-imap
can anyone solve problem installing courier-imap,vpopmail,mysql with php..4.2.2???
this two error occured at ./configure time

cannot find rfc822.h, check your imap installation..

&

cannot find mysql.header file in /usr/include/mysql

View Replies !
Imap Streams
I am trying to write a webmail interface, where an user can suply servername, username and password to gain access to his pop3 mailbox.

When the user is logged in, he should see the inbox, and be able to click on a messages to read it.

The problem is, that when you click on a messages you want to read, a new page must be loaded, where the messages is shown, but when this happens, the imap stream from the imap_open function is no longer valid. I've tried to pass it with the GET method, but then it gets corrupted on the new pages.

Can I solve this problem, whitout having to pass the servername, username and password everytime a new pages is loaded, and without using imap_open on every pages?

View Replies !
Dreamhost And IMAP
and has gotten the email section functioning running on dreamhost. I've looked ove the imap_opne stuff on php.net but i cant get it to work on the server. I keep getting this error

Fatal error: Call to undefined function: imap_open() in /home/.langer/hiten/sincerelyhiten.com/organizer/email.php on line 26

any idea on how to fix it or maybe dreamhost isnt setup for me to do this cause the imap option might not be available.

View Replies !
Imap - How To Get Msg Number??
can anyone tell me where the $msgno is coming from??

i have seen a ton of examples that pass $msgno or $msgid in to a imap_fetchstructure or imap_fetchbody function but i can't see where they are getting a msg number??

$mbox = imap_open ("{ourdomain.com/imap/notls:143}", "$username", "$password");

$msg_struct = imap_fetchstructure($mbox, $msgno);

i connect just fine, can read the folders and see how many messages there are....
but i can't seem to get the structure split out so i can grab the message content. i get various errors depending on what i try...

all i want to do is grab the text & subject to dump in a db.

View Replies !
IMAP And SMTP
i have a webmail page, you log in you check email you log out, simple. What i want is on the front page where the log in is, is two details IMAP and SMTP i would like the PHP script to show if they are online, as they are on different servers to my other sites. So on the page i would like two images, displaying online or offline depending on the status of the mail server.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved