Skip to content

enable ckan emails - #219

Merged
cooper667 merged 2 commits into
mainfrom
enable_emails
Jul 28, 2026
Merged

enable ckan emails#219
cooper667 merged 2 commits into
mainfrom
enable_emails

Conversation

@cooper667

@cooper667 cooper667 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Tested the SMTP values with:

msg = MIMEText('SMTP test from CKAN')
msg['Subject'] = 'SMTP test'
msg['From'] = 'DoNotReply@mail.adr.unaids.org'
msg['To'] = 'test@c9r.dev'

with smtplib.SMTP('smtp.azurecomm.net', 587) as server:
    server.starttls()
    server.login('adr-comms.etcetcetc', '***NOTTHEREALSECRETSECRET***')
    server.sendmail(msg['From'], [msg['To']], msg.as_string())
    print('Sent successfully')

Which worked. The values are in ckan-secrets in the cluster so 🤞

(Is\are there any other email settings that should be changed\enabled @ChasNelson1990 ? Also do you know how often it should run, currently set to daily?)

TODO (@cooper667): Update prod cron pod with URL\token etc once merged)

@cooper667
cooper667 requested a review from ChasNelson1990 July 25, 2026 06:02
@cooper667 cooper667 self-assigned this Jul 25, 2026
@cooper667
cooper667 enabled auto-merge (squash) July 25, 2026 06:03

@ChasNelson1990 ChasNelson1990 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cooper667
cooper667 merged commit c3dd961 into main Jul 28, 2026
4 checks passed
@cooper667
cooper667 deleted the enable_emails branch July 28, 2026 15:45
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.

2 participants