33import smtplib
44from email .message import EmailMessage
55
6- from patchwork .common .utils .input_parsing import parse_to_list
76from patchwork .common .utils .utils import mustache_render
87from patchwork .step import Step
98from patchwork .steps .SendEmail .typed import SendEmailInputs , SendEmailOutputs
@@ -16,7 +15,7 @@ def __init__(self, inputs):
1615 self .subject = inputs .get ("subject" , "Patchwork Execution Email" )
1716 self .body = inputs .get ("body" , "Patchwork Execution Email" )
1817 self .sender_email = inputs ["sender_email" ]
19- self .recipient_email = parse_to_list ( inputs ["recipient_email" ], [ " " , "," ])
18+ self .recipient_email = inputs ["recipient_email" ]
2019 self .smtp_host = inputs .get ("smtp_host" , "smtp.gmail.com" )
2120 self .smtp_username = inputs ["smtp_username" ]
2221 self .smtp_password = inputs ["smtp_password" ]
@@ -29,7 +28,7 @@ def run(self) -> dict:
2928 msg .set_content (mustache_render (self .body , self .email_template_value ))
3029 msg ["Subject" ] = mustache_render (self .subject , self .email_template_value )
3130 msg ["From" ] = self .sender_email
32- msg ["To" ] = ", " . join ( self .recipient_email )
31+ msg ["To" ] = self .recipient_email
3332 if self .reply_message_id is not None :
3433 msg .add_header ("Reference" , self .reply_message_id )
3534 msg .add_header ("In-Reply-To" , self .reply_message_id )
0 commit comments