Skip to content

Commit 482a09c

Browse files
authored
Merge pull request #20 from Xpirix/test_email_sending
Sending email with resend works!
2 parents f4b7b2c + a6c087d commit 482a09c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

deployment/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ VALID_DOMAIN=["localhost", "certification.qgis.org", "staging.certification.qgis
5050
# Email
5151
EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'
5252
EMAIL_HOST='smtp.resend.com'
53-
EMAIL_PORT=465
53+
EMAIL_PORT=587
5454
EMAIL_USE_TLS=True
5555
EMAIL_HOST_USER="resend" # e.g., no-reply@yourdomain.com
5656
EMAIL_HOST_PASSWORD="your_resend_api_key" # Your Resend API key

django_project/certification/api_views/invite_reviewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def post(self, request, slug):
7979
'session_key': s.session_key
8080
}
8181
send_mail(
82-
u'Changelog - You have been invited as a reviewer',
82+
u'Certification - You have been invited as a reviewer',
8383
u'Dear {name},\n\n'
8484
u'{invitation_text}'
8585
u'\n\n'

django_project/certification/templates/certifying_organisation/detail.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ <h1>Certifying Organisation (all)</h1>
207207
<button class="delete" aria-label="close" onclick="closeInviteExternalReviewer()"></button>
208208
</header>
209209
<section class="modal-card-body">
210-
<div id="ie-badge" class="tag is-success" style="margin-bottom: 10px; display: none"></div>
210+
<div id="ie-badge" class="notification" style="margin-bottom: 10px; display: none"></div>
211211
<form id="inviteExternalReviewerForm" role="form">
212212
<div class="field">
213213
<label class="label">Name:</label>
@@ -916,8 +916,8 @@ <h3 class="has-text-centered">{{ num_attendees }}</h3>
916916
cancelButton.attr('disabled', true);
917917

918918
let badge = $('#ie-badge');
919-
badge.removeClass('badge-success');
920-
badge.removeClass('badge-danger');
919+
badge.removeClass('is-success');
920+
badge.removeClass('is-danger');
921921

922922
$.ajax({
923923
url: url,
@@ -930,7 +930,7 @@ <h3 class="has-text-centered">{{ num_attendees }}</h3>
930930
success: function(data){
931931
document.forms['inviteExternalReviewerForm'].reset();
932932
if (data['created']) {
933-
badge.addClass('badge-success');
933+
badge.addClass('is-success');
934934
badge.html('Reviewer successfully invited!');
935935
$('#list-external-reviewer').append(
936936
`<li>${email}</li>`
@@ -947,7 +947,7 @@ <h3 class="has-text-centered">{{ num_attendees }}</h3>
947947
cancelButton.attr('disabled', false);
948948
},
949949
error: function () {
950-
badge.addClass('badge-error');
950+
badge.addClass('is-danger');
951951
badge.html('Error inviting reviewer');
952952
badge.show();
953953

0 commit comments

Comments
 (0)