• 欢迎访问“我的谷歌公园”的博客-我的谷歌公园,我是谷歌迷妹
  • 如果您觉得这个博客非常有看点,那么赶紧使用Ctrl+D收藏吧!
  • Google 产品电报群:https://t.me/bestgvservicer 微信:kuajinggoservice
  • 本站对应淘宝小店一:https://shop358185765.taobao.com/,喜欢就去踩一踩吧
  • 本站对应淘宝小店二:https://shop71129320.taobao.com/,喜欢就去踩一踩吧

Google Voice实现自动保号的办法 —Google Apps Script 自动回复短信

Google Voice Haha 11个月前 (07-20) 955次浏览 已收录 2个评论

function autoReplier() {

var labelObj = GmailApp.getUserLabelByName(‘Autoreply‘);

var gmailThreads;

var messages;

var messagecount;

var sender;

var num = 5;  //

var hours =12;  //

 

for (var gg = 0; gg < labelObj.getUnreadCount(); gg++) {

gmailThreads = labelObj.getThreads()[gg];

messages = gmailThreads.getMessages();

messagecount = gmailThreads.getMessageCount();

for (var ii = 0; ii < messages.length; ii++) {

 

if (messages[ii].isUnread()) {

 

msg = messages[ii].getPlainBody();

sender = messages[ii].getFrom();

 

if (messagecount < num){

MailApp.sendEmail(sender, “Auto Reply”, “Hi, 朋友您好!本人的2家淘宝店与一家独立站Google Voice均有在售:1-淘宝(店名:哈哈诺诺大方的小店);2-独立站:www . guokezhihui . com(下单时可以把本链接中空格删除,网页产品更丰富);3-淘宝店铺二(店名:跨境Go服务站)。直接下单购买全新GV,自动发货。批量客户私聊!欢迎介绍朋友过来购买,记得保号哦!“);

}else if( (messages[messagecount – 1].getDate().getTime() – messages[messagecount – num].getDate().getTime()) > hours * 60 * 60 * 1000 ){

MailApp.sendEmail(sender, “Hi, 您好!我们已经发了好几条信息了,可以停下来休息休息一下了!购买GV记得找我哦!“);

}

messages[ii].markRead();

messages[ii].moveToTrash();

 

}

}


MyGGPark , 版权所有丨如未注明 , 均为原创
本文标题:Google Voice实现自动保号的办法 —Google Apps Script 自动回复短信
转载请保留页面地址:https://www.myggpark.com/how-to-autoreply-messages-in-google-voice/
喜欢 (113)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(2)个小伙伴在吐槽
  1. 你好。我怀着极大的兴趣阅读了你的文章。我一直在为谷歌语音号码的丢失而苦恼,所以你的方法很有参考价值。由于我是外国人,我想问你一个问题,因为有些翻译和细微差别对我来说很难理解。你在文章的结尾写道:"但是使用脚本会出现禁封,上面演示用的自动回复的GV号,我已经使用了长达两年之久,但一启动自动保号脚本,账号就被封了。" 你说。你的意思是说,这种 "Google Apps Script 自动回复短信 "的方法不被推荐?老师,我很想知道。
    瀬川明2022-08-26 19:49 回复 Windows 10 | Chrome 104.0.0.0
    • I have updated the Google Apps Script method in the renew article.Actually,according to my recommend methold in the article,first set up the remined message from IFTTT then reply the message once a month manually. About half year later,you can open the Google Apps Script auto-reply system with IFTTT then you can start up the auto-reply to keep your GV safely.
      Haha2022-09-27 13:37 回复 Windows 10 | Chrome 105.0.0.0