Regular expression to mask email except the three characters before the domain

I am trying to mask email address in the following different ways. Mask all characters except first three and the ones follows the @ symbol. This expression works fine. (?<=.{3}).(?=[^@]*?@) ...

How you create confirmation link for email?

In my project I need to send letter to user email with confirmation link. My solution: Add string column “code” and boolean column “is_active” (with default value false) to user table. When user …

How to Send bulk mails using javax.mail API efficiently? & Can we use reuse authenticated sessions to improve speed?

I am able to send a mail using javax.mail API. But the problem here is on an average for each mail it taking around 4.3 seconds to send to destination. If I am sending a 20 mails sequentially, it …