notify ghtml <Google Doc ID> failing to send emails

77 views
Skip to first unread message

Rob Martin

unread,
Oct 7, 2024, 6:57:20 AM10/7/24
to GAM for Google Workspace
Hi

I use the notify ghtml to create a bespoke welcome email when creating a new account. I've noticed over the last week that the emails are not being send, my logs show that the account has been created and and email send but the email contains this message.

Google logo

This file might be unavailable at the moment due to heavy traffic. Try again.

for reference the command is always a variant of 

gam redirect stdout ./AE_071024.log multiprocess redirect stderr stdout csv csvfile.csv gam create user ~userName firstname ~firstName lastname ~lastName password uniquerandom 12 org 'org/path' gal off otheremail home ~personalEmail changepassword on groups member delivery allmail ~group notify "~~personalEmail~~,otheremail...@domain.com" subject "You have a new account at Leeds Adult Learning" ghtml ownerof...@domain.com 1ZJraYg-QxirWi_hXuLw2D5Z0tztlOzI9LKZG0Ukl1IM

the logs show user created, user added to group and email sent

However the email contains, the message above.

After some experimentation i can get it to generate and send the emails if they are done when the csv is limited to 3 or 4 rows

the console returns 
2024-10-04T23:12:35.272+00:00,0/22,Using 5 processes...
2024-10-04T23:12:59.275+00:00,0,Processing item 22/22
2024-10-04T23:13:01.276+00:00,0/22,Waiting for 3 running processes to finish before terminating, wait limit unlimited seconds
2024-10-04T23:13:06.276+00:00,0/22,Waiting for 3 running processes to finish before terminating, wait limit unlimited seconds
2024-10-04T23:13:06.288+00:00,0/22,Processing complete

which suggests that it might be being rate limited?

Any help would be appreciated, and If i'm making a silly error please shout.

Rob

Ross Scroggs

unread,
Oct 7, 2024, 9:46:00 AM10/7/24
to google-ap...@googlegroups.com
I've seen this before, the problem doesn't occur if you use a local HTML file.
You could download the ghtml file just before running your command.

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7b8c4279-bf04-4a4a-a522-cb065feaf932n%40googlegroups.com.


--

Rob Martin

unread,
Oct 7, 2024, 11:28:46 AM10/7/24
to GAM for Google Workspace
Thanks Ross  I've done that and dumped all the embedded images, logos and branding into a drive folder, found the real url and amended the html file to point to the correct bits (it won't do it if they are local) and the emails are being created and send as before.

Is there a way to slow the original  process down so it doesn't choke at Google's end. It really was beautifully simple to point to a template and boom all the emails send...

Rob

Ross Scroggs

unread,
Oct 7, 2024, 11:40:00 AM10/7/24
to google-ap...@googlegroups.com
Rob,

Even if  you reduce num_threads to 1, GAM is still going to do 22 users fairly quickly.
Google seems excited that the same file gets opened 22 times in short order.

The only thing you have to download locally is the template, everything that it points to can stay on Drive.

Ross



--

Corey Schneer

unread,
Aug 30, 2025, 12:49:53 PM (6 days ago) Aug 30
to GAM for Google Workspace
Hi Ross,

When I download the Google docs template as a zipped HTML file, then extract it and use it as my template for the GAM notify commands, the images within break. Do you have any advise you could offer?

Thank you.

Ross Scroggs

unread,
Aug 30, 2025, 1:09:07 PM (6 days ago) Aug 30
to google-ap...@googlegroups.com
Corey,

Send me a private Meet/Zoom invitation.

Ross
----
Ross Scroggs



Reply all
Reply to author
Forward
0 new messages