@@ -534,48 +534,48 @@ def email_on_post(request): # feeds on profiles and reponse an
534
534
if to_user .email and to_user != user :
535
535
to_email = to_user .email
536
536
to = [to_email ]
537
- common_message = '\n -------------------------------------------------------------------------\n ' + \
538
- '\n \n For 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> ' + \
539
539
to_user .username + \
540
- '\n \n Besides there are some new challenges and responses www.hohos.tech/feeds/ which may attract you. - ' \
541
- + ' \n \n And awesome OpenChat at www.hohos.tech/feeds/openchat/h_h/'+ \
542
- '\n \n TeamiA at www.hohos.tech' + \
543
- '\n \n In case you do not have access to your account You can always mail us at hohosguys@gmail.com' + \
544
- '\n \n \n \n This 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.'
545
545
if mail_type == 'challenge_mail' :
546
546
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 + '\n See 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
549
549
550
550
elif mail_type == 'response_mail' :
551
551
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 + '\n See 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
554
554
555
555
if response_for_user :
556
556
from_email = django_settings .EMAIL_HOST_USER
557
557
to_email_2 = response_for_user .email #email of the originally cahllenged user
558
558
to_2 = [to_email_2 ]
559
559
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 + '\n See 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
562
562
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 )
564
564
except :
565
565
pass
566
566
567
567
elif mail_type == 'profile_talk_mail' :
568
568
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 + '\n See 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
571
571
else :
572
572
to = django_settings .EMAIL_HOST_USER
573
573
subject = 'no to_user mail found so sending back to hohosguys'
574
574
message = 'Problem sending mail'
575
575
576
576
from_email = django_settings .EMAIL_HOST_USER
577
577
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 )
579
579
except :
580
580
pass
581
581
return HttpResponse ('' )