Avatar of cseink
 asked on

smtp webmail function taking 30 seconds to execute

We recently upgraded our exchange to 2010  but now the .net script takes 30 seconds to finish. It sends the email right awway but the page doesn't finish with the thank you until 30 seconds. With 2003 it worked fine.  Looking for any suggestions on what could cause this? The server is at an offsite facility and the 2003 server was in house.

WebMail.SmtpServer = "relay.mail.com";
WebMail.SmtpPort = 25;

 var customerEmail = Request["customerEmail"];
 var customerRequest = Request["customerRequest"];
 // Send email 
WebMail.Send(to:"testemail@testemail.com", subject: "Help request from - " + customerEmail, body: customerRequest ); 
 catch (Exception ex )
//take 30 seconds to get here
thank you for sending

Open in new window

.NET ProgrammingASP.NETExchange

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

this helped. Sorry for the delay. Had to wait for network team to changed
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck