Compare commits

...

2 Commits

Author SHA1 Message Date
abnercoimbre 3de25244fb Show specific meetups link for the target city 2024-10-19 13:27:58 -07:00
abnercoimbre 1a9f605208 Simplify instructions 2024-10-19 13:26:04 -07:00
1 changed files with 11 additions and 11 deletions

22
main.go
View File

@ -487,10 +487,10 @@ func main() {
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
fmt.Printf(`Instructions: fmt.Printf(`Instructions:
1. Create an email file 1. Create an email file
* Name it whatever you want. Markdown is expected * Call it whatever you want. Markdown format is expected
* Any newlines at the start or end of the file will be removed * Newlines at the beginning and end will be trimmed
* The first line of the file will be used as {{ subject }} in the postmark template. It must start with the # symbol * The first line is your email subject. It MUST start with the # symbol
* The rest of the file will be used as {{{ content_body }}} * The rest of the file is your email's body
2. See who's subscribed 2. See who's subscribed
* ./meetupinvite2000 dump * ./meetupinvite2000 dump
@ -499,15 +499,15 @@ func main() {
3. Do a test run 3. Do a test run
* ./meetupinvite2000 test [email file] * ./meetupinvite2000 test [email file]
* You must send a test email before blasting it to everyone (update config.toml to change test recipient) * You must send a test before blasting to everyone (please update config.toml to change test recipient)
* If you modify the email file after testing, you must test again. Otherwise MeetupInvite2000 will complain * If you modify the email after testing, you must test again. Otherwise we will complain
4. Start blasting! 4. Start blasting!
* ./meetupinvite2000 blast [email file] * ./meetupinvite2000 blast [email file]
* Will batch send your invite using our Email API (Postmark) * Batch sends your invite using our Email API (Postmark)
* Will produce a .track file that will list all email addresses that we attempted to send to * Produces .track file that tracks email addresses we attempted to send to
* In case of error, you can blast again. All emails listed in the .track file will be skipped * Produces .log file with information received back from Postmark
* Will produce a .log file with information received back from Postmark * In case of errors, you can always blast again. Addresses already in .track file will be skipped
`) `)
}, },
} }
@ -529,7 +529,7 @@ func main() {
indexStr = strings.Repeat(" ", maxIndexWidth-len(indexStr)) + indexStr // Right-align the index indexStr = strings.Repeat(" ", maxIndexWidth-len(indexStr)) + indexStr // Right-align the index
fmt.Printf("%s. \033[1m%s\033[0m\n", indexStr, email) fmt.Printf("%s. \033[1m%s\033[0m\n", indexStr, email)
} }
fmt.Printf("\nMailing list grows automatically as more subscribe at \033[1mhandmadecities.com/meetups\033[0m\n") fmt.Printf("\nMailing list grows automatically as more subscribe at \033[1mhandmadecities.com/meetups/%s\033[0m\n", config.Postmark.MessageStream)
}, },
} }