-
Notifications
You must be signed in to change notification settings - Fork 95
Mail Merge in Gmail doesn't work #155
Comments
I tried the sheet/script for the first time today, and am experiencing the same issue. |
My wife encountered the same problem. She had previously used to generate approximately 500 emails without an issue however this time when generating about 1200 emails the data was blank. She broke it into two smaller groupings and they both went through with all the data as expected. I suspect the problem has to do with some maximum number of rows or amount of data being processed. |
Unfortunately, it doesn't have to do with maximum rows of data for me. I was demonstrating how to use the tool by using only 2 rows of test data (with real email addresses) when this stopped working properly. |
The same occurred to me with just 2 rows. Emails were sent separately and the {{ }} in the subject was Changed as expected. But the body was blank. Is there a fix?
Line 81 : What is rowIdx that hasn't mentioned anywhere. I suspect that's the issue. Any fixes? |
I'm having the same issue - using just one line as a test. |
Found a solution.It worked for me. When pasting the names of the columns in the email body. Paste them as plain text(ctrl+shift+v). Otherwise the formatting interrupts the algorithm. There's no issue with the code. It's just the email body |
Thanks vanowarna. I just tried clearing all formatting and sending a test to myself again. Same issue. Then I just typed in my name and email address after clearing formatting in all cells. Ditto. I still think it's useful, it just looks like I won't be able to personalize things. |
I have this same issue today. For example, the draft email has {{Discount code}} 4 in it. In the non-HTML part of the Show Original I see xx 4 (Those are the right test values in the spreadsheet.) However, in the area with Content-Type: text/html; charset="UTF-8" I can see 4 5
So somehow the actual text is getting dropped. |
Did you try this #155 (comment) |
Yes, indeed I made sure that there was no formatting of the names in {{}}. I also see that the quoted-printable stuff is getting "processed" by Github's comment section. Ugh. Let me see if I can post it again: " <spa= n style=3D"color:rgb(0,0,0);font-family:Roboto,RobotoDraft,Helvetica,Arial,= sans-serif;font-size:13px;white-space:pre-wrap"> 4 <span s= "
tyle=3D"color:rgb(0,0,0);font-family:Roboto,RobotoDraft,Helvetica,Arial,san= s-serif;font-size:13px;white-space:pre-wrap"> 5 (In the preview this info is now showing. This is the relevant chunk of stuff in the email from which the displayed email is generated. It's at the end of Show Original.) This HTML stuff shows the 4 and 5 but not the values from the spreadsheet. As mentioned before, in the text of the Show Original the values from the spreadsheet are THERE. Something is happening when the "conversion" to HTML is taking place. |
Update - The account I'm using to do this Mail Merge is a "G Suite" version. Significantly, in the quoted-printable section of Show Original there's none of the style or other stuff, it's just which are the values from the spreadsheet and the number next to the value. |
Another update: THIS WORKED - even in the GSuite version. So, getting rid of all "formatting" in the email did the trick. I note that the sent email automatically had any web "links" converted to a clickable link (which is fine) but otherwise all the other formatting was "plain" in the resulting email. However, the values from the spreadsheet were put in the right place where {{Discount code}} etc. were. Success! |
I had the same problem and found that it worked when I removed all formatting from the mail draft/template (including the mail signature). |
Thank You @gsaxer Thank you very much. |
My colleague is having the same problem with fields appearing blank in the emails sent. The script is working fine for me. I've tried adding formatting and it still works fine. Does anyone have any other suggestions on what else my colleague should try to solve this? |
thnx folks for the solution, has somebody found a solution for the formating problem? |
@yotiko The summary of the solution is:
This worked fine for me. @gsaxer was a lifesaver - thanks! |
@gsaxer you are life saver...spent almost 4 hrs trying to find the solution by scouring youtube. So I am confirming that changing the text formatting by converting the body of the email to " Plain Text" via the (Crt+Shift+V) was the solution. So Thanks again @gsaxer ! |
Thanks, Vanowarna Great help. It worked for me too, with this method as well. By removing the formatting and typing inside the curly brackets exactly as it is example {{First name}} |
The first 2 times I tried Mail Merge in Gmail by following the directions here it worked. However, beginning yesterday, it has stopped working. The markers in the email draft correspond to the column headers in the Google Sheet. (I copied the header names and pasted them in the email draft with the double brackets around them, like this: {{First name}}. The emails will send with the email draft to the recipients listed in the Google Sheet, but none of the fields within the email body will fill in. Instead there are blanks where they are missing. This seems like a glitch in the system. What can I do to fix this?
The text was updated successfully, but these errors were encountered: