Click here to Skip to main content
15,889,034 members
Home / Discussions / C#
   

C#

 
GeneralHelp!!! SHDocVw Events Not Firing Pin
Adam Stirk20-Jul-04 6:06
Adam Stirk20-Jul-04 6:06 
GeneralRe: Help!!! SHDocVw Events Not Firing Pin
The Man from U.N.C.L.E.20-Jul-04 7:10
The Man from U.N.C.L.E.20-Jul-04 7:10 
GeneralRe: Help!!! SHDocVw Events Not Firing Pin
Adam Stirk20-Jul-04 8:11
Adam Stirk20-Jul-04 8:11 
GeneralCookies and HttpWebRequest Pin
Brian Delahunty20-Jul-04 5:13
Brian Delahunty20-Jul-04 5:13 
GeneralRe: Cookies and HttpWebRequest Pin
Heath Stewart20-Jul-04 9:22
protectorHeath Stewart20-Jul-04 9:22 
GeneralSwitching current language Pin
mikker_12320-Jul-04 4:56
mikker_12320-Jul-04 4:56 
GeneralRe: Switching current language Pin
Steven Campbell20-Jul-04 6:01
Steven Campbell20-Jul-04 6:01 
GeneralSMTP MAIL Pin
Ljungman20-Jul-04 2:47
Ljungman20-Jul-04 2:47 
Hey,

I've built a small email application(I use the System.Web.Mail namespace), when I send the email/emails with attachments they work very well, my network technician says its works pretty well, expect that there is no disconnect, my program simple just shuts down. I was wondering if there isnt any way to tell the server that we are quiting and done sending. It seems I dont send any quit command so that the smtp server releases my connection.

Some of the code:
SmtpMail.SmtpServer = "myMailserver.com";<br />
					   <br />
MailMessage mail = new MailMessage();<br />
mail.To = this.smtpTo.Text;<br />
mail.Cc = this.stmpCC.Text;<br />
mail.Bcc = this.stmpBCC.Text;<br />
mail.From = this.smtpFrom.Text;<br />
mail.Subject = this.stmpSubject.Text;<br />
mail.Body = this.MessageBox.Text;<br />
MailAttachment attachment = new MailAttachment(AttachmentBox.Text);<br />
mail.Attachments.Add(attachment);<br />
SmtpMail.Send(mail);


Best Regards
/Johan
GeneralRe: SMTP MAIL Pin
Heath Stewart20-Jul-04 8:49
protectorHeath Stewart20-Jul-04 8:49 
GeneralAccessing internal help text inside .chm file. Pin
JimmyG1320-Jul-04 1:53
JimmyG1320-Jul-04 1:53 
GeneralRe: Accessing internal help text inside .chm file. Pin
Heath Stewart20-Jul-04 8:53
protectorHeath Stewart20-Jul-04 8:53 
GeneralReflection Problems... Pin
Norman-Timo20-Jul-04 1:40
Norman-Timo20-Jul-04 1:40 
GeneralRe: Reflection Problems... Pin
Nick Parker20-Jul-04 3:13
protectorNick Parker20-Jul-04 3:13 
GeneralCompound Document Pin
Omar Alvi20-Jul-04 0:26
Omar Alvi20-Jul-04 0:26 
GeneralRe: Compound Document Pin
Heath Stewart20-Jul-04 9:08
protectorHeath Stewart20-Jul-04 9:08 
GeneralDynamic Help Pin
ravindra23119-Jul-04 23:42
ravindra23119-Jul-04 23:42 
GeneralRe: Dynamic Help Pin
Heath Stewart20-Jul-04 9:31
protectorHeath Stewart20-Jul-04 9:31 
GeneralRe: Dynamic Help Pin
ravindra23121-Jul-04 1:49
ravindra23121-Jul-04 1:49 
GeneralRe: Dynamic Help Pin
Heath Stewart21-Jul-04 4:16
protectorHeath Stewart21-Jul-04 4:16 
GeneralRe: Dynamic Help Pin
ravindra23123-Jul-04 18:58
ravindra23123-Jul-04 18:58 
GeneralRe: Dynamic Help Pin
Heath Stewart26-Jul-04 2:21
protectorHeath Stewart26-Jul-04 2:21 
QuestionHow can I write with different fonts in DirectX? Pin
arik_a19-Jul-04 22:53
arik_a19-Jul-04 22:53 
AnswerRe: How can I write with different fonts in DirectX? Pin
Heath Stewart20-Jul-04 9:37
protectorHeath Stewart20-Jul-04 9:37 
QuestionC# Living or Phazing out? Pin
Xentinel19-Jul-04 21:53
Xentinel19-Jul-04 21:53 
AnswerRe: C# Living or Phazing out? Pin
Michael P Butler19-Jul-04 22:15
Michael P Butler19-Jul-04 22: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.