[cleanup] removed welcome emails

This commit is contained in:
Rushabh Mehta 2015-07-16 11:53:18 +05:30
parent 93416ee72c
commit ea4d63cef3
5 changed files with 2 additions and 65 deletions

View File

@ -32,6 +32,7 @@
"default": "0",
"fieldname": "total_subscribers",
"fieldtype": "Int",
"in_list_view": 1,
"label": "Total Subscribers",
"permlevel": 0,
"precision": "",
@ -45,7 +46,7 @@
"is_submittable": 0,
"issingle": 0,
"istable": 0,
"modified": "2015-03-18 08:08:37.692367",
"modified": "2015-07-15 07:18:30.094155",
"modified_by": "Administrator",
"module": "CRM",
"name": "Newsletter List",

View File

@ -1,27 +0,0 @@
Dear {{ fullname }},
Thanks for setting up your ERPNext account!
ERPNext is an open source and cloud ERP system that will help you to:
1. Become organized by having a central repository of your data.
1. Stay on top of what is happening in the organization.
1. Prioritize and act quickly on pending activities.
1. Analyze your performance and find improvement areas.
1. Profit!
Some tips on setting up ERPNext:
1. Try and make dummy cycles: Run your dummy quotes, invoices, payments, deliveries in the system so that you can get familiar with what ERPNext can do for you.
1. Data Import Tool: You can import bulk data into system using the data import tool: via **Setup > Data > Data Import Tool**.
1. Add more users via **Setup > Users and Permissions > User**.
1. If you are done with the testing and want to start fresh, you can delete your company and create a new one.
If you need help or are stuck, [head to the user forum](https://discuss.frappe.io) or [read the manual](https://manual.erpnext.com).
[Watch the ERPNext help tutorial videos](https://www.youtube.com/playlist?list=PL3lFfCEoMxvxDHtYyQFJeUYkWzQpXwFM9)
Best of luck!
Automatically Sent from your ERPNext Account

View File

@ -1,14 +0,0 @@
Dear {{ fullname }},
If you need help in setting up your ERPNext account, here are some resources:
1. [Read the manual](https://manual.erpnext.com)
1. [See the help videos](https://www.youtube.com/playlist?list=PL3lFfCEoMxvxDHtYyQFJeUYkWzQpXwFM9)
1. [Ask your questions in the user forum](https://discuss.frappe.io)
1. [Buy support from the ERPNext Team](https://erpnext.com/pricing)
1. [Connect with a Service Provider](https://community.erpnext.com/service-providers)
1. [Hangout on the community chat (gitter.im)](https://gitter.im/frappe/erpnext)
Thanks!
Automatically sent from your ERPNext Account

View File

@ -13,7 +13,6 @@ from frappe.geo.country_info import get_country_info
from frappe.utils.nestedset import get_root_of
from .default_website import website_maker
import install_fixtures
from .welcome_emails import setup_welcome_emails
@frappe.whitelist()
def setup_account(args=None):
@ -78,8 +77,6 @@ def setup_account(args=None):
login_as_first_user(args)
setup_welcome_emails()
frappe.db.commit()
frappe.clear_cache()

View File

@ -1,20 +0,0 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import add_days, nowdate, get_fullname
import markdown2
def setup_welcome_emails():
for email in (
{"fname": "email-1.md", "subject": "Setting up ERPNext", "after": 1},
{"fname": "email-2.md", "subject": "Getting ERPNext Help", "after": 3},
):
content = frappe.get_template("setup/page/setup_wizard/emails/" \
+ email["fname"]).render({"fullname": get_fullname()})
frappe.sendmail(recipients = frappe.session.user, subject = email["subject"],
sender = "hello@erpnext.com",
content=markdown2.markdown(content), as_bulk = True,
send_after= add_days(nowdate(), email["after"]))