Python smtplib module: Attachment not successfully sent to multiple recipients
<p>I am using the following code to send a file to 3 recipients including me.</p>

<pre><code>    import smtplib
    from email.MIMEMultipart import MIMEMultipart
    from email.MIMEBase import MIMEBase
    from email import Encoders


    SUBJECT = "Successful !"

    msg = MIMEMultipart()
    msg['Subject'] = SUBJECT
    msg['From'] = &lt;myemail&gt;

    emails=["&lt;myemail&gt;","&lt;email2&gt;","&lt;email3&gt;"]
    msg['To'] = ', '.join(emails)

    part = MIMEBase('application', "octet-stream")
    part.set_payload(open("test.txt", "rb").read())
    Encoders.encode_base64(part)

    part.add_header('Content-Disposition', 'attachment; filename="success.txt"')

    msg.attach(part)
    server = smtplib.SMTP("&lt;server_address&gt;")
    server.sendmail(msg['From'],msg['To'], msg.as_string())
</code></pre>

<p>In this case, I receive the email but not the other two recipients.</p>

<p>I also tried using </p>

<pre><code>     server.sendmail(msg['From'],emails, msg.as_string())
</code></pre>

<p>in place of the last line. Again, I receive the email, but not the other two recipient.</p>
