Dynadot — .com Registration $8.99

Imap functions help

Spaceship Spaceship
Watch

PoorDoggie

Soon to be RICHdoggie!VIP Member
Impact
18
Hi - I have a string of questions for you here:

  • What are the default ports for pop3 and imap? My mail server is located at mail.domain.com but I can't access it by leaving out the port number (pop3). Not sure about imap, but would rather know for future reference.
  • My gmail account requires a connection "over ssl". Can I replicate this over php? (port 995 I think?) Is there an imap ssl connection available as well, and if there is, what is the port number for that?
  • thats it for now, until I think of something else to bore you with

Thanks a lot
Tom
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Hello PoorDoggie,

1. Default port for POP3 is 110. Default port for IMAP is 143

2. Yes, you can have a SSL connection in PHP. The IMAP functions in PHP can be used to open POP connections too. To use Gmail you would have something like
Code:
$gmail = imap_open ("{pop.gmail.com:995/pop3/ssl}INBOX", "user_id", "password");
SSL connections do not require a separate port number. SSL is basically added protection to your current connection on existing port.

3. You may bore me some more :P
 
0
•••
thanks a lot! :) will put that to practice :)

Thanks about me asking more questions as well, I am sure I will come across some more later on, oh wait here comes one:

is the default imap port in php 143? because with my host's mail server I can access my imap account without a port, but with the port 143 it "cannot connect". Any ideas?

Thanks
Tom

EDIT: got it - forgot the ":" between the server and the port! :)

Ok, here's one for you - is there any way of getting http mail via php?
 
Last edited:
0
•••
>>GLAD IT GOT SORTED<<

What do you mean by HTTP mail?

I have a question for you too: Why not use POP3? it is much simpler and most mail clients supports it... even PHP does
 
Last edited:
0
•••
abdulmueid said:
>>GLAD IT GOT SORTED<<

What do you mean by HTTP mail?

I have a question for you too: Why not use POP3? it is much simpler and most mail clients supports it... even PHP does
you see - I have three email accounts:
1. is my host's and they offer collection via imap (*sighs*)
2. is gmail which only offer pop3 (which still aint working... grr)
3. is hotmail which only offer HTTP mail (I think, but haven't really looked into it)
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back