Click here to Skip to main content
15,892,298 members

Comments by amshith (Top 4 by date)

amshith 2-Dec-13 1:23am View    
The Gmail port number and client everything is correct and if i run the same piece of code in console project it works perfectly fine with no errors and also if i run the same code in the server using windows service also it works fine but the problem is with my laptop machine,I am not able to send emails using windows service in my laptop machine , I am the administrator of my machine, I'm not finding any solutions for this problem please please help me out.
amshith 2-Dec-13 1:22am View    
The Gmail port number and client everything is correct and if i run the same piece of code in console project it works perfectly fine with no errors and also if i run the same code in the server using windows service also it works fine but the problem is with my laptop machine,I am not able to send emails using windows service in my laptop machine , I am the administrator of my machine, I'm not finding any solutions for this problem please please help me out.
amshith 2-Dec-13 1:21am View    
thank you
amshith 26-Nov-13 6:34am View    
Actually i'm trying to send an email using WindowsService using c#, but i'm not able to send the mail through the service even though i tried with the previllege to localsytem, network var client = new SmtpClient("smtp.gmail.com",587)
{
EnableSsl = true,
Credentials = new NetworkCredential("maath@gmail.com", "power")

};

client.Send("mam@gmail.com", "gish@gmail.com","Test", "Test");