Find how to connect to SMTP server: Connect to SMTP mail server through IMAP

Recommend this page to a friend!
  All requests RSS feed  >  Find how to connect to SMTP server  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Find how to connect to SMTP server


by Andrew Ladenko - 3 years ago (2017-01-05)

Connect to SMTP mail server through IMAP

This request is clear and relevant.
This request is not clear or is not relevant.


I need to connect to a SMTP mail server through IMAP but I don't know what are available ports and when I am connecting through standard ports such as 995, 993 there is broken connection on the server side.

This is Microsoft Exchange mail server. It seems I need to explore different connections, but I don't know how.

Ask clarification

1 Recommendation

MIME E-mail message sending: PHP mailer to compose and send MIME messages

This recommendation solves the problem.
This recommendation does not solve the problem.


by Manuel Lemos package author package author Reputation 17800 - 3 years ago (2017-01-05) Comment

IMAP is not for sending messages, it is for receiving, despite PHP IMAP extension has a SMTP message delivery functions.

This MIME message package can compose and send message via SMTP connections or with just PHP regular mail function.

Typically Microsoft Exchange uses the port 465. You can use this example script to test send messages via SMTP to Microsoft Exchange with this package.

  • 1 Comment
  • 1. by Andrew Ladenko - 3 years ago (2017-01-05) Reply

    Thank You, Ill try this... but main goal that I Want to achieve is to save all attachments from INBOX to disk folders.

Recommend package
For more information send a message to info at phpclasses dot org.