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

Add portal info to "request to join group" email #162

Open
adamhgriffith-uofu opened this issue Aug 24, 2022 · 1 comment
Open

Add portal info to "request to join group" email #162

adamhgriffith-uofu opened this issue Aug 24, 2022 · 1 comment
Labels
good first issue Good for newcomers

Comments

@adamhgriffith-uofu
Copy link
Contributor

For non-production Portals.

Add information to mailgun() in ./portal/views.py clarifying from which Portal server the request originated.

r = requests.post("https://api.mailgun.net/v3/slateci.io/messages",
        auth=('api', mailgun_api_token),
        data={
            "from": "SLATE <[email protected]>",
            "to": [admin_email],
            "cc": "{} <{}>".format(user_name, user_email),
            "subject": "Request to Join Group: {}".format(group_name),
            "text": "Hello! User, {}, is CC'd on this email {}, and has requested to join your group, {} on SLATE. You may choose to add them from your groups detailed page through the SLATE portal.".format(user_name, user_email,group_name)
        })
@adamhgriffith-uofu adamhgriffith-uofu added the good first issue Good for newcomers label Aug 24, 2022
@Mannuel25
Copy link

Hello @adamhgriffith-uofu I'd love to work on this. But could you put me through as to what should be done. Thanks

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

No branches or pull requests

2 participants