def _zsite_review_invite(zsite, member, current_user): zsite_id = zsite.id member_id = member.id http = http_by_member(member) #TODO ! mail = mail_by_user_id(member_id) # mail = "*****@*****.**" name = [current_user.name] name.extend( career_current(current_user.id) ) name = ' , '.join(filter(bool, name)) mq_rendermail( '/mail/com/invite_review.htm', mail, member.name, sender_name=current_user.name, format='html', subject='%s 邀请您给 %s 写推荐语' % ( name, zsite.name ), from_user_name=name, from_user_link=current_user.link, com_link=zsite.link, com_name=zsite.name, http=http )
def _zsite_review_invite(zsite, member, current_user): zsite_id = zsite.id member_id = member.id http = http_by_member(member) #TODO ! mail = mail_by_user_id(member_id) # mail = "*****@*****.**" name = [current_user.name] name.extend(career_current(current_user.id)) name = ' , '.join(filter(bool, name)) mq_rendermail('/mail/com/invite_review.htm', mail, member.name, sender_name=current_user.name, format='html', subject='%s 邀请您给 %s 写推荐语' % (name, zsite.name), from_user_name=name, from_user_link=current_user.link, com_link=zsite.link, com_name=zsite.name, http=http)
def _zsite_member_invite(zsite, member, current_user): zsite_id = zsite.id member_id = member.id http = http_by_member(member) if zsite_member_new(zsite_id, member_id): #TODO ! mail = mail_by_user_id(member_id) #mail = "*****@*****.**" mq_rendermail( '/mail/com/invite_member.htm', mail, member.name, sender_name=current_user.name, format='html', subject='%s 邀请您给 %s 未来的同事写几句话' % ( current_user.name, zsite.name ), from_user_name=current_user.name, from_user_link=current_user.link, com_link=zsite.link, com_name=zsite.name, http=http )
def _zsite_member_invite(zsite, member, current_user): zsite_id = zsite.id member_id = member.id http = http_by_member(member) if zsite_member_new(zsite_id, member_id): #TODO ! mail = mail_by_user_id(member_id) #mail = "*****@*****.**" mq_rendermail('/mail/com/invite_member.htm', mail, member.name, sender_name=current_user.name, format='html', subject='%s 邀请您给 %s 未来的同事写几句话' % (current_user.name, zsite.name), from_user_name=current_user.name, from_user_link=current_user.link, com_link=zsite.link, com_name=zsite.name, http=http)