-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML and Inline Image duplicates body of email #160
Comments
Hmm, I'm having trouble duplicating the problem. Would you be able to make some very tiny version with dummy data? |
Sure thing! Attached a mailmerge_database.csv with dummy data, the inline picture for testing, and a requirements.txt file if needed. Requirements: Picture: Database CSV: Mailmerge_template: You'll notice on the csv, I include both my active Outlook email and Gmail account for sending. Thanks for looking into this! |
I tried to send a message using your template and database. Note that I modified some file paths. It looks like there's a problem with two email addresses separated by a semicolon. mailmerge
...
TO: [email protected];[email protected]
... My SMTP server returned an error:
When the |
Hi, Very odd, both a semicolon and a comma works for me when sending to multiple addresses. I've just tried both using the same database (one row of semicolon and another with comma), and both rows send (in effect, I receive two emails to the first address and two to the second address). In production, where this 'bug' was identified, including myself as the first row in the CSV are for sanity checking purposes, whereas the rest of the rows are those correctly allocated, where 99% of the time there are multiple addresses separated by semicolon. After this current test with a comma instead of semicolon, the body is still duplicated. Removing the inline image (removing the inline image attachment makes no difference) results in a single body. Your tests have still not resulted in duplicated email body at all? |
Right. Next idea: send one message where you expect to see a duplicate body. use |
Thanks. Output attached. |
I'm still have trouble replicating the problem. Here's what I've tried.
Next stepsMy next idea is to reduce the example to the smallest possible example where the problem still occurs and post it along with the Can you remove some or all of the attachments (you mentioned this earlier)? One recipient? Inline image vs. attached? Avoid using the database and just hardcode everything in the template. Use a dummy database that looks like this.
|
Hi,
When the mailmerge_template.txt looks like this:
The body of the email is duplicated in the receiving mail.
Interestingly, the sent mail within Outlook doesn't look duplicated, but it is received duplicated:
Had to blackspace most of the image for confidentiality.
When removing the inline img tag, the bug no longer occurs.
The text was updated successfully, but these errors were encountered: