Click here to Skip to main content
15,902,299 members

Comments by gzdreamway (Top 3 by date)

gzdreamway 22-Jul-13 2:50am View    
I omitted part of the code, the attachment is a picture
--------------------------------------------------------------------------
System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage();
SmtpClient client = new SmtpClient();
string attachmentPath="c:\\test.jpg"
if(attachmentPath != "")
{
........
.......
}
gzdreamway 22-Jul-13 2:48am View    
System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage();
SmtpClient client = new SmtpClient();
string attachmentPath="c:\\test.jpg"

if(attachmentPath != "")
........
.......
gzdreamway 22-Jul-13 2:37am View    
try to release that resource
--------------------------------------------------------------------------
I release here , but not work.
dataAttach.Dispose();