@@ -20,6 +20,7 @@ export default class OrgEmail extends Command {
2020 static examples = [
2121 "<%= config.bin %> <%= command.id %> myorg --mailer=ses" ,
2222 "<%= config.bin %> <%= command.id %> myorg --mailer=brevo" ,
23+ "<%= config.bin %> <%= command.id %> myorg --transactional-mailer=mailjet" ,
2324 "<%= config.bin %> <%= command.id %> myorg --supporter-confirm --supporter-confirm-template=confirm_v2" ,
2425 "<%= config.bin %> <%= command.id %> myorg --no-supporter-confirm" ,
2526 ] ;
@@ -33,6 +34,12 @@ export default class OrgEmail extends Command {
3334 options : SERVICE_NAMES ,
3435 helpValue : SERVICE_NAMES ,
3536 } ) ,
37+ "transactional-mailer" : Flags . string ( {
38+ description :
39+ "service to send transactional (non-MTT) emails, must already be configured via `service add`" ,
40+ options : SERVICE_NAMES ,
41+ helpValue : SERVICE_NAMES ,
42+ } ) ,
3643 "supporter-confirm" : Flags . boolean ( {
3744 description : "enable/disable action confirmation emails" ,
3845 allowNo : true ,
@@ -47,19 +54,22 @@ export default class OrgEmail extends Command {
4754 mutation UpdateOrgProcessing(
4855 $name: String!
4956 $emailBackend: ServiceName
57+ $transactionalEmailBackend: ServiceName
5058 $supporterConfirm: Boolean
5159 $supporterConfirmTemplate: String
5260 ) {
5361 updateOrgProcessing(
5462 name: $name
5563 emailBackend: $emailBackend
64+ transactionalEmailBackend: $transactionalEmailBackend
5665 supporterConfirm: $supporterConfirm
5766 supporterConfirmTemplate: $supporterConfirmTemplate
5867 ) {
5968 id
6069 name
6170 processing {
6271 emailBackend
72+ transactionalEmailBackend
6373 supporterConfirm
6474 supporterConfirmTemplate
6575 }
@@ -74,6 +84,8 @@ export default class OrgEmail extends Command {
7484 const variables = {
7585 name : flags . name ,
7686 emailBackend : flags . mailer ?. toUpperCase ( ) || undefined ,
87+ transactionalEmailBackend :
88+ flags [ "transactional-mailer" ] ?. toUpperCase ( ) || undefined ,
7789 } ;
7890
7991 if ( flags [ "supporter-confirm" ] !== undefined ) {
@@ -93,6 +105,7 @@ export default class OrgEmail extends Command {
93105 id : d . id ,
94106 name : d . name ,
95107 mailer : d . processing . emailBackend ,
108+ transmailer : d . processing . transactionalEmailBackend ,
96109 supporterConfirm : d . personalData ?. supporterConfirm ,
97110 supporterConfirmTemplate : d . personalData ?. supporterConfirmTemplate ,
98111 } ) ;
0 commit comments