Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit87112dc

Browse files
Merge branch 'master' of github.com:hohos-iA/hohos
2 parents6bfcd85 +24a1418 commit87112dc

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

‎hohos/feeds/views.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -534,48 +534,48 @@ def email_on_post(request): # feeds on profiles and reponse an
534534
ifto_user.emailandto_user!=user:
535535
to_email=to_user.email
536536
to= [to_email]
537-
common_message='\n-------------------------------------------------------------------------\n'+\
538-
'\n\nFor more you can always check your profile at - www.hohos.tech'+\
537+
common_message='<br>-------------------------------------------------------------------------<br>'+\
538+
'<br><br>For more you can always check your profile at -<a href="www.hohos.tech">hohos</a>'+\
539539
to_user.username+\
540-
'\n\nBesides there are some new challenges and responses www.hohos.tech/feeds/ which may attract you. - '\
541-
+'\n\nAnd awesome OpenChat at www.hohos.tech/feeds/openchat/h_h/'+\
542-
'\n\nTeamiA at www.hohos.tech'+\
543-
'\n\nIn case you do not have access to your account You can always mail us at hohosguys@gmail.com'+\
544-
'\n\n\n\nThis is a system generated E-mail, Login at hohos and go to Settings For managing E-mails you get from us.'
540+
'<br><br>Besides there are some new challenges and responses<a href="www.hohos.tech/feeds/">Responses</a>" which may attract you. - '+\
541+
# +'<br><br>And awesome OpenChat at<a href="www.hohos.tech/feeds/openchat/h_h/'+\
542+
'<br><br>TeamiA at<a href="www.hohos.tech">hohos</a>'+\
543+
'<br><br>In case you do not have access to your account You can always mail us at<a href="mailto:hohosguys@gmail.com">hohosguys</a>'+\
544+
'<br><br><br><br>This is a system generated E-mail, Login at hohos and go to Settings For managing E-mails you get from us.'
545545
ifmail_type=='challenge_mail':
546546
subject=user.profile.get_screen_name()+' has challenged you '#+ to_user.profile.get_screen_name()
547-
message=user.profile.get_screen_name()+' has challenged you with following caption -\n\n'\
548-
+post+'\nSee all challenges for you at www.hohos.tech/challenges/for/'+to_user.username+common_message
547+
message=user.profile.get_screen_name()+' has challenged you with following caption -<br><br>'\
548+
+post+'<br>See all challenges for you at<a href="www.hohos.tech/challenges/for/'+to_user.username+'">Challenges for you</a>'+common_message
549549

550550
elifmail_type=='response_mail':
551551
subject=user.profile.get_screen_name()+' has responded to your facial expressions '#+ to_user.profile.get_screen_name()
552-
message=user.profile.get_screen_name()+' has imitated your style in an amazing way -\n\n'\
553-
+post+'\nSee the whole story at www.hohos.tech/feeds/response/'+response_for_id+common_message
552+
message=user.profile.get_screen_name()+' has imitated your style in an amazing way -<br><br>'\
553+
+post+'<br>See the whole story at<a href="www.hohos.tech/feeds/response/'+response_for_id+'">Respnse for your challenge</a>'+common_message
554554

555555
ifresponse_for_user:
556556
from_email=django_settings.EMAIL_HOST_USER
557557
to_email_2=response_for_user.email#email of the originally cahllenged user
558558
to_2= [to_email_2]
559559
subject_2=user.profile.get_screen_name()+' has responded to a challenge which was for you '
560-
message_2=user.profile.get_screen_name()+' has responded to a challengewhich was originally made for you -\n\n'\
561-
+post+'\nSee the whole story at www.hohos.tech/feeds/response/'+response_for_id+common_message
560+
message_2=user.profile.get_screen_name()+' has responded to a challengewhich was originally made for you -<br><br>'\
561+
+post+'<br>See the whole story at<a href="www.hohos.tech/feeds/response/'+response_for_id+'">Responses</a>'+common_message
562562
try:
563-
send_mail(subject_2,message_2,from_email,to_2,fail_silently=False)
563+
send_mail(subject_2,message_2,from_email,to_2,fail_silently=False,html_message=message_2)
564564
except:
565565
pass
566566

567567
elifmail_type=='profile_talk_mail':
568568
subject=user.profile.get_screen_name()+' seems to like you very much '#+ to_user.profile.get_screen_name()
569-
message=user.profile.get_screen_name()+' has written this on your profile at hohos -\n\n'\
570-
+post+'\nSee the whole story at www.hohos.tech/'+to_user.username+common_message
569+
message=user.profile.get_screen_name()+' has written this on your profile at hohos -<br><br>'\
570+
+post+'<br>See the whole story at<a href="www.hohos.tech/'+to_user.username+'">'+to_user.username+'</a>'+common_message
571571
else:
572572
to=django_settings.EMAIL_HOST_USER
573573
subject='no to_user mail found so sending back to hohosguys'
574574
message='Problem sending mail'
575575

576576
from_email=django_settings.EMAIL_HOST_USER
577577
try:
578-
send_mail(subject,message,from_email,to,fail_silently=False)
578+
send_mail(subject,message,from_email,to,fail_silently=False,html_message=message)
579579
except:
580580
pass
581581
returnHttpResponse('')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp