Email me when front posting or update post

Instead of using ‘post_updated’ for your hook, you might try ‘save_post’ or ‘wp_insert_post’

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