GSuiteSignatureManager icon indicating copy to clipboard operation
GSuiteSignatureManager copied to clipboard

Update with different template the alias

Open pinguinone opened this issue 5 years ago • 1 comments

Hello, my truly compliments for this code. I try to implement in my organization but I find a problem. My organization use a lot of domain for different company and each user has only 1 GSuite account. With the alias they choose from which company send email. So: User1 [email protected] (primary email) [email protected] (alias1) [email protected] (alias2)

Is it possible to update with different template the single alias of a specified user? If so how?

Thanks

pinguinone avatar Jan 14 '20 10:01 pinguinone

Great question - It has been a while since I have modified the code for this repo, but I don't believe there was ever functionality added to do different email templates per alias. It was strictly to "standardize" all email sigs within a domain or group of domains.

update-signature-for-users-in-your-own-array

This might be an option, but requires a bit more work. You would need to code the array to only update emails from a certain domain $mooSig->addSettingSetTemplate("defaultSig_domain1.html"); $mooSig->addSettingUserArray([ [ "primaryEmail" => "[email protected]", "alias" => "[email protected]", "fullName" => "MooMaster", ], [ "primaryEmail" => "[email protected]", "alias" => "[email protected]", "fullName" => "MooMinor", ] ]); $mooSig->updateSignatures();

In the above example, the primary domain will always be the same, but you would only include the alias for domain2.com.

moometric avatar Jan 14 '20 13:01 moometric