php 用 imap_open 的認証
今天為了要一個利用Email帳號來認証使用者的認証程序,之前都利用fopen 的函數來做認証,今天想說用imap_open 來認証比較簡單,可是在設定上一直不能用,php manual 上的demo 是
{localhost:110/pop3}INBOX 或 {localhost:110/pop3} 可是都不行,而在網路上有人用 {localhost:110/pop3/notls} 竟然就可以了,後來查了一下才知道,原來 notls是不使用傳輸層級安全性(TLS) 驗證,可能是我的server沒有支援TLS,以後再研究,可以用 imap_open 認証,真的很方便,只要一行就可以認証
@$mbox = imap_open("{".$host.":110/pop3/notls}",$user,$passwd);
上面一行就可以了,其中 $host => mail server, $user => 使用者 , $passwd => 密碼,以前用 fopen 去開 110 port 要寫7,8行才可以
迴響
php 用 imap_open 的認証 | 豬窩 | 13
If you would like to get a good deal from this article then you have
to apply these strategies to your won website.
php 用 imap_open 的認証 | 豬窩 | 9
Thanks for any other informative site. Where else may just I am getting that type of info written in such an ideal approach?
I've a venture that I'm just now working on,
and I have been at the look out for such info.
php 用 imap_open 的認証 | 豬窩 | 13
My brother recommended I might like this web site. He used to be entirely right.
This post actually made my day. You cann't imagine just how so much time I had spent for
this info! Thanks!
php 用 imap_open 的認証 | 豬窩 | 8
Thanks for ones marvelous posting! I certainly enjoyed reading it, you could be a great author.
I will always bookmark your blog and may come back in the future.
I want to encourage that you continue your great posts, have a nice morning!
php 用 imap_open 的認証 | 豬窩 | 9
Hmm it appears like your website ate my first comment (it was super long) so I guess I'll just sum it up what I had
written and say, I'm thoroughly enjoying your blog.
I as well am an aspiring blog writer but I'm still new to the whole thing.
Do you have any recommendations for first-time blog writers?
I'd genuinely appreciate it.