0

I want to send mail into selected mailbox(mail folder, Gmail's label) on a gmail account.

Actually, I made a function which is getting emails on selected mailbox through IMAP Protocol. But, now I have to make a function which sends emails into my selected mailbox.

How can i selectively send mail to this mailbox?

drakejin
  • 204
  • 1
  • 3
  • 12
  • your question is not clear. Is the difference between what you have been able to do and what you want to do, that earlier it was using IMAP and now you want to do it using python? – user1993 Mar 12 '17 at 09:34
  • Possible duplicate of [How to send an email with Gmail as provider using Python?](http://stackoverflow.com/questions/10147455/how-to-send-an-email-with-gmail-as-provider-using-python) – Ohjeah Mar 12 '17 at 10:00
  • @user1993 Hummm.... That mean I want to send mail into selected mailbox on gmail using python3. "mailbox" seems like gmail's label. – drakejin Mar 12 '17 at 12:21
  • @Ohjeah Actually, I saw that. But That is not mention about selected mailbox(label or mail folder)... – drakejin Mar 12 '17 at 12:23
  • @user1993 and Billal BEGUERADJ, thanks to your fixing my grammer – drakejin Mar 12 '17 at 12:27
  • Have you looked at the `APPEND` command? – Max Mar 12 '17 at 15:38
  • No....? What is it ??. Could you tell me more? @Max – drakejin Mar 13 '17 at 06:19
  • http://php.net/manual/en/function.imap-append.php – Max Mar 13 '17 at 13:29
  • That's perfectly right!!!!!! If you write answer about this question, I will select your answer. That's keyword help to me ! – drakejin Mar 14 '17 at 09:31

0 Answers0