2014-02-28

In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution.
However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is **call outlook** as COM.

Let me introduce send email by YiiMailer/OutLook/IMAPI below, thanks.

- YiiMailer Sample

- Call Outlook example

The code is quite simple.
The key thing is how to enable DCOM in XAPMM enviroment.
In PHP.ini

- List email by IMAP.

Show more