I am not able to send email in server if increasing timeout property.
//set the SMTP info SmtpClient smtp = new SmtpClient(); smtp.Host = strServer; //IP Mail Server smtp.Timeout = 70 * 60 * 1000; smtp.Port = Convert.ToInt16(Port); //Port smtp.Credentials = new System.Net.NetworkCredential(FromAddress, strPassword); //send the email smtp.Send(Msg); In my application i want to send 'B'-day mail nearly 1000 people. so i will send emails "To" those who hve birthday and put "bcc" to rest of the employees nearly 1000.if am not adding bcc it is working perfectly .if i'm adding bcc(1000 people) its giving error like "Time out". i add nearly 1 hour time out for overcome this. i know it is not a good practise but when i'm adding this it is working in local but not in server. in server it is givng error "Failure ending mail".suppose if i'm reduce time out to 10min ,its not giving any exception but not getting mail. i want to know i'm missing anything here ? is this server config problem..? please help me to sort this out