Link to home
Start Free TrialLog in
Avatar of cseink
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"];
 try
 {
 // Send email 
WebMail.Send(to:"testemail@testemail.com", subject: "Help request from - " + customerEmail, body: customerRequest ); 
 catch (Exception ex )
 {
 <text>@ex</text> 
}
} 
//take 30 seconds to get here
thank you for sending

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cseink
cseink

ASKER

this helped. Sorry for the delay. Had to wait for network team to changed