chore: add anti spamming and headers to email send
This commit is contained in:
@@ -99,6 +99,7 @@ export class UsersService {
|
||||
|
||||
const emailAddress = `${username}@${domain.name}`;
|
||||
const finalUserName = `${username}-${domain.name}`;
|
||||
const finalDisplayName = `${username}`;
|
||||
|
||||
const existingUser = await this.userRepository.findOne({ emailAddress });
|
||||
if (existingUser) throw new BadRequestException(UserMessage.EMAIL_ADDRESS_ALREADY_EXISTS);
|
||||
@@ -131,7 +132,7 @@ export class UsersService {
|
||||
emailEnabled: true,
|
||||
emailQuota: userQuota,
|
||||
wildduckUserId: mailServerUser.id,
|
||||
displayName: displayName || username,
|
||||
displayName: finalDisplayName || displayName || username,
|
||||
isActive: true,
|
||||
business,
|
||||
domain,
|
||||
|
||||
Reference in New Issue
Block a user