Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
880e26d9c2
@ -95,7 +95,7 @@ def notify(arg=None):
|
|||||||
fn = webnotes.user.name
|
fn = webnotes.user.name
|
||||||
|
|
||||||
url = get_url()
|
url = get_url()
|
||||||
message = '''You have a message by <b>%s</b>:
|
message = '''You have a message from <b>%s</b>:
|
||||||
|
|
||||||
%s
|
%s
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ def notify(arg=None):
|
|||||||
sender = webnotes.user.name!='Administrator' and webnotes.user.name or 'support+admin_post@erpnext.com'
|
sender = webnotes.user.name!='Administrator' and webnotes.user.name or 'support+admin_post@erpnext.com'
|
||||||
|
|
||||||
from webnotes.utils.email_lib import sendmail
|
from webnotes.utils.email_lib import sendmail
|
||||||
sendmail([arg['contact']], sender, message, fn + ' has posted a new comment')
|
sendmail([arg['contact']], sender, message, "You have a message from %s" % (fn,))
|
||||||
|
|
||||||
def get_url():
|
def get_url():
|
||||||
from webnotes.utils import get_request_site_address
|
from webnotes.utils import get_request_site_address
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
|
import website.utils
|
||||||
|
|
||||||
@webnotes.whitelist(allow_guest=True)
|
@webnotes.whitelist(allow_guest=True)
|
||||||
def get_blog_list(args=None):
|
def get_blog_list(args=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user