Skip to content

Commit

Permalink
Added send call name params
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-ma committed Jun 6, 2016
1 parent 8d98c68 commit 4b1c70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sendwithus_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def send_mail(swu, data_file, email, template):
data = _read_file(data_file)
template_info = json.loads(get_template_info_by_path(swu, template))
recipient = json.dumps(dict(address=email))
render_result = swu.send(template_info['template_id'], json.loads(recipient), json.loads(data), email_version_name=template_info['version_name'])
render_result = swu.send(email_id=template_info['template_id'], recipient=json.loads(recipient), email_data=json.loads(data), email_version_name=template_info['version_name'])
try:
response = render_result.json();
if response['success']:
Expand Down

0 comments on commit 4b1c70f

Please sign in to comment.