Some times email server filters/block messages which have huge attachment files. If that is the case then you can speak to the email server team. Also check your spam or junk email.
I can understand that SMTP server can’t process more than 10MB file.
what I want is if mail not received(if >10 MB) then I need an acknowledgment that mail was not received instead of “Mail was sent successfully.” in the smtp service output status.
I understand your point but when you get the message “Mail was sent successfully.” did you check with your email sever/exchange team whether did they receive it successfully and then filtered or ignored.
Have a technical discussion with them on this for solution and understanding of the issue.
I’m suggesting to use the smtp property (mail.smtp.reportsuccess) in the properties of smtp service.
Below lines from documentation -
properties Document List Optional. SMTP system properties to send to the SMTP
server. This parameter overrides the settings on the
watt.config.systemProperties configuration parameter. If you omit this
properties parameter, Integration Server uses the settings specified on
the watt.config.systemProperties configuration parameter.
Key Description name Name of the SMTP system property.
value Value to specify for the SMTP property.
I found this property is my notes. This property was used in case smtp call through java, not through webMethods though. So, I was just asking you to TRY.
If its not working, I would suggest you get in touch with the SMTP server admin, to know which properties are accepted by the server.
From documentation its clear that, we have option of setting the properties during the call. Catch would be in knowing that property.