Cleaned up welcome email code (#15175)

diff --git a/erpnext/hooks.py b/erpnext/hooks.py
index 7bf948e..7d553dc 100644
--- a/erpnext/hooks.py
+++ b/erpnext/hooks.py
@@ -27,6 +27,8 @@
 	"Communication": "public/js/communication.js",
 }
 
+welcome_email = "erpnext.setup.utils.welcome_email"
+
 # setup wizard
 setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
 setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages"
diff --git a/erpnext/setup/utils.py b/erpnext/setup/utils.py
index d86ac5e..bbf122e 100644
--- a/erpnext/setup/utils.py
+++ b/erpnext/setup/utils.py
@@ -6,6 +6,7 @@
 from frappe import _
 from frappe.utils import flt, add_days
 from frappe.utils import get_datetime_str, nowdate
+from erpnext import get_default_company
 
 def get_root_of(doctype):
 	"""Get root element of a DocType with a tree structure"""
@@ -155,3 +156,8 @@
 				pass
 			else:
 				raise
+
+def welcome_email():
+	site_name = get_default_company()
+	title = _("Welcome to {0}".format(site_name))
+	return title
\ No newline at end of file