Skip to content

Commit

Permalink
send_mail test in product
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebamus committed Nov 2, 2024
1 parent 05893fe commit 0ba893d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions portfolio/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,13 @@ def post(self, request, *args, **kwargs):
msg_html = render_to_string(
settings.TEMPLATE_DIR + self.email_template_get_in_touch, email_context
)
subject_email = subject + " " + emailfrom
subject_email = subject + " - " + emailfrom

send_mail(
subject=subject_email,
recipient_list=[
emailto,
],
message=message,
from_email=settings.DEFAULT_FROM_EMAIL,
recipient_list=[settings.DEFAULT_FROM_EMAIL],
html_message=msg_html,
fail_silently=False,
)
Expand Down

0 comments on commit 0ba893d

Please sign in to comment.