(recipient)
Send an email based on a template.

    :param Recipient recipient: The recipient of the email
    pass to the email template.
Send an email based on a template.
Send an email based on a template .
def add_user_to_contact_list(recipient):
    """
    Send an email based on a template.

    :param Recipient recipient: The recipient of the email
    pass to the email template.
    """
    data = [
                {
                    "email": recipient
                }
            ]
    response = sg.client.contactdb.recipients.post(request_body=data)
    print(response.status_code)
def add_user_to_contact_list ( recipient ) : data = [ { "email" : recipient } ] response = sg . client . contactdb . recipients . post ( request_body = data ) print ( response . status_code )