Email to admin not delivered
We have an email address [email protected].
We can send email by hand to that address successfully, but email sent using the sendgrid-python is not delivered. Here's an example test program. Each email is addressed to both admin and charlie -- only the charlie emails are delivered. The same test with a different address [email protected] delivers the mails to both.
#!/usr/bin/env python
"""Test tool sending repeated emails to a sequence of addresses."""
import json
import os
import sys
from datetime import datetime as dt
import sendgrid
# Initialize the connection to sendgrid
user = 'X'
password = 'X'
sg = sendgrid.SendGridClient(user,password)
# multiple emails to admin
for i in range(5):
print "Test %d"%i
a = "[email protected]"
message = sendgrid.Mail()
message.add_to(a)
message.add_to('[email protected]')
test_line = 'Test email '+str(i)+' @ '+str(dt.today())
message.set_subject(test_line)
message.set_text(test_line)
message.set_from('[email protected]')
print "Sending",message.text
status, msg = sg.send(message)
print "Status: %d msg %s"%(status, json.loads(msg)['message'])
print "done."
Hey @chasrmartin
A quick glance at your account shows some dropped events for the email [email protected] with a reason of Bounced Address (going back to the 18th). It'd definitely getting to our system from the library, but bouncing when we attempt to deliver it. (I do see the ones for [email protected] going through). You can see these if you check out 'Bounces' under 'Email Reports'.
If you have further specific reasons for why it's being bounced I'd recommend contacting support.
Can you give me the specific bounce? We can send email by hand to that address with no problem.
On Tue, Mar 25, 2014 at 9:26 PM, David Tomberlin [email protected]:
Hey @chasrmartin https://github.com/chasrmartin
A quick glance at your account shows some dropped events for the email [email protected] with a reason of Bounced Address (going back to the 18th). It'd definitely getting to our system from the library, but bouncing when we attempt to deliver it. (I do see the ones for [email protected] through). You can see these if you check out 'Bounces' under 'Email Reports'.
If you have further specific reasons for why it's being bounced I'd recommend contacting support.
Reply to this email directly or view it on GitHubhttps://github.com/sendgrid/sendgrid-python/issues/61#issuecomment-38646590 .
As specific as I can see right now is reason : "Bounced Address" which isn't initially super helpful. I'd contact support (point them at this) and see if they can dig in further for you, since I definitely see about 18 drops for that email just today alone (all with the same reason), I just can't pull up the any additional info right now.
Will do in the morning.
On Tue, Mar 25, 2014 at 9:47 PM, David Tomberlin [email protected]:
As specific as I can see right now is reason : "Bounced Address" which isn't initially super helpful. I'd contact support (point them at this) and see if they can dig in further for you, since I definitely see about 18 drops for that email just today alone (all with the same reason), I just can't pull up the any additional info right now.
Reply to this email directly or view it on GitHubhttps://github.com/sendgrid/sendgrid-python/issues/61#issuecomment-38647491 .
Awesome, I'll leave a note for them.
Just to add another one, it looks like a bcc to [email protected] is failing too. I'll call support shortly.
Okay. I was directed to the bounce list (of which I'd heretofore never heard) and cleared it and voila! the admin emails were being delivered again.