Click here to Skip to main content
15,915,869 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cross Thread operation is not Valid Pin
emran8345-Mar-06 15:16
emran8345-Mar-06 15:16 
GeneralRe: Cross Thread operation is not Valid Pin
mikanu6-Mar-06 13:20
mikanu6-Mar-06 13:20 
QuestionSystem.Drawing.Graphics question Pin
QzRz5-Mar-06 9:07
QzRz5-Mar-06 9:07 
AnswerRe: System.Drawing.Graphics question Pin
Guffa5-Mar-06 9:11
Guffa5-Mar-06 9:11 
GeneralRe: System.Drawing.Graphics question Pin
QzRz5-Mar-06 9:21
QzRz5-Mar-06 9:21 
QuestionSending an e-mail Pin
steve_rm5-Mar-06 6:05
steve_rm5-Mar-06 6:05 
AnswerRe: Sending an e-mail Pin
Guffa5-Mar-06 8:42
Guffa5-Mar-06 8:42 
AnswerRe: Sending an e-mail Pin
Sean895-Mar-06 12:47
Sean895-Mar-06 12:47 
I recently got bored and made an e-mail aplication. Using my ISP's mail server worked for me. Also I noticed that you are using System.Web.Mail namespace. In C# 2.0 this is obsolete. System.Net.Mail is the one that the compiler reccommends, however it is not required.

Ex.

using System.Net.Mail;
using System.Net;

...

try
{
     // MailMessage is used to represent the e-mail being sent
     using (MailMessage message = new MailMessage("me@hotmail.com", "you@gmail.com", "Test", "This is a test"))
     {
          message.IsBodyHtml = true;

          // SmtpClient is used to send the e-mail
          SmtpClient mailClient = new SmtpClient("smtp.execulink.com");

          // UseDefaultCredentials tells the mail client to use the 
          // Windows credentials of the account (i.e. user account) 
          // being used to run the application
          mailClient.UseDefaultCredentials = true;

          // Send delivers the message to the mail server
          mailClient.Send(message);
      }

                MessageBox.Show("Message Sent");
}

QuestionRe: Sending an e-mail Pin
steve_rm5-Mar-06 20:49
steve_rm5-Mar-06 20:49 
AnswerRe: Sending an e-mail Pin
albCode5-Mar-06 21:12
albCode5-Mar-06 21:12 
AnswerRe: Sending an e-mail Pin
Sebastian Schneider5-Mar-06 23:41
Sebastian Schneider5-Mar-06 23:41 
QuestionRe: Sending an e-mail Pin
steve_rm6-Mar-06 0:48
steve_rm6-Mar-06 0:48 
AnswerRe: Sending an e-mail Pin
albCode6-Mar-06 3:06
albCode6-Mar-06 3:06 
QuestionRe: Sending an e-mail Pin
steve_rm6-Mar-06 16:08
steve_rm6-Mar-06 16:08 
QuestionUSB Port Pin
Sean895-Mar-06 4:58
Sean895-Mar-06 4:58 
AnswerRe: USB Port Pin
Ed.Poore5-Mar-06 6:56
Ed.Poore5-Mar-06 6:56 
GeneralRe: USB Port Pin
Sean895-Mar-06 9:13
Sean895-Mar-06 9:13 
AnswerRe: USB Port Pin
eggie55-Mar-06 20:24
eggie55-Mar-06 20:24 
QuestionForm - Handle Pin
AJ1235-Mar-06 4:44
AJ1235-Mar-06 4:44 
AnswerRe: Form - Handle Pin
Stanciu Vlad5-Mar-06 6:23
Stanciu Vlad5-Mar-06 6:23 
GeneralRe: Form - Handle Pin
AJ1235-Mar-06 9:09
AJ1235-Mar-06 9:09 
GeneralRe: Form - Handle Pin
Stanciu Vlad5-Mar-06 9:27
Stanciu Vlad5-Mar-06 9:27 
GeneralRe: Form - Handle Pin
Gavin Taylor5-Mar-06 18:49
professionalGavin Taylor5-Mar-06 18:49 
AnswerRe: Form - Handle Pin
leppie5-Mar-06 6:40
leppie5-Mar-06 6:40 
QuestionI need your help. Pin
a_kiani5-Mar-06 3:30
a_kiani5-Mar-06 3:30 

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.