Symptom
When trying to send emails through scripting, using a host IP address that the CPQ tenant uses, we see error message: You cannot use the same SMTP server host that CPQ uses. Please choose a different host name.
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
The error can be reproduced when running the script in the script workbench.
Cause
This happens when the CPQ Host IP value in the respective CPQ tenant is the same as what we have hardcoded into our script.
Resolution
- So to avoid this error, the provided IP address in the script should be different from the CPQ Host IP.
- The point of this is that we don't want you to use our IP addresses to send emails, because it can be misused, so different email providers can mark emails coming from our IP address as spam.
- You would need to provide your own email hosting (for sending emails through scripting).
For example, you can use a service that provides SMTP service hosting.
See Also
Please refer to the below point in Alternatives to CLR Module Import | SAP Help Portal:
"Using the SAP CPQ SmtpClient, you should provide your own host for sending mails. You will not be able to use the host (IP address) that SAP CPQ uses for sending emails. This won't work in all data centers."
Keywords
Error, host name, host IP address, script workbench, SHOPMAILSMTP, System.Net.Mail.SmtpClient, SmtpClient , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Problem