@@ -440,7 +440,7 @@ from sap_cloud_sdk.outputmanagement import create_client
440440
441441try :
442442 client = create_client(destination_name = " ARIBA_OUTPUT_SERVICE" )
443-
443+
444444 response = client.send_email(
445445 notification_template_key = " NOTIFICATION" ,
446446 to = [" user@example.com" ],
@@ -481,7 +481,7 @@ for order in orders:
481481 to = [order.customer_email],
482482 business_document = {" Order" : order.to_dict()}
483483 )
484-
484+
485485 if response.error:
486486 print (f " Failed to send email for order { order.id} : { response.error.message} " )
487487 else :
@@ -505,7 +505,7 @@ def send_order_confirmation(order):
505505
506506 # Create client and send
507507 client = create_client(destination_name = " ARIBA_OUTPUT_SERVICE" )
508-
508+
509509 response = client.send_email(
510510 notification_template_key = " ORDER_CONFIRMATION" ,
511511 to = [order.customer_email],
@@ -761,7 +761,7 @@ from sap_cloud_sdk.outputmanagement import create_client
761761
762762def send_order_confirmation (order ):
763763 client = create_client(destination_name = " ARIBA_OUTPUT_SERVICE" )
764-
764+
765765 response = client.send_email(
766766 notification_template_key = " ORDER_CONFIRMATION" ,
767767 to = [order.customer_email],
@@ -794,7 +794,7 @@ from sap_cloud_sdk.outputmanagement import create_client
794794
795795def send_invoice_with_pdf (invoice , pdf_dms_url ):
796796 client = create_client(destination_name = " ARIBA_OUTPUT_SERVICE" )
797-
797+
798798 response = client.send_email(
799799 notification_template_key = " INVOICE_WITH_PDF" ,
800800 to = [invoice.customer_email],
@@ -821,7 +821,7 @@ from sap_cloud_sdk.outputmanagement import create_client
821821
822822def send_bulk_notification (recipients , notification_data ):
823823 client = create_client(destination_name = " ARIBA_OUTPUT_SERVICE" )
824-
824+
825825 response = client.send_email(
826826 notification_template_key = " BULK_NOTIFICATION" ,
827827 to = recipients,
@@ -894,16 +894,16 @@ from sap_cloud_sdk.outputmanagement import (
894894
895895try :
896896 client = create_client(destination_name = " ARIBA_OUTPUT_SERVICE" )
897-
897+
898898 response = client.send_email(
899899 notification_template_key = " NOTIFICATION" ,
900900 to = [" user@example.com" ],
901901 business_document = {" Document" : {" id" : " 123" }}
902902 )
903-
903+
904904 if response.error:
905905 print (f " Error: { response.error.message} " )
906-
906+
907907except ValidationException as e:
908908 print (f " Validation error: { e.message} " )
909909except AuthenticationException as e:
@@ -955,5 +955,5 @@ For issues or questions:
955955
956956---
957957
958- ** Version:** 3.0.0
959- ** Last Updated:** 2026-06-23
958+ ** Version:** 3.0.0
959+ ** Last Updated:** 2026-06-23
0 commit comments