[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-22-2006, 12:26 PM   #1 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


imap functions help

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
PoorDoggie is offline  
Old 05-22-2006, 02:47 PM   #2 (permalink)
Account Closed
 
abdulmueid's Avatar
 
Join Date: Jun 2005
Location: Mozambique
Posts: 608
1.85 NP$ (Donate)

abdulmueid has a spectacular aura aboutabdulmueid has a spectacular aura about


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
abdulmueid is offline  
Old 05-22-2006, 03:23 PM   #3 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


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 by PoorDoggie; 05-22-2006 at 03:43 PM.
PoorDoggie is offline  
Old 05-22-2006, 03:47 PM   #4 (permalink)
Account Closed
 
abdulmueid's Avatar
 
Join Date: Jun 2005
Location: Mozambique
Posts: 608
1.85 NP$ (Donate)

abdulmueid has a spectacular aura aboutabdulmueid has a spectacular aura about


>>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 by abdulmueid; 05-22-2006 at 03:52 PM.
abdulmueid is offline  
Old 05-24-2006, 02:38 PM   #5 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


Quote:
Originally Posted by abdulmueid
>>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)
PoorDoggie is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 03:57 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85