i'm trying to send mail from my website using GMAIL account. But after i use it, my website running very slow (for about 20-30second). Do u have solution to make it faster?

Can you post specifics how you are sending email to gmail. I mean any email component etc what are you using.

thx for your replay..
this is my code :

private void SendingNotification(int IdDocument, string EmailDestination)
        MailMessage message = new MailMessage();
        SmtpClient smtpClient = new SmtpClient();
        string link = "<a href=mailto:http://localhost:1143/DMS.Web/Staf/TampilPermission.aspx?id_document=" + IdDocument + ">View Comment</a>";
            message.To.Add(new MailAddress(EmailDestination));
            message.From = new MailAddress("simplify.fmipa@gmail.com");
            message.Subject = "Kieky mengomentari sebuah topik" ;
            message.IsBodyHtml = true;
            message.Body = "kieky mengomentari sebuah topik milik edvan.<br/><br/>Lihat Dokumen :<br/>" + link;
            smtpClient.Host = "smtp.gmail.com";
            smtpClient.Port = 587;
            smtpClient.EnableSsl = true;
            smtpClient.UseDefaultCredentials = true;
            smtpClient.Credentials = new System.Net.NetworkCredential("simplify.fmipa@gmail.com", "@Bouv1er@");

            Label_Message.Text = "Mail sent successfully";
        catch (Exception ex)
            Label_Message.Text = "Error occured, info : " + ex.Message;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.