Skip to content
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

Update with different template the alias #4

Open
pinguinone opened this issue Jan 14, 2020 · 1 comment
Open

Update with different template the alias #4

pinguinone opened this issue Jan 14, 2020 · 1 comment

Comments

@pinguinone
Copy link

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
user1@domain1.com (primary email)
user1@domani2.com (alias1)
user1@domain3.com (alias2)

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

Thanks

@moometric
Copy link
Owner

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" => "fakeEmail@domain1.com", "alias" => "fakeEmail@domain2.com", "fullName" => "MooMaster", ], [ "primaryEmail" => "AnotherEmail@domain1.com", "alias" => "anotherEmail@domain2.com", "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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants