Edit
by Andrew Ladenko - 8 years ago (2017-01-05)
Connect to SMTP mail server through IMAP
| 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
Class that may be used to compose and send e-mail messages.
It features:
- User definable headers and body parts.
- MIME encoding of text and HTML body parts with user defined character encoding using quoted-printable.
- Addition of file parts (attachments) with automatic content type detection.
- Forwarding of messages received from somebody else as intact attachments
- Support for multipart/related messages (eg. HTML messages with embedded images, stylesheets, frames, etc..)
- Support for multipart/alternative messages (eg. text and HTML versions in the same message).
- Encoding of message headers with user defined character encoding using q-encoding.
- Definition of the error delivery address setting the Return-Path header calling sendmail program directly.
- Several sub-classes for sending messages by different methods: PHP mail() function, sendmail, qmail, SMTP (with support for authentication and direct delivery mode), maildrop in Microsoft IIS or Exchange Pickup folder.
- Wrappers that emulate the mail() function using the SMTP, sendmail and qmail delivery sub-classes.
- Support for sending personalized bulk mail by replacing the contents of the message parts that differ for each recipient.
- HTML and plain text message parts can be composed using template engines. An example that works with Smarty template engine is provided.
- Retrieving the composed message data or size without sending the message
| by Manuel Lemos package author 26695 - 8 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 - 8 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.