Creating messages (ie drafts) in Gmail with IMAP/SMTP?

前端 未结 1 928
迷失自我
迷失自我 2020-12-24 03:36

I\'ve done quite a bit of inbox manipulation with Gmail via IMAP functions in PHP, but one thing I haven\'t found is a way to create messages. I\'m not sure if IMAP or SMTP

1条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 04:17

    You might want to look at imap_mail_compose()

    Edit This doesn't create the message on the server. You need to use imap_append() also.

    Further Edit This seems to work ok:

    0 讨论(0)
提交回复
热议问题