calendar
calendar copied to clipboard
New and updated appointments are not sent via e-mail
Steps to reproduce
- Update NC to version 28.0.1
- Update Calendar to Version 4.6.4
- Login to NC and create a new calendar entry / appointment and invite some user or external attendee via e-mail
Expected behavior
The newly created calendar entry should be sent via e-mail to the invited attendee.
Actual behaviour
No e-mail is sent. Also no e-mails are sent for changed calendar entries.
Only if a newly created entry will be cancelled an e-mail with the cancellation is sent.
Regardless if you create the calendar item directly in nextcloud calendar app or via DAVx5 or Thunderbird calendar, the result is the same. No e-mail with the invitation are sent any more. This worked create before the last update to calendar version 4.6.4.
Calendar app version
4.6.4
CalDAV-clients used
No response
Browser
No response
Client operating system
No response
Server operating system
No response
Web server
None
Database engine version
None
PHP engine version
None
Nextcloud version
No response
Updated from an older installed version or fresh install
None
List of activated apps
No response
Nextcloud configuration
No response
Web server error log
No response
Log file
No response
Browser log
No response
Additional info
No response
I can understand the problem very well. Especially if invited people have a GMail address. Likewise, no emails will be sent if the appointment is created with an Android calendar app. At least it works in the Nextcloud Calendar WebGUI as long as no GMail address is invited.
Any update on this issue!
Same here, fresh install on Debian12, PHP 8.2, MariaDB, Apache, NC 28.0.2.
Further to that, creating an event via CalDav (Davx here), does not trigger sending an email to the invited
Can you check your logs for any errors? Can you also check your Mailer settings for your instance?
nextcloud.log Email Test is OK.
Nothing in the logs. Can you enable debug mode and try again?
Today I downloaded Google Calendar on my Android device and I created a new appointment with invited attendees and nextcloud calendar sent the expected invitations through email. If I do the same things in my Android calendar app called fossify calendar 1.0.2 (new version of simple calendar app) and start Davx5 to synchronize with my nextcloud, no invitations will be sent. Very strange.
As I can see, a new version of Davx5 will be released with the next hours. Version davx5-ose-4.3.13-ose-release.apk.
As Google calendar works maybe this bug is linked to Davx5?
On the other hand the invitations are also not sent if the calendar entry has been created directly in nextcloud itself.
This is really a critical bug for a calendar not to sent invites.
How can I help ?
I can't reproduce - invitations get sent. Is there anything special about the attendee email addresses? I've tried with both other users and external attendees and the emails get sent.
Are the calendar you're trying to invite someone to special? Calendars that have been shared / are shared with you?
Since Nextcloud 28.0.3 the emails have been sent again.
But it still remains unpleasant with Gmail addresses. If you send an appointment to a GMail address, the person can accept the appointment using the Nextcloud "Accept" link, but it will not be recorded as accepted in the calendar. Changes to appointments are entered as a new appointment. But that's probably a Google problem, right?
Equally problematic: If I receive an invitation (in K9 email) I cannot accept the appointment. Even in the Nextcloud Mail app, appointments cannot be entered in the calendar.
Calendars can now be subscribed to again.
Thank you!!
but it will not be recorded as accepted in the calendar.
you mean in the associated gmail calendar? No, it will not as the link leads to the nextcloud instance which is not connected to google calendar.
For any invitation you accept via link, if you don't use the integrated iMIP service (native accept/decline buttons in your clients) only the nextcloud instance calendar will be updated; unless you have an email address that is associated with a calendar principal on this nextcloud instance, then it will work. That is just how the protocol works.
I mean that the person otherwise has no opportunity to accept the appointment. Any appointment request from another calendar provider can be accepted using GMail and added to Google Calendar.
Unfortunately, there is no appointment request from the Nextcloud calendar. Only the ICS attachments.
Now I'm not sure whether this is a Google problem or a Nextcloud problem.
Sorry for my bad english. 😉
Sometimes emails are sent, sometimes not.
Can you tell me step by step what happens?
So:
- Create calendar event in Nextcloud
- Invite someone with a gmail address
- ???
and what you expect to happen, too? Maybe I can get a clearer picture what you're looking for and where the issue is.
Steps for new appointment:
- Create an appointment in the NC calendar (also ETAR, Google Calendar app).
- Invite participants [email protected]
- Sometimes an email is sent, sometimes not.
Steps for changing an appointment:
- Change the appointment in the NC calendar (also ETAR, Google Calendar app).
- Sometimes an email is sent, sometimes not.
When an email is sent, there are 1 - 2 .ICS files attached. The invitee's different mail client (Gmail App, K-9) sometimes interprets the invitation as such and offers "accept" / "reject". But sometimes not.
Expectation: [email protected] receives an email with an appointment invitation, which can be responded to with “accept” or “reject”.
Can you tell me if you use Ajax Cron, WebCron or Cron? You can find that in your admin settings in "Basic Settings".
I'm using CRON as recommended
Steps for changing an appointment:
1. Change the appointment in the NC calendar (also ETAR, Google Calendar app). 2. Sometimes an email is sent, sometimes not.
The second one might be down to what changed about the event (let's please call them events, appointments are another feature of the calendar app and it confuses me :sweat_smile: ). There's something called a "significant change" in calendaring, so if you only changed the title of an event, that is not enough to trigger an update email. If you change the date and / or time, that is.
Are there any special chars in those gmail email addresses you're sending too? Might be related to https://github.com/nextcloud/calendar/issues/2149 or if you're using Gmail for SMTP, it might be related to this: https://github.com/nextcloud/calendar/issues/3681
Ok, I understand. I have now tried again.
- created an event in the NC calendar
- invited [email protected]
- an invitation arrived, which I was able to accept
- moved the event in the NC calendar to another time
- an update arrived and could be accepted
- renamed event in the NC calendar
- event will not be renamed for someone else
- location in the appointment changed
- the location is not changed for another person
- event moved again.
- the appointment update was sent with a new name and could be accepted.
Unfortunately, it is not good that points 6 and 8 are not updated for the invited persons. This is because when a renamed event is canceled, it is not removed from the calendar.
The K9 Mail app does not recognize the invitation as an event. The GoogleMail app, on the other hand, does.
I don't know why it suddenly works now, but there was a recent update to the NC calendar. 🤷♂️
I will continue to monitor this. Maybe I can switch to Nextcloud completely soon.
It seems that mail is only sent when you create an event in the NC calendar. But not in an Android app like ETAR or the Google Calendar app.
It seems that mail is only sent when you create an event in the NC calendar. But not in an Android app like ETAR or the Google Calendar app.
How did you connect your Nextcloud Calendar to your Google Calendar App? Same for ETAR (although Ive never used that one myself).
As for the significant changes, the RFC defines the following properties that trigger a significant change:
"DTSTART"
"DTEND"
"DUE"
"RDATE"
"RRULE"
"EXDATE"
"EXRULE"
"STATUS"
The location is a CAN but not a MUST for the event. It's definitely worth a discussion if that should trigger an event.
The K9 Mail app does not recognize the invitation as an event.
That's very likely a K9 issue. We do set the correct Mail headers for Mail Clients to parse the invitation data.
I have DAVx5 installed on my smartphone, which allows me to see and edit the calendars in Google Calendar and ETAR.
I think it would be good if the change of location triggered information. It is equally important if the title of the event and a comment are changed.
This is also the case with standard calendars (Outlook/Exchange, Google Calendar, etc.).
I need to make a correction.
- create event in the NC calendar and invite [email protected]
- event invitation is sent and accepted
- event is moved to another time in the NC calendar
- event update is sent to [email protected].
- event update is accepted
- event is still displayed in the Google calendar at the old time
This means that the event update is not forwarded correctly.
I suggest you try this out for yourself. You will see that it does not work correctly.
I need to make a correction.
1. create event in the NC calendar and invite [[email protected]](mailto:[email protected]) 2. event invitation is sent and accepted 3. event is moved to another time in the NC calendar 4. event update is sent to [[email protected]](mailto:[email protected]). 5. event update is accepted 6. event is still displayed in the Google calendar at the old time
This means that the event update is not forwarded correctly.
I suggest you try this out for yourself. You will see that it does not work correctly.
is this a NC calendar that was added to google with DavX5? Or is it a Google calendar?
is this a NC calendar that was added to google with DavX5? Or is it a Google calendar?
No, this is the event that was created by the invitation in Google Calendar. Or what do you mean exactly?
You updated an event. You accepted an event. Which calendar did you store the accepted event in - a calendar created and managed by Google Calendar, or a calendar created and managed by Nextcloud that is accessible for you on your phone via DavX5.
The accepted event is in someone else's Google Calendar.
I think it has to do with when the content of an appointment is changed. If the title, location and/or description changes and then the time, it no longer works.
The same happens when someone else sends me an event. Postponements are implemented, but if the content of the event changes, the error also occurs there.