Sorry, it seems that if I telnet smtp.mandrillapp.com on port 25, it
doesn't work, but telnet will connect on port 587.
I will try add
{mail_relay_port, 587},
to boss.config
On Wednesday, May 28, 2014 5:33:02 PM UTC+8, Neil Pahl wrote:
>
> I send my transactional email via mandrill.com and it is quite reliable
> in getting emails reliably to their desitination. However, my emails are
> not getting to the Mandrill service on some networks when using the CB.
>
> I'm getting this error while on some networks, and not on others:
>
> Supervisor boss_mail_sup had child mail_controller started with
> boss_mail_controller:start_link([{driver,boss_mail_driver_smtp}]) at
> <0.1179.0> exit with reason {error,retries_exceeded,{network_failure,"
> smtp.mandrillapp.com",{error,closed}}} in context child_terminated
>
>
> Is there I way I can make it work on the other ISPs? I've tried the
> following python script from teh same machine and it seems to be working:
>
> #! /usr/local/bin/python
>
>
> SMTPserver = 'smtp.mandrillapp.com'
> sender = '[email protected]'
> destination = ['[email protected]']
>
> USERNAME = "xxx"
> PASSWORD = "xxx"
>
> # typical values for text_subtype are plain, html, xml
> text_subtype = 'plain'
>
>
> content="""\
> Test message
> """
>
> subject="Sent from Python"
>
> import sys
> import os
> import re
>
> from smtplib import SMTP_SSL as SMTP # this invokes the secure SMTP
> protocol (port 465, uses SSL)
> # from smtplib import SMTP # use this for standard SMTP
> protocol (port 25, no encryption)
> from email.MIMEText import MIMEText
>
> try:
> msg = MIMEText(content, text_subtype)
> msg['Subject']= subject
> msg['From'] = sender # some SMTP servers will do this automatically,
> not all
>
> conn = SMTP(SMTPserver)
> conn.set_debuglevel(False)
> conn.login(USERNAME, PASSWORD)
> try:
> conn.sendmail(sender, destination, msg.as_string())
> finally:
> conn.close()
>
> except Exception, exc:
> sys.exit( "mail failed; %s" % str(exc) ) # give a error message
>
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/7cf4ccfe-3840-4d75-967f-d494ac3c2e51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.