The discussion revolves around scripting a welcome email for new users in Discourse based on their group and account creation date. optimus seeks to automate sending customized welcome emails to users created within the past 7 days, particularly for different departments. gerhard provides a solution using the Rails console to execute a Ruby script that sends welcome emails to users meeting the criteria. gerhard refines the script to filter users created within the last 7 days, which optimus confirms works successfully. Falco suggests using Discourse’s SSO feature for seamless authentication, avoiding the need for users to remember usernames and passwords.
I’ll be deploying Discourse across a fairly large user base across different departments soon. I will also set up groups in Discourse corresponding to the departments (i.e. IT, Business, etc.) What I’d like to be able to do is programmatically send out custom “welcome” emails based on the group and age of account (i.e. created in past 7 days), with some helpful links or information specific to the deparment… So example I want to send out something like:
"Hi IT User,
Welcome to Discourse!
Here are some helpful links to read…"
I see there’s an existing “Welcome User” email template under Admin\Customize\Email Templates. How do trigger it programmamtically just to the new accounts with a given age?
let’s just say some of my user’s like to see things spelled out ;). the more pressing part is wanting to script this out so I can send the welcome emails to new users when I choose. If you have any input about that please share.