from django.core.mail import send_mail


def send_activation_email(email, activation_code):
    activation_url = f'http://localhost:8000/account/activate/{activation_code}/'
    message = f'''
                Thank you for registration,
                Please, activate your account.
                Activation link: {activation_url}
                '''

    send_mail(
        'Activate your account',
        message,
        'test@stack_overflow.kg',
        [email, "umar.abdymalikov@gmail.com"],
        fail_silently=False
    )
