Google 日历插入不发送邀请电子邮件
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 工作域时,电子邮件会发送出去,但当他们不在时(例如 mike@ acme.com 邀请 joe@gmail.com,joe 没有收到邀请邮件)
您可能想尝试 G Suite Administrator Help、
中给出的解决方案
To make sure you receive notifications for new, changed, or canceled invitations, you need to update your default notification settings. See Customize your notifications.
此外:
With Google Calendar you can customize how and when you receive notifications. You can customize your notifications for new, changed, and canceled invitations. You can also customize your settings for invitation replies.
For instructions, see Change your default notification settings.
其他信息也可以在 Receiving notifications 中找到。
最后,如果这些仍然不起作用,您可能还想检查这个 Google forum with concern to event invites not being sent. Or, you may also log encountered issues here。
当我在 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 工作域时,电子邮件会发送出去,但当他们不在时(例如 mike@ acme.com 邀请 joe@gmail.com,joe 没有收到邀请邮件)
您可能想尝试 G Suite Administrator Help、
中给出的解决方案To make sure you receive notifications for new, changed, or canceled invitations, you need to update your default notification settings. See Customize your notifications.
此外:
With Google Calendar you can customize how and when you receive notifications. You can customize your notifications for new, changed, and canceled invitations. You can also customize your settings for invitation replies.
For instructions, see Change your default notification settings.
其他信息也可以在 Receiving notifications 中找到。
最后,如果这些仍然不起作用,您可能还想检查这个 Google forum with concern to event invites not being sent. Or, you may also log encountered issues here。