Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
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 
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 
Hello,

I made the changes to the SmtpMail.SmtpServer = "mail.hotmail.com";. My listing for sending the code is illistrated below. But still does not work. I am sending the e-mail to my hotmail account steve1_rm@hotmail.com, but never gets there.

<br />
MailMessage aMessage = new MailMessage();<br />
                aMessage.From = txtFrom.Text;<br />
                aMessage.To = txtTo.Text;<br />
                aMessage.Cc = txtCC.Text;<br />
                aMessage.Bcc = txtBCC.Text;<br />
                aMessage.Subject = txtSubject.Text;<br />
                aMessage.Body = txtMessage.Text;<br />
<br />
                //If an attachment file is indicated, create it and add it to the message<br />
                if (txtAttachment.Text.Length > 0)<br />
                {<br />
                    aMessage.Attachments.Add(new MailAttachment(txtAttachment.Text, MailEncoding.Base64));<br />
                }<br />
            <br />
                SmtpMail.SmtpServer = "mail.hotmail.com";<br />
<br />
                //Now send the message<br />
                SmtpMail.Send(aMessage);<br />
<br />
                //Indicate that the message has been sent<br />
                MessageBox.Show("Message sent to " + txtTo.Text, "E-mail Program", MessageBoxButtons.OK, MessageBoxIcon.Information);<br />


Is there something I am doing wrong, or something I am not doing.

Thanks in advance,

Steve
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 
QuestionSerialization Doubt Pin
manivannan.p5-Mar-06 1:20
manivannan.p5-Mar-06 1:20 
GeneralRe: Serialization Doubt Pin
Guffa5-Mar-06 2:08
Guffa5-Mar-06 2:08 
QuestionHow does StringBuilder Work? Pin
manivannan.p5-Mar-06 1:12
manivannan.p5-Mar-06 1:12 
AnswerRe: How does StringBuilder Work? Pin
Guffa5-Mar-06 1:58
Guffa5-Mar-06 1:58 

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.