stripe: send mail using mail-ipv4.hcoop.net
authorClinton Ebadi <clinton@hcoop.net>
Fri, 30 Nov 2018 03:30:32 +0000 (22:30 -0500)
committerClinton Ebadi <clinton@hcoop.net>
Fri, 30 Nov 2018 03:30:32 +0000 (22:30 -0500)
Digital Ocean is obnoxious and we can't send anything to
mail.hcoop.net on-site due to outgoing SMTP being blocked over IPv6.

stripe/hcoopstripe.py

index b0ac66f..958e0ac 100644 (file)
@@ -23,7 +23,7 @@ page at your earliest convenience to process the payment.
     msg['From'] = 'payment@hcoop.net'
     msg['To'] = 'payment@hcoop.net'
 
-    s = smtplib.SMTP ('mail.hcoop.net')
+    s = smtplib.SMTP ('mail-ipv4.hcoop.net')
     s.sendmail ('payment@hcoop.net', ['payment@hcoop.net'], msg.as_string ())
     s.quit ()