- You can see the added character just after the logo ()
- Every french canadian character is not recognized (Laverdière, Réseau, Beaupré, Québec)
I looked for a solution to this, and unfortunatly all the solutions I found did not work. Someone on this forum suggested to use the "charset" argument, but it does seem to be excluded from the latest GAM version.
Here is the exact GAM command i'm using: gam user charlesl...@caronetguay.ca signature file charlesl...@caronetguay.ca.html html
Gam returns: Setting Signature for charlesl...@caronetguay.ca (1/1)
The signature is added to the user, but with the formating error.
Here is the HTML code used to set the signature:
<style> td{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: .90em; color: #504F4E; } .td-allign{ text-align: left; border-spacing: 1px }</style> </head>
<img src="https://servicesweb.caronetguay.ca/signatures/logo.png" alt="" width="200" height="74" /><br/>
<table border="0" cellspacing="0" cellpadding="0">
<tr> <td class="td-allign"><strong> Charles</strong></td> <td class="td-allign"><strong> Laverdière</strong></td> </tr> </table>
<table border="0" cellspacing="0" cellpadding="0"> <tr><td class="td-allign"> Chef assistant du réseau informatique</td> </tr> </table>
<br/>
<table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="td-allign"><strong> T</strong></td> <td>: (418) 555-5555</td> <td>#5555</td> <td> | 1-800-555-5555</td> </tr> <tr> <td class="td-allign"><strong> C</strong></td> <td>: (418) 555-5555</td> </tr> <tr> <td class="td-allign"><strong> F</strong></td> <td>: (418) 555-5555</td> </tr></table>
<table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="td-allign"> 95, Rue de la Distillerie,</td> <td> Beaupré</td> <td> (Québec)</td> <td> G0A 1E0</td> </tr></table>
<br/>
<table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="td-allign"> <a href="http://www.caronetguay.com"><strong>www.caronetguay.com</strong></a></td> </tr></table>
- The HTML file is encoded with UTF-8
- Also tried to used a normal text file encoded in UTF-8 and using the HTML parameter.
- I tried to open the file in chrome, extract the HTML code returned by the browser and use it with GAM, same output
Thank you all for any usefull input!
Have a good day
Hello all
I need help please!
I built HTML files wich contains HTML code for all of my user's signature. Everything is fine when i'm opening the file with chrome, but when GAM set the signature it adds unwanted characters in the final signature output. Here is a screenshot of what the result looks like.
- You can see the added character just after the logo ()
- Every french canadian character is not recognized (Laverdière, Réseau, Beaupré, Québec)
I looked for a solution to this, and unfortunatly all the solutions I found did not work. Someone on this forum suggested to use the "charset" argument, but it does seem to be excluded from the latest GAM version.
Here is the exact GAM command i'm using: gam user charleslaverdiere@caronetguay.ca signature file charleslaverdiere@caronetguay.ca.html html
Gam returns: Setting Signature for charleslaverdiere@caronetguay.ca (1/1)
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/9cb1aca7-cf4d-411e-94ac-e911851a06ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Charles,Please try: gam user charlesl...@caronetguay.ca signature file charleslaverdiere@caronetguay.ca.html charset latin1 htmlRoss
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/f508d5b2-25f0-45d1-a5fc-172946c5f743%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/f508d5b2-25f0-45d1-a5fc-172946c5f743%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAGpwKJ%2BhBaWwGfjE2G3tFYsyj1%3DCkWLTmkQkj2C9QJ9cGt1k-Q%40mail.gmail.com.
Charles,
gam <UserTypeEntity> signature <String>|(file <FileName> [charset <Charset>]) (replace <Tag> <String>)* [html] [name <String>] [replyto <EmailAddress>] [default] [treatasalias <Boolean>]
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/0da4e519-04b8-4cd2-8bb6-ef048ac114fc%40googlegroups.com.
My.Computer.FileSystem.WriteAllText("D:\signatures\" & DT_USERS(i).Email & ".html", strLectureValeur, False, System.Text.UTF8Encoding.UTF8)
My.Computer.FileSystem.WriteAllText("D:\signatures\" & DT_USERS(i).Email & ".html", strLectureValeur, False, System.Text.UTF8Encoding.Default)
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/a063ed26-ff76-4448-8162-18e5b5761a34%40googlegroups.com.
Charles,You can can some additional speed up by replacing your VB "for each user in the database" loop with a single gam csv command.Have your VB script create a CSV file UserSigUpdates.csv with a single column of the users being updated.User
...gam csv UserSigUpdates.csv gam user ~User signature file ~~User~~.html htmlTo embed column data in an argument use ~~Column~~ in the argument; in this case we're adding .html to the user address.Ross
On Fri, Oct 13, 2017 at 1:03 PM, Charles Laverdière <charleslaverdiere@caronetguay.ca> wrote:
If only I saw this possibility before, maybe I would have used this option already integrated in GAM! My bad...
At the moment, everything is working fine. I wrote a program in VB that read a template HTML file, overwrite it's tags with data from a SQL database, creates a new html file for each user (now encoded in ANSI) named us...@caronetguay.ca.html and dump the file into a folder.
Now i'm planning to invoke the GAM process into my "for each user in the database" loop and set the previously created us...@caronetguay.ca.html as the signature for each of my users. All that with only 1 click on a button! :)
I'm learning but i'm pretty proud of what I built!Thanks again for helping me solve this encoding problem.
The solution was to change the encoding used in my VB program when it creates the user's html file.
Instead ofI used
My.Computer.FileSystem.WriteAllText("D:\signatures\" & DT_USERS(i).Email & ".html", strLectureValeur, False, System.Text.UTF8Encoding.UTF8)Wich somehow refer to ANSI
My.Computer.FileSystem.WriteAllText("D:\signatures\" & DT_USERS(i).Email & ".html", strLectureValeur, False, System.Text.UTF8Encoding.Default)
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/a063ed26-ff76-4448-8162-18e5b5761a34%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/CbqZmNCXOks/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS_%2BYWJ0z5fkrAkD%2B2nT7VzXyu1kGATO77pXzQgZkt_sdw%40mail.gmail.com.
Hello all
I need help please!
I built HTML files wich contains HTML code for all of my user's signature. Everything is fine when i'm opening the file with chrome, but when GAM set the signature it adds unwanted characters in the final signature output. Here is a screenshot of what the result looks like.
- You can see the added character just after the logo ()
- Every french canadian character is not recognized (Laverdière, Réseau, Beaupré, Québec)
I looked for a solution to this, and unfortunatly all the solutions I found did not work. Someone on this forum suggested to use the "charset" argument, but it does seem to be excluded from the latest GAM version.
Here is the exact GAM command i'm using: gam user charlesl...@caronetguay.ca signature file charleslaverdiere@caronetguay.ca.html html