Generate activation url

I think similar question is answered here:

Send user activation email when programmatically creating user

Please have a look.

Let me know if that solves the issue.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)