Save thread E-Mail account ID in database on creation
Skipping E-Mail account if empty
Placing wp_localize_script() inside if condition

It was accidentaly placed outside in commit
6600cda004c142a7eda8d3eeee1955f7df50427a
Sending E-Mail through SMTP server