I have included the code in the website and hosted the website. Now the same code sends emails immediatley.
The code when executed locally has a very long delay (2-3 days).
So, this definitely has something to do with the Default SMTP virtual server I am using under IIS.
User Profile
Collapse
-
tlhintoq: there were no exceptions on line 54 of the code. You are right, about it not being an error. I did receive the emails, but they were delayed by 3 days. Do you have any ideas as to why?
stoogots2: I am using the default SMTP server. How can I find out if it is aware of the destination server/domain, or has routing disabled?
I have added my ip address to the relay server list. So do you want me to use my ip address...Leave a comment:
-
sending email using C# - exited with code 0
I have a question - I have this code below to send an email and I have referenced the Microsoft CDO Library 2000.
It doesn't throw any exception in the console window. It goes throughout the code successfully, but I do not receive any email.
When I execute this code to send email, it gives the following error -
Code:'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll',
No activity results to display
Show More
Leave a comment: