# 新增外掛：Cimy Swift SMTP（在wp上使用gmail的smtp服務）

- URL: https://justfly.idv.tw/%e6%96%b0%e5%a2%9e%e5%a4%96%e6%8e%9b%ef%bc%9acimy-swift-smtp%ef%bc%88%e5%9c%a8wp%e4%b8%8a%e4%bd%bf%e7%94%a8gmail%e7%9a%84smtp%e6%9c%8d%e5%8b%99%ef%bc%89/
- 日期: 2008-12-05
- 分類: WEB&amp;RIA
- 標籤: Google App, iis, install, php, WordPress, 外掛

既然已經用google app來管理自己網域的mail服務

當然希望wp也可以透過gmail的smtp來發信囉

查了一下相關的資料

本來是打算用[Swift-SMTP Mailer](http://wpmudev.org/project/Swift-SMTP-Mailer)來完成

安裝完後直接從0.94版升到1.0版

很愉快的用它的管理介面設好後卻一直出現

Error Number 24 and Error String Unable to find the socket transport “tls” – did you forget to enable it when you configured PHP?’]….

想說來看看[作者的blog](http://shiftthis.net/)有沒有解決之道

結果只看到她另一個要付費的外掛的資訊…..@@

再回頭google一下找到了[Cimy Swift SMTP](http://www.cimatti.it/blog/cimy-wordpress-plugins/cimy-swift-smtp/)

結果出現的錯誤訊息也差不多

才知道誤會了Swift-SMTP Mailer

不過Cimy Swift SMTP多了兩個欄位可以設寄件名稱跟email來源所以就沒再想換回來了

但問題終就是要解決麻

後來才發現是自己根本沒裝OpenSSL

於是參考[這一篇](http://jp.php.net/manual/ja/openssl.installation.php)把OpenSSL裝起來（又沒有中文＠＠）

接著把ssleay32.dll tmpssl32.dll libssl32.dll tmpeay32.dll從\OpenSLL\bin\ copy到 \php\ext\下

（有可能不需要全部啦^^”）

然後到php.ini把extension=php_openssl.dll打開後

在phpinfo()的Registered Stream Socket Transports看到ssl, sslv3, sslv2, tls就ok了
