Email notification via WP_Mail on published custom post type

'new_event' is not a default wordpress hook. Hence the above will only work if you include do_action( 'new_event' ); in your custom post type’s saving/publishing function.

Your usage of wp_mail is otherwise correct.

See the codex on do_action for reference.

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