Click here to Skip to main content
16,004,991 members
Home / Discussions / C#
   

C#

 
AnswerRe: call c# class from Java using JNI Pin
Zamboch23-Nov-09 10:35
Zamboch23-Nov-09 10:35 
QuestionError-While sending Mail Pin
Satish - Developer18-Nov-07 22:40
Satish - Developer18-Nov-07 22:40 
AnswerRe: Error-While sending Mail Pin
duncanmhor18-Nov-07 22:46
duncanmhor18-Nov-07 22:46 
GeneralRe: Error-While sending Mail Pin
Satish - Developer18-Nov-07 22:55
Satish - Developer18-Nov-07 22:55 
GeneralRe: Error-While sending Mail Pin
duncanmhor18-Nov-07 23:01
duncanmhor18-Nov-07 23:01 
GeneralRe: Error-While sending Mail Pin
Satish - Developer18-Nov-07 23:31
Satish - Developer18-Nov-07 23:31 
AnswerRe: Error-While sending Mail Pin
Sun Rays19-Nov-07 0:18
Sun Rays19-Nov-07 0:18 
GeneralRe: Error-While sending Mail Pin
Satish - Developer19-Nov-07 0:27
Satish - Developer19-Nov-07 0:27 
Hi, Please see the code below.
I am reading mailid's from text file. In each line there is only one mailID.
so "_mailid" contains only 1 id.
now can u suggest how to put cc

MailAddress SendFrom = new MailAddress(txtFromAddr.Text);
SmtpClient objSmtpClient = new SmtpClient();
objSmtpClient.Host = "mail.domain.com";
objSmtpClient.Credentials = new System.Net.NetworkCredential("uname", "pwd");
while (!strdata.EndOfStream)
{
_mailId = Convert.ToString(strdata.ReadLine());
if (_mailId != "")
{
MailAddress SendTo = new MailAddress(_mailId);
MailMessage objMailMessage = new MailMessage(SendFrom, SendTo);
objMailMessage.Subject = Convert.ToString(txtSubject.Text);
objMailMessage.Body = Convert.ToString(webBrowser1.DocumentText);
objMailMessage.IsBodyHtml = true;
objSmtpClient.Send(objMailMessage);
}
}

GeneralRe: Error-While sending Mail Pin
Sun Rays19-Nov-07 0:40
Sun Rays19-Nov-07 0:40 
AnswerRe: Error-While sending Mail Pin
Shpendh19-Nov-07 1:50
Shpendh19-Nov-07 1:50 
Questionhelp regarding windows media player Pin
anu8118-Nov-07 22:24
anu8118-Nov-07 22:24 
AnswerRe: help regarding windows media player Pin
sindhutiwari18-Nov-07 22:31
sindhutiwari18-Nov-07 22:31 
GeneralRe: help regarding windows media player Pin
anu8118-Nov-07 22:45
anu8118-Nov-07 22:45 
Questiongraphical grid Pin
sindhutiwari18-Nov-07 22:21
sindhutiwari18-Nov-07 22:21 
AnswerRe: graphical grid Pin
AB777118-Nov-07 22:54
AB777118-Nov-07 22:54 
GeneralRe: graphical grid Pin
sindhutiwari18-Nov-07 22:57
sindhutiwari18-Nov-07 22:57 
GeneralRe: graphical grid Pin
AB777118-Nov-07 23:03
AB777118-Nov-07 23:03 
QuestionUsing .NET 2.0 from VS2003 editor ? Pin
N a v a n e e t h18-Nov-07 21:59
N a v a n e e t h18-Nov-07 21:59 
AnswerRe: Using .NET 2.0 from VS2003 editor ? Pin
pmarfleet18-Nov-07 22:37
pmarfleet18-Nov-07 22:37 
GeneralRe: Using .NET 2.0 from VS2003 editor ? Pin
N a v a n e e t h18-Nov-07 22:56
N a v a n e e t h18-Nov-07 22:56 
GeneralRe: Using .NET 2.0 from VS2003 editor ? Pin
duncanmhor18-Nov-07 23:05
duncanmhor18-Nov-07 23:05 
GeneralRe: Using .NET 2.0 from VS2003 editor ? Pin
pmarfleet18-Nov-07 23:08
pmarfleet18-Nov-07 23:08 
GeneralRe: Using .NET 2.0 from VS2003 editor ? Pin
N a v a n e e t h18-Nov-07 23:23
N a v a n e e t h18-Nov-07 23:23 
GeneralRe: Using .NET 2.0 from VS2003 editor ? Pin
originSH18-Nov-07 23:55
originSH18-Nov-07 23:55 
GeneralRe: Using .NET 2.0 from VS2003 editor ? Pin
Daniel Grunwald19-Nov-07 1:49
Daniel Grunwald19-Nov-07 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.