Category : email

I created a function to sent anonymous email according to these sources: https://www.tutorialspoint.com/python/python_sending_email.htm Send anonymous mail from local machine However I receive the WinError 10061: No connection could be made because the target machine actively refused it error. Do you maybe know how to resolve this issue? import smtplib SERVER: str = "localhost" def send_anonymous_email( ..

Read more

I’m trying to build a form that sends an email to me and to the person who summited the form and also create an object in Aanmelden. Views.py def send_email(email): context = {’email’: email} template = get_template(’emails/message-confirmation.html’) content = template.render(context) email = EmailMultiAlternatives( ‘Test email’, ‘AmiSalta message confirmation’, settings.EMAIL_HOST_USER, [email] ) email.attach_alternative(content, ‘text/html’) email.send() def ..

Read more