The code used to send inline email using python is below.
from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.MIMEImage import MIMEImage
My problem is very specific to the recipient's email server. I used the same code to send an email to GMail ID. It worked fine. But here, the recipient's mail server treats this email as spam when I try to embed an image in an email, as shown in the code above. If I am not trying to embed an image , then both html and text messages are received at the destination, as expected. I also tried embedding images with static http addresses as an src image. But then the problem exists. But when I tried to use some https urls, emails that were correctly received on the recipient side.
Recipient-side email filtering is powered by postini .
What could be the problem? Is there a way in which I can modify the above code to get rid of this problem.
Thanks.
source share