Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have inherited a system with an exe that emails an attachment PDF via the .net SMTPClient. (I am just an administrator and not a code developer so forgive me for any errors)

When the PDF gets a little Bigger it times out ...

I gather I need to change the namespace System.Net.Mail and the SmtpClient.Timeout Property. (Framework 4.0)
I don't have the source code and don't really know much about .net.
I was hoping I Could just change the web.config/machine.config file
But I dont know how to relate the VB code example to a web.config format.
Any help would be apprecaiated .Sorry for asking if this is a lame question.
I just need a little help.

Thanks

What I have tried:

I modified the machine.config with inference between the code and it had wrong syntax.
Posted
Updated 19-Jun-17 4:19am

1 solution

The timeout property for SMTP is not available in web.config which means you have to change it in code. If you do not have the source code then you cannot change it. Perhaps you can look into making the pdf smaller some way.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900