def alert_mail(email_receiver, service_status, url):
    '\n    Function to send email Alert\n\n    Parameters\n    ----------\n    email_receiver : string\n        destination email for alert\n    service_status : string\n        service status\n    url : string\n        url concertned by alert\n\n    Returns\n    -------\n    None.\n\n    '
    service_status = ('Subject:{}\n\n'.format(service_status) + 'Server :{} \n'.format(url))
    context = ssl.create_default_context()
    with smtplib.SMTP_SSL(smtp_address, smtp_port, context=context) as server:
        server.login(email_address, email_password)
        server.sendmail(email_address, email_receiver, service_status)
Function to send email Alert

Parameters
----------
email_receiver : string
    destination email for alert
service_status : string
    service status
url : string
    url concertned by alert

Returns
-------
None.
def alert_mail(email_receiver, service_status, url):
    '\n    Function to send email Alert\n\n    Parameters\n    ----------\n    email_receiver : string\n        destination email for alert\n    service_status : string\n        service status\n    url : string\n        url concertned by alert\n\n    Returns\n    -------\n    None.\n\n    '
    service_status = ('Subject:{}\n\n'.format(service_status) + 'Server :{} \n'.format(url))
    context = ssl.create_default_context()
    with smtplib.SMTP_SSL(smtp_address, smtp_port, context=context) as server:
        server.login(email_address, email_password)
        server.sendmail(email_address, email_receiver, service_status)