iT邦幫忙

0

php mailer 大量寄發信件

請問各位前輩:
小弟想使用phpmailer大量寄發郵件,
想做到每傳送10封信件就暫停一段時間再傳,以免被大量退信
請問我該如何實做呢??
或者是有更好的方法??疑惑

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
8
cheaster
iT邦新手 4 級 ‧ 2011-02-17 13:19:40
最佳解答

應該不是從phpmailer下手,因為,它只是幫你寄信…

控制要不要寄跟停,是你設計的…

所以,你可以在寄信的那個程式區塊多加上sleep(秒)來讓php暫停…

如果你寄信的方式是一封一封寄,那你得有一個值去計算到十封時,做sleep

如果你是用十個十個寄一次,那你就是每寄一次sleep一次…

另外,insect大大說的意思應該是,無論你寄何種信,只要量一大,就會被mail server認為是junk…與內容是無關的

reyes iT邦新手 4 級 ‧ 2011-02-17 14:47:45 檢舉

謝謝您的提示,我再試試看~謝謝

4
insect
iT邦新手 3 級 ‧ 2011-02-17 04:52:54

It looks like you are trying to send junk emails.

I know how, but I am not going to tell you.

reyes iT邦新手 4 級 ‧ 2011-02-17 08:54:26 檢舉

I sent e-paper,not junk!

4
martchiu
iT邦新手 5 級 ‧ 2011-02-17 12:24:07

I want to know too.

我要發表回答

立即登入回答