Gregniuki commited on
Commit
8e5c6a9
1 Parent(s): afd16c0

Update emailx.py

Browse files
Files changed (1) hide show
  1. emailx.py +4 -0
emailx.py CHANGED
@@ -36,9 +36,13 @@ def send_verification_email(to_email, verification_token):
36
  try:
37
  response = mailjet.send.create(data=email_data)
38
  if response.status_code == 200:
 
 
39
  print("Verification email sent successfully.")
40
  else:
41
  print("Failed to send verification email.")
 
 
42
  except Exception as e:
43
  print(str(e))
44
 
 
36
  try:
37
  response = mailjet.send.create(data=email_data)
38
  if response.status_code == 200:
39
+ print response.status_code
40
+ print response.json()
41
  print("Verification email sent successfully.")
42
  else:
43
  print("Failed to send verification email.")
44
+ print response.status_code
45
+ print response.json()
46
  except Exception as e:
47
  print(str(e))
48