[英]Deep linking of URL in a google calendar invitation email is not working
[英]Google Calendar insert does not send invitation email
當我在 Android 上使用 Java API 將一個事件插入到 Google 日歷中時,該事件被創建,但與會者沒有收到邀請電子郵件,即使發送通知設置為 true。
final Event event = new Event()
.setSummary(topic)
.setStart(new EventDateTime().setDateTime(startTime).setTimeZone(timezone))
.setEnd(new EventDateTime().setDateTime(endTime).setTimeZone(timezone))
.setAttendees(Arrays.asList(new EventAttendee().setEmail(inviteeEmail), new EventAttendee().setEmail(hostEmail)))
.setOrganizer(new Event.Organizer().setEmail(hostEmail))
.setHangoutLink(null);
try {
final Event insertedEvent = getCalendarService(googleAccountCredential).events().insert(CALENDAR_PRIMARY, event)
.setSendNotifications(true).setOauthToken(googleAccountCredential.getToken()).execute();
return insertedEvent.getId();
} catch (final Exception e) {
我已經嘗試了類似問題中列出的建議,但無濟於事。 是否存在不發送邀請電子郵件的條件?
更新:當受邀者與發件人在同一個 Google for Work 域中時,電子郵件會發出,但不在時不會發出(例如,mike@acme.com 邀請 joe@gmail.com,joe 沒有收到邀請電子郵件)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.