Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
AnswerRe: Scrolling Text Pin
Anthony Mushrow9-Oct-06 4:22
professionalAnthony Mushrow9-Oct-06 4:22 
GeneralRe: Scrolling Text Pin
Xaela10-Oct-06 21:58
Xaela10-Oct-06 21:58 
QuestionInstallation project c# Pin
fady_sayegh8-Oct-06 22:36
fady_sayegh8-Oct-06 22:36 
Questionunable to connect to remote server Pin
Alaa' Al Atrash8-Oct-06 22:35
Alaa' Al Atrash8-Oct-06 22:35 
QuestionCombo Box In GridView: Pin
Shahzad.Aslam8-Oct-06 22:32
Shahzad.Aslam8-Oct-06 22:32 
Questionlabel information in c# Pin
tanishka8-Oct-06 22:25
tanishka8-Oct-06 22:25 
AnswerRe: label information in c# Pin
Andrei Ungureanu9-Oct-06 0:07
Andrei Ungureanu9-Oct-06 0:07 
QuestionHow to send a mail Pin
quiteSmart8-Oct-06 22:25
quiteSmart8-Oct-06 22:25 
Hi all,

I need to know how to authenticate a user before sending a mail using a
C# application.

The source code i use is this:

private void sendMailButton_Click(object sender, EventArgs e)
{
try
{
MailMessage mailMessage = new
MailMessage(toTextBox.Text, fromTextBox.Text, subjectTextBox.Text,
bodyTextBox.Text);

SmtpClient obj = new SmtpClient(SMTPTextBox.Text);
obj.Send(mailMessage);
MessageBox.Show("Message Sent");

}
catch (Exception ex)
{
MessageBox.Show("message not sent");

}
}

I need to add the authentication part. This is working but with no
authentication for the user or the mail sender address. I am using a
local SMTP server.
Thanks,

Jamil Abou khalil
AnswerRe: How to send a mail Pin
liuqm.china9-Oct-06 3:20
liuqm.china9-Oct-06 3:20 
Questionhi Pin
tanishka8-Oct-06 21:43
tanishka8-Oct-06 21:43 
AnswerRe: hi Pin
J4amieC8-Oct-06 21:57
J4amieC8-Oct-06 21:57 
QuestionPropertygrid creating internal sub properties for a property Pin
praveenqwe8-Oct-06 21:43
praveenqwe8-Oct-06 21:43 
AnswerRe: Propertygrid creating internal sub properties for a property Pin
visualhint9-Oct-06 14:12
visualhint9-Oct-06 14:12 
QuestionSuppress Line in Crystal Report Pin
M Riaz Bashir8-Oct-06 21:25
M Riaz Bashir8-Oct-06 21:25 
Questionupdating VFP data with C# 2005 Pin
Bob Enein8-Oct-06 19:33
Bob Enein8-Oct-06 19:33 
QuestionBinary Formatter error Pin
uglyeyes8-Oct-06 15:13
uglyeyes8-Oct-06 15:13 
QuestionHow to minimize & zip the access Data base size? Pin
Emad Abo Aiad8-Oct-06 14:39
Emad Abo Aiad8-Oct-06 14:39 
AnswerRe: How to minimize & zip the access Data base size? Pin
Christian Graus8-Oct-06 15:54
protectorChristian Graus8-Oct-06 15:54 
GeneralRe: How to minimize & zip the access Data base size? Pin
Emad Abo Aiad10-Oct-06 3:58
Emad Abo Aiad10-Oct-06 3:58 
QuestionAny container gurus out there (Dictionary and SortedDictionary) Pin
Julien8-Oct-06 13:53
Julien8-Oct-06 13:53 
AnswerRe: Any container gurus out there (Dictionary and SortedDictionary) Pin
Christian Graus8-Oct-06 15:52
protectorChristian Graus8-Oct-06 15:52 
GeneralRe: Any container gurus out there (Dictionary and SortedDictionary) Pin
Julien9-Oct-06 12:55
Julien9-Oct-06 12:55 
GeneralRe: Any container gurus out there (Dictionary and SortedDictionary) Pin
Christian Graus9-Oct-06 13:04
protectorChristian Graus9-Oct-06 13:04 
QuestionFlatAppearance.BorderSize Pin
antonpaolo8-Oct-06 12:04
antonpaolo8-Oct-06 12:04 
QuestionWhy use exceptions...? Pin
Mark068-Oct-06 10:15
Mark068-Oct-06 10:15 

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.