If no email set it to username@domain.com

Im tring to make it so if user does not have an email address set it to
their username@myemaildomain.com

In users.pm i can set it so that $args{ ’ EmailAddress ’ } = $args{ ‘Name’
} unless ($args{ ’ EmailAddress ’ })

but I need it so its their username followed by @something.com for all
users if email is not defined.

Is this possible?
Thanks

Im tring to make it so if user does not have an email address set it to
their username@myemaildomain.com

In users.pm i can set it so that $args{ ’ EmailAddress ’ } = $args{ ‘Name’
} unless ($args{ ’ EmailAddress ’ })

but I need it so its their username followed by @something.com for all
users if email is not defined.

You can use CanonicalizeUserInfo for this (Assuming you’re not using
RT-Authen-ExternalAuth which makes use of this code).

-kevin