from Dmail import Email


class Gmail(Email):
    def __init__(self, sender_email, sender_credentials, mail_port=587):
        super(Gmail, self).__init__(mail_server="smtp.gmail.com", mail_port=mail_port,
                                    sender_email=sender_email, sender_credentials=sender_credentials,
                                    mail_use_tls=(mail_port == 587), mail_use_ssl=(mail_port == 465))
