mirror of
https://github.com/rickbarrette/redmine_qbo_reminders.git
synced 2026-11-17 21:00:36 -05:00
New plugin: email customers appointment reminders
Reminders for redmine_qbo_calendar appointments, to the customer's email in QuickBooks, sent from your own mailbox through Google Workspace's SMTP relay (or Gmail SMTP with an app password, or Redmine's email settings). - Schedule: N days before at a set time, only within sending hours, not within N hours of the appointment; rescheduling sends one for the new time - Plain text + HTML from an editable template with placeholders and sections, calendar (.ics) attachment, Message-ID on the sending domain - Each reminder claimed in the database before sending (no duplicates across processes); failures retried 3 times - Appointment page: status and Send now / Send again; customer page: turn reminders off; settings: test email, recent reminders, send due now - Runs on page loads every 10 minutes, or from cron via rake redmine:appointment_reminders:send - README covers Google Workspace setup and SPF/DKIM/DMARC Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
This commit is contained in:
28 files changed
+1482
No files matched your search
@@ -0,0 +1,90 @@
|
||||
en:
|
||||
permission_send_appointment_reminders: "Send appointment reminders"
|
||||
|
||||
label_appointment_reminder: "Reminder email"
|
||||
label_appointment_reminders: "Appointment reminders"
|
||||
label_appointment_reminder_appointment: "Appointment"
|
||||
label_reminders_customer: "Customer"
|
||||
label_reminders_sent_at: "Sent"
|
||||
label_reminder_status_pending: "Sending"
|
||||
label_reminder_status_sent: "Sent"
|
||||
label_reminder_status_failed: "Failed"
|
||||
|
||||
text_reminder_sent: "sent %{time} to %{email}"
|
||||
text_reminder_sending: "being sent to %{email}"
|
||||
text_reminder_failed_retry: "couldn't be sent to %{email}; it will be tried again."
|
||||
text_reminder_failed: "couldn't be sent to %{email}, and won't be tried again on its own."
|
||||
text_reminder_scheduled: "will be sent %{time} to %{email}"
|
||||
text_reminder_off: "reminders are turned off in the plugin's settings."
|
||||
text_reminder_opted_out: "turned off for this customer."
|
||||
text_reminder_status: "not sent for %{status} appointments."
|
||||
text_reminder_no_customer: "this appointment has no customer."
|
||||
text_reminder_no_email: "the customer has no email address in QuickBooks."
|
||||
text_reminder_too_late: "not sent: the appointment is too soon (or past)."
|
||||
text_reminder_send_again_confirm: "This customer already has a reminder for this appointment. Send another?"
|
||||
button_send_reminder_now: "Send now"
|
||||
button_send_reminder_again: "Send again"
|
||||
notice_reminder_sent: "Reminder sent to %{email}."
|
||||
error_reminder_no_email: "The customer has no email address in QuickBooks."
|
||||
error_reminder_failed: "The reminder couldn't be sent: %{error}"
|
||||
|
||||
text_customer_reminders_on: "on"
|
||||
text_customer_reminders_off: "off for this customer"
|
||||
button_reminders_off: "Turn off"
|
||||
button_reminders_on: "Turn on"
|
||||
notice_reminders_off: "%{customer} won't get appointment reminders."
|
||||
notice_reminders_on: "%{customer} will get appointment reminders."
|
||||
|
||||
label_reminders_sending: "Sending"
|
||||
label_reminders_enabled: "Send reminders"
|
||||
text_reminders_enabled: "Email customers a reminder before their appointments, at the address on their QuickBooks customer."
|
||||
label_reminders_from_name: "From name"
|
||||
label_reminders_from_address: "From address"
|
||||
text_reminders_from_address: "A mailbox you own on your domain (e.g. sales@…), so replies come back to you and the mail passes SPF, DKIM and DMARC."
|
||||
label_reminders_reply_to: "Reply-to address"
|
||||
text_reminders_reply_to: "Optional: where replies go, when not the From address."
|
||||
label_reminders_delivery: "Send through"
|
||||
label_reminders_delivery_smtp: "This SMTP server (e.g. Google Workspace)"
|
||||
label_reminders_delivery_redmine: "Redmine's email settings (config/configuration.yml)"
|
||||
label_reminders_smtp_address: "SMTP server"
|
||||
label_reminders_smtp_port: "Port"
|
||||
text_reminders_smtp_address: "Google Workspace: smtp-relay.gmail.com (SMTP relay service), or smtp.gmail.com with an app password; port 587. The connection is encrypted (STARTTLS)."
|
||||
label_reminders_smtp_domain: "Domain"
|
||||
text_reminders_smtp_domain: "Your domain, sent when connecting (Google's SMTP relay requires it). Blank: the From address's domain."
|
||||
label_reminders_smtp_user_name: "User name"
|
||||
label_reminders_smtp_password: "Password"
|
||||
text_reminders_smtp_auth: "The mailbox and its app password. Leave both blank when the SMTP relay allows this server by its IP address."
|
||||
|
||||
label_reminders_schedule: "Schedule"
|
||||
label_reminders_send: "Send"
|
||||
label_reminders_days_before_at: "days before the appointment, at"
|
||||
text_reminders_send: "0 sends on the day of the appointment. Appointments booked after that time still get a reminder right away."
|
||||
label_reminders_window: "Only send between"
|
||||
text_reminders_window: "If reminders are late (e.g. Redmine was down), they wait for this window instead of going out at night."
|
||||
label_reminders_min_lead: "Not within"
|
||||
label_reminders_hours: "hours of the appointment"
|
||||
label_reminders_time_zone: "Shop time zone"
|
||||
text_reminders_time_zone: "The time zone appointment times are entered in."
|
||||
label_reminders_statuses: "For appointments that are"
|
||||
label_reminders_check_on_page_loads: "Check on page loads"
|
||||
text_reminders_check_on_page_loads: "Look for due reminders every 10 minutes while Redmine is in use. With the rake task in cron (see the README) this can be off."
|
||||
|
||||
label_reminders_message: "Message"
|
||||
label_reminders_shop_name: "Shop name"
|
||||
label_reminders_shop_phone: "Shop phone"
|
||||
label_reminders_shop_address: "Shop address"
|
||||
label_reminders_body: "Message"
|
||||
text_reminders_placeholders: "Placeholders:"
|
||||
text_reminders_sections: "{{#vehicle}}…{{/vehicle}} shows only when there is a vehicle; {{^vehicle}}…{{/vehicle}} only when there isn't. Sent as plain text and as simple HTML."
|
||||
label_reminders_attach_calendar: "Attach calendar file"
|
||||
text_reminders_attach_calendar: "An .ics file, so the customer can add the appointment to their calendar."
|
||||
label_reminders_test: "Send a test to"
|
||||
button_reminders_send_test: "Send test email"
|
||||
text_reminders_test: "A sample reminder with the settings on this page (saved or not)."
|
||||
notice_reminder_test_sent: "Test reminder sent to %{email}."
|
||||
|
||||
label_reminders_recent: "Recent reminders"
|
||||
button_reminders_run: "Send due reminders now"
|
||||
text_reminders_run: "Uses the saved settings."
|
||||
notice_reminders_run: "Reminders: %{result}."
|
||||
error_reminders_disabled: "Reminders are turned off. Turn on Send reminders and save first."
|
||||
@@ -0,0 +1,18 @@
|
||||
#The MIT License (MIT)
|
||||
#
|
||||
#Copyright (c) 2026 rick barrette
|
||||
#
|
||||
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
#
|
||||
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
RedmineApp::Application.routes.draw do
|
||||
post 'customer_appointments/:id/reminder', to: 'appointment_reminders#send_now', as: 'send_appointment_reminder'
|
||||
post 'customers/:customer_id/reminders/off', to: 'appointment_reminders#opt_out', as: 'customer_reminders_off'
|
||||
post 'customers/:customer_id/reminders/on', to: 'appointment_reminders#opt_in', as: 'customer_reminders_on'
|
||||
# From the plugin's settings page (administrators)
|
||||
post 'appointment_reminders/test', to: 'appointment_reminders#test', as: 'test_appointment_reminder'
|
||||
post 'appointment_reminders/run', to: 'appointment_reminders#run', as: 'run_appointment_reminders'
|
||||
end
|
||||
Reference in new issue
Block a user