Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created Automated Emails to Mentors #594

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IamLRBA
Copy link

@IamLRBA IamLRBA commented Dec 18, 2024

How It Works

  • Help Description:
    The help attribute provides a short description of the command for reference.

  • Fetch Project:
    Retrieves a project by its id using Project.objects.get(id=1).
    You can replace id=1 with dynamic logic (e.g., looping through all projects or filtering based on criteria).

  • Retrieve Mentor Emails:
    Calls project.get_mentor_email_list() to get a list of mentor emails.
    Ensure this method is implemented in the Project model.

  • Send Emails:
    Iterates through each email in mentor_emails.
    Composes a personalized message and sends it using send_mail.

  • Console Feedback:
    Logs the success of each email using self.stdout.write.
    Provides confirmation once all emails have been sent.

@IamLRBA
Copy link
Author

IamLRBA commented Dec 18, 2024

As per issue #593
cc @contraexemplo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant