2012-05-19 107 views

回答

1

從文檔

get_payload([i[, decode]]) 
    Return the current payload, which will be a list of Message objects when 
    is_multipart() is True, or a string when is_multipart() is False. 

    With optional argument i, get_payload() will return the i-th element of 
    the payload, counting from zero, if is_multipart() is True. 

通常HTML電子郵件發送的MIME消息。通常只有文本副本和HTML副本。你有沒有檢查你有多少部分信息,如果你試圖檢索其他部分?

相關問題