Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: EKRN.EXE Pin
Pete O'Hanlon8-Feb-12 22:12
mvePete O'Hanlon8-Feb-12 22:12 
GeneralRe: EKRN.EXE Pin
candogu9-Feb-12 2:54
candogu9-Feb-12 2:54 
QuestionResource Sharing and Conflict Management System Pin
shaistamin7-Feb-12 19:20
shaistamin7-Feb-12 19:20 
AnswerRe: Resource Sharing and Conflict Management System Pin
Richard MacCutchan7-Feb-12 22:38
mveRichard MacCutchan7-Feb-12 22:38 
AnswerRe: Resource Sharing and Conflict Management System Pin
Eddy Vluggen8-Feb-12 0:21
professionalEddy Vluggen8-Feb-12 0:21 
QuestionReplacing LF with CRLF in text file Pin
KimberlyKetchum7-Feb-12 19:06
KimberlyKetchum7-Feb-12 19:06 
AnswerRe: Replacing LF with CRLF in text file Pin
SledgeHammer017-Feb-12 19:36
SledgeHammer017-Feb-12 19:36 
Questionsend mail in windows application Pin
Member 6126317-Feb-12 18:59
Member 6126317-Feb-12 18:59 
Hi every body

I want to send email in windows application.
when i trace code all is OK but no message is received in mailbox ,my code is below:

MailAddressCollection receivers = new MailAddressCollection();
MailMessage msg = new MailMessage();
msg.IsBodyHtml = true;

msg.From = new MailAddress("telavat@telavat.com", "Alireza Doroudian");

msg.To.Add("a.doroudian@gmail.com");
msg.Subject = "testofHtml";
msg.Body = "ww";
SmtpClient smpt = new SmtpClient();

smpt.Host = "localhost";

smpt.Port = 25;
smpt.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;

smpt.Send(msg);

thanks for any guides

Regards
Ali
AnswerRe: send mail in windows application Pin
SledgeHammer017-Feb-12 19:32
SledgeHammer017-Feb-12 19:32 
AnswerRe: send mail in windows application Pin
Richard MacCutchan7-Feb-12 22:37
mveRichard MacCutchan7-Feb-12 22:37 
AnswerRe: send mail in windows application Pin
Jitendra Parida - Jeetu8-Feb-12 1:25
Jitendra Parida - Jeetu8-Feb-12 1:25 
QuestionExport to excel attachments not coming in excel Pin
Vinayak B7-Feb-12 18:36
Vinayak B7-Feb-12 18:36 
QuestionOptimising data retrieval in application with high refresh rate Pin
brendanpi7-Feb-12 17:16
brendanpi7-Feb-12 17:16 
AnswerRe: Optimising data retrieval in application with high refresh rate Pin
SledgeHammer017-Feb-12 18:34
SledgeHammer017-Feb-12 18:34 
GeneralRe: Optimising data retrieval in application with high refresh rate Pin
brendanpi7-Feb-12 18:40
brendanpi7-Feb-12 18:40 
GeneralRe: Optimising data retrieval in application with high refresh rate Pin
Mycroft Holmes7-Feb-12 18:48
professionalMycroft Holmes7-Feb-12 18:48 
GeneralRe: Optimising data retrieval in application with high refresh rate Pin
SledgeHammer017-Feb-12 19:30
SledgeHammer017-Feb-12 19:30 
GeneralRe: Optimising data retrieval in application with high refresh rate Pin
Mycroft Holmes7-Feb-12 20:08
professionalMycroft Holmes7-Feb-12 20:08 
GeneralRe: Optimising data retrieval in application with high refresh rate Pin
SledgeHammer018-Feb-12 3:58
SledgeHammer018-Feb-12 3:58 
GeneralRe: Optimising data retrieval in application with high refresh rate Pin
SledgeHammer017-Feb-12 19:27
SledgeHammer017-Feb-12 19:27 
Questionprogramming unknown conditions Pin
SilimSayo7-Feb-12 15:40
SilimSayo7-Feb-12 15:40 
AnswerRe: programming unknown conditions Pin
R. Giskard Reventlov7-Feb-12 15:53
R. Giskard Reventlov7-Feb-12 15:53 
AnswerRe: programming unknown conditions Pin
candogu7-Feb-12 20:32
candogu7-Feb-12 20:32 
AnswerRe: programming unknown conditions Pin
BillWoodruff8-Feb-12 4:06
professionalBillWoodruff8-Feb-12 4:06 
AnswerRe: programming unknown conditions Pin
BobJanova8-Feb-12 4:07
BobJanova8-Feb-12 4:07 

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.