Questions tagged [imap-open]

It is a member of PHP's collection of functions dedicated for dealing with IMAP (Internet Message Access Protocol)

61 questions
1
vote
2 answers

PHPMailer how to save an email in Sent items folder on Outlook after being sent in PHP

I am using PHPMailer to send emails notification from our internal stmp server in the company. The emails are sent successfully but not stored in the sent Items folder on Outlook.
DevTN
  • 511
  • 2
  • 9
  • 35
1
vote
2 answers

php imap_open with microsoft exchange (outlook web app)

The company where I work moved from Lotus Notes to Microsoft Exchange with Outlook Web App. With Lotus Notes, my PHP script works just fine, since 2014. Since the move to MS Exchange, PHP's imap_open cannot access this mail account anymore. My PHP…
MrMacvos
  • 103
  • 2
  • 8
1
vote
2 answers

How to read body content from email in php using imap

I am using imap_open() php function for reading emails from my mail account and it is working, I am able to get the header, subject, body and attachment. But I want to get some content from body (sample body below):- Ticket : 123456789 Special…
1
vote
1 answer

Open shared exchange email account with imap_open() PHP

In exchange environment I have PHP application setup to open and IMAP stream and parse emails. I have no problem connecting to my personal email account with the following: imap_open("{exchange.server/ssl}INBOX", "username", "password"); Now I have…
Ryan Litwiller
  • 497
  • 5
  • 24
1
vote
0 answers

imap_open not working on gmail

I'm trying to connect to Gmail from a script hosted on a shared hosting server. Here is the code I use : $mail = imap_open('{'imap.gmail.com:993/imap/ssl}INBOX', $username, $password); When running imap_errors I get the following: "Retrying PLAIN…
Vincent Teyssier
  • 2,146
  • 5
  • 25
  • 62
1
vote
0 answers

imap_open parse and insert into database

I am trying to fetch my emails, parse them, and insert them into my database. I am pretty far along on parsing, but the inserting part is not going well. $headerost = 'imap.gmail.com'; $user = 'email@gmail.com '; $pass = 'password'; $port =…
1
vote
1 answer

"imap could not open" - What is the path to my Sent folder?

I send mails with PhpMailer, but I would like to save the mails in the "Sent" folder in my webmail and Outlook. I have a script but it could not open (imap_open) the file. What is the correct path? Here is the…
1
vote
1 answer

php imap_open giving issues connecting

I am having some issues with imap_open. This is the error I am getting: Message: imap_open(): Couldn't open stream {imap-mail.outlook.com:993/imap/ssl/novalidate-cert}INBOX No matter if its imap using ssl on port 993 or pop ssl on port 995, I am…
Rick
  • 555
  • 1
  • 12
  • 30
1
vote
1 answer

Using imap_pop under php on wamp server 2.4

I am trying to access gmail via php running under wampserver 2.4. For simplicity, this is from a localhost (the actual application is much more complex). Following some standard examples, I am able to both receive (via pop or imap) and send (via…
1
vote
1 answer

GMAIL imap_open invalid remote specification (errflg=2)

I'm trying to access gmail account messages by imap_open. This is my code: $mbox = imap_open ("{imap.gmail.com:993/imap/ssl}", "gama.***@gmail.com", "password"); This is my php.ini: imap IMAP c-Client Version 2007f Kerberos Support …
Mauro Gama
  • 11
  • 1
  • 2
1
vote
1 answer

Mac OS X Mavericks: PHP error "imap_open() [function.imap-open]: Couldn't open stream"

I have an issue with imap_open function. It seems that my connection doesn't work on Mac OS X and I don't know why. If I try it on Windows (I am using WAMP), it works as expected without any issues. If I try the exact same code on Mac OS X…
John Skoumbourdis
  • 3,041
  • 28
  • 34
1
vote
1 answer

How the server must be configured to be able to connect to mailbox via php script

I have spent 8 hours on this, and still can't get it right. My situation: My server is running on Linux xrm 2.6.32-5-amd64; In console: openssl s_client -connect ns1.example.com:995 works flawlessly, successful connection. But when i execute this…
1
vote
1 answer

why is imap not working in PHP?

I'm creating a script to connect to a mailbox using IMAP everytime I run it I get this error... Fatal error: Call to undefined function imap_open() in C:\xampp\htdocs\CheckContents\index.php on line 11 does anyone know why??
Daniel Morgan
  • 21
  • 1
  • 5
1
vote
1 answer

imap_open: Can't open stream

I'm trying to use imap_open() for my FatCow email account. Here's my code: $mbox = imap_open("{imap.fatcow.com:143}", "account@domain.com", "password"); Here's what I receive: Warning: imap_open() [function.imap-open]: Couldn't open stream…
Sergey
  • 47,222
  • 25
  • 87
  • 129
0
votes
2 answers

imap_open recursively tried for password and fails

I m trying to use imap_open to open a remote mail box. When the password is incorrect it tries a number of time and gives warning and fails. Where as php list if imap_open is not successfully it will return false. This is not happening. Please…
Maanas Royy
  • 1,522
  • 1
  • 17
  • 30