getBcc()無法正常工作:
1.如果我們只有一個電子郵件地址,getBcc()的結果爲空;
2.如果我們有多個電子郵件結果不是空的,但沒有第一封電子郵件。Google腳本getBcc()
代碼:
我收到一個消息:
到:[email protected],[email protected]
CC:[email protected],[email protected]
BCC:5 @ g.com,[email protected]
google腳本:
var threads = GmailApp.search(「in:inbox」,0,10);
var to = threads [0] .getMessages()[0] .getTo();
var cc = threads [0] .getMessages()[0] .getCc();
var bcc = threads [0] .getMessages()[0] .getBcc();
//結果:
到= '[email protected],[email protected]'
CC = '[email protected],[email protected]'
BCC =「6 @ g.com'//沒有[email protected] !!!!
安置自己與上下文一起碼。 – Brian
我收到一個消息:
到:[email protected],[email protected]
CC:[email protected],[email protected]
BCC:[email protected],6 @ g.com
google腳本: var threads = GmailApp.search(「in:inbox」,0,10); var to = threads [0] .getMessages()[0] .getTo(); var cc = threads [0] .getMessages()[0] .getCc(); var bcc = threads [0] .getMessages()[0] .getBcc(); //結果: to ='[email protected],[email protected]' cc ='[email protected],[email protected]' bcc ='[email protected]'//沒有[email protected] !!!! 「 –