mayureshagashe2105 commited on
Commit
9b66934
·
1 Parent(s): 182144a

update congifenv

Browse files
TechdocsAPI/backend/services/auth/ops.py CHANGED
@@ -39,21 +39,14 @@ async def ops_signup(bgtasks: BackgroundTasks, response_result: GeneralResponse,
39
  "verify_link": verification_link
40
  }
41
 
42
- details = {
43
- "recipient": [data.email],
44
- "subject": "Welcome to Techdocs:[Account Verification]",
45
- "template_name": "email_verification.html",
46
- "template_kwargs": email_body_params
47
- }
48
-
49
  message = MessageSchema(
50
- subject=details.subject,
51
- recipients=details.recipients, # List of recipients, as many as you can pass
52
- template_body=details.template_kwargs,
53
  subtype=MessageType.html
54
  )
55
 
56
- await app.state.mail_client.send_message(message=message, template_name=details.template_name)
57
 
58
  # status = post_request(url=config.MAIL_SERVER_URL, data=details, headers=None)
59
  # if status != 200:
 
39
  "verify_link": verification_link
40
  }
41
 
 
 
 
 
 
 
 
42
  message = MessageSchema(
43
+ subject="Welcome to Techdocs:[Account Verification]",
44
+ recipients=[data.email], # List of recipients, as many as you can pass
45
+ template_body=email_body_params,
46
  subtype=MessageType.html
47
  )
48
 
49
+ await app.state.mail_client.send_message(message=message, template_name="email_verification.html")
50
 
51
  # status = post_request(url=config.MAIL_SERVER_URL, data=details, headers=None)
52
  # if status != 200: