Celery Task Definition
# tasks.py
from celery import shared_task
from django.core.mail import send_mail
@shared_task
def send_welcome_email_task(user_email: str, user_name: str):
send_mail(
'Welcome to E-Tutorial!',
f'Hello {user_name}, your free account is ready.',
'no-reply@etutorial.com',
[user_email]
)