Publicising Events
Emails
We need to send emails via both the department and the SU, such that everyone gets them. A lot of computer science students show up to our events despite not being members, so it’s important to include everyone. However, we don’t want to send the same email to anyone twice. We send emails to all computer science students via the Directors of Studies/Teaching, and then to all remaining members via the SU website.
Using the templating system
-
Download the templating tool
- Install PHP 8 (command line setup) and Python 3
- Download the latest .zip file from su-mail releases
- Extract the downloaded file into a folder
-
Create an email
- Copy one of the existing emails from the emails folder and increment the number in the filename
- Edit the content of the email
- Make sure to put
rel="noopener noreferer"
when using<a>
tags
-
Generate the email
- Run
python main.py emails/xyz.json
- The email’s HTML should be in your clipboard as well as output in the terminal
- Run
Via the SU
The committee web tools document has a detailed explanation of how to send an email via the SU website. It also has some basic debugging steps.
For BCSS, the process is slightly more complicated. We don’t want to send emails to any Computer Science students via the SU, as they will receive the email from the Directors of Studies/Teaching. The SU doesn’t have any way to filter these, so it has to be done manually, following these steps:
-
Download the exclusion tool
- Download the latest .jar file from the su-exclude releases page found here
- Ensure you have Java Runtime 1.8 or higher installed
-
Download the sales report
-
Set the Start date to 01/08/YYYY (where YYYY is set so that 01/08/YYYY is within the last year). Make sure that the End date is in the future (this should be the default).
-
Click Purchasers report.
-
Scroll down and click the Save icon:
-
Select XML file with report data:
-
Download and save the XML file in your Downloads folder.
-
Connect to the Intranet
- Either go to campus and connect to eduroam, or
- Connect to the University VPN
-
Run the tool
- Put the downloaded JAR and downloaded XML in the same folder/directory
- Open a command prompt/terminal in that folder/directory
- Run
java -jar suexclude-<VERSION>.jar "Product Purchasers Report (System).xml" --deduplicate --include-product 10000610 --exclude-ou DEP-COMP
, adjusting filenames as necessary. This step can take a long time to complete, please be patient! If it hangs, you probably forgot to connect the VPN/connect eduroam on campus. If the VPN is connected or you are on the campus Intranet, then please just wait, it will load eventually! - Copy the output to the clipboard (it should be valid JavaScript, otherwise there was an error).
-
Delete the report file
- Make sure to delete the Product Purchasers Report from your computer.
- Clear the recycle bin!
-
Set recipients
- Open the SU messages page.
- Create or open a draft.
- Click Add recipients.
- Open DevTools using Ctrl+Shift+C.
- If necessary, press Escape to show the JavaScript console.
- Paste the output of the tool into the JavaScript console prompt.
- Close DevTools.
- Click Add recipients.
-
Clear your clipboard
- Copy some non-confidential text.
- If you use a clipboard manager, make sure to clear that too.
-
Write your email
- Paste the HTML from the templator into the Source input.
- Click Save as draft.
- Once ready, let another committee member double-check your email.
- Send the same email via the Director of Studies/Teaching and wait for them to forward it.
- Once the Director of Studies/Teaching have sent it, disable Google Campaign Tracking then click Send on the SU page.
Debugging:
- If Java throws an error not related to the tool, debug it using your favourite search engine.
- If the only output is
var r=null;
then you downloaded the wrong report, or set the wrong date range.
Via the Director of Studies/Teaching
Send an email to Zack Lyons or John Benardis, both are happy to send (relevant) emails to the entire department. Zack is often really busy so John has been more responsive lately. It is worth noting Fabio sends emails targetted at PG-T students.
-
Ensure the email HTML is in your clipboard by running the templator.
-
Open Outlook on the Web.
-
Compose a new email to Zack Lyons. ([email protected]) or John Benardis ([email protected]).
-
Type an introduction just saying hi and asking them to forward the below email to students (specify whether it is for UG, PG-T or PG-R).
-
Where you want the email to go, type the word “test”.
-
Hold shift and right-click the word “test”.
-
Click “inspect”. You should see something like this:
-
Right-click anywhere in the blue highlighted area (text “elementToProof”) and select “Edit as HTML”.
-
Select the entire textbox and paste (replacing the existing content).
-
Send the email.
-
After the email has been forwarded to relevant students, make sure to click send on the SU page!
Discord
- Make sure that any Instagram posts have alt-text and a useful caption. Make sure that all information in the photo is duplicated in the caption.