Click here to Skip to main content
15,890,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Output Differs Pin
Luc Pattyn26-Mar-09 0:58
sitebuilderLuc Pattyn26-Mar-09 0:58 
QuestionUsing SMTP, the email is sent only when the Form is closed Pin
paulogomes25-Mar-09 16:30
paulogomes25-Mar-09 16:30 
AnswerRe: Using SMTP, the email is sent only when the Form is closed Pin
Henry Minute26-Mar-09 1:48
Henry Minute26-Mar-09 1:48 
GeneralRe: Using SMTP, the email is sent only when the Form is closed Pin
paulogomes26-Mar-09 7:36
paulogomes26-Mar-09 7:36 
GeneralRe: Using SMTP, the email is sent only when the Form is closed Pin
Luc Pattyn26-Mar-09 9:02
sitebuilderLuc Pattyn26-Mar-09 9:02 
GeneralRe: Using SMTP, the email is sent only when the Form is closed Pin
paulogomes26-Mar-09 9:14
paulogomes26-Mar-09 9:14 
GeneralRe: Using SMTP, the email is sent only when the Form is closed Pin
Henry Minute26-Mar-09 9:12
Henry Minute26-Mar-09 9:12 
AnswerRe: Using SMTP, the email is sent only when the Form is closed Pin
Luc Pattyn26-Mar-09 9:50
sitebuilderLuc Pattyn26-Mar-09 9:50 
Hi Paulo,

I have a C# program that, amongst a lot of other stuff, contains mail code, basically identical to yours (the synchronous version, that is):
MailMessage msg=new MailMessage();
... // set msg.properties
SmtpClient client = new SmtpClient(server);
client.Send(msg);

The only difference is my client is constructed with the server's name as a parameter.
My program successfully sends three mails without exiting at all.
My best guess is your observation somehow is wrong.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Thursday, March 26, 2009 4:23 PM

GeneralRe: Using SMTP, the email is sent only when the Form is closed Pin
paulogomes26-Mar-09 10:49
paulogomes26-Mar-09 10:49 
GeneralRe: Using SMTP, the email is sent only when the Form is closed Pin
Luc Pattyn26-Mar-09 10:59
sitebuilderLuc Pattyn26-Mar-09 10:59 
GeneralRe: Using SMTP, the email is sent only when the Form is closed Pin
paulogomes26-Mar-09 11:38
paulogomes26-Mar-09 11:38 
QuestionError trying to draw on form Pin
o m n i25-Mar-09 16:11
o m n i25-Mar-09 16:11 
AnswerRe: Error trying to draw on form Pin
Bharat Jain25-Mar-09 19:07
Bharat Jain25-Mar-09 19:07 
AnswerRe: Error trying to draw on form Pin
Dave Kreskowiak26-Mar-09 4:31
mveDave Kreskowiak26-Mar-09 4:31 
Questionsave array [modified] Pin
moonshaddow25-Mar-09 15:44
moonshaddow25-Mar-09 15:44 
AnswerRe: save array Pin
o m n i25-Mar-09 16:19
o m n i25-Mar-09 16:19 
GeneralRe: save array Pin
moonshaddow25-Mar-09 16:40
moonshaddow25-Mar-09 16:40 
GeneralRe: save array Pin
Ashfield25-Mar-09 22:47
Ashfield25-Mar-09 22:47 
GeneralRe: save array Pin
moonshaddow26-Mar-09 12:48
moonshaddow26-Mar-09 12:48 
QuestionI have a final working project in Visual basic 2008. Pin
katie2325-Mar-09 12:34
katie2325-Mar-09 12:34 
AnswerRe: I have a final working project in Visual basic 2008. Pin
Henry Minute25-Mar-09 13:13
Henry Minute25-Mar-09 13:13 
AnswerRe: I have a final working project in Visual basic 2008. Pin
tech60325-Mar-09 20:00
tech60325-Mar-09 20:00 
GeneralRe: I have a final working project in Visual basic 2008. Pin
katie2325-Mar-09 21:33
katie2325-Mar-09 21:33 
QuestionEasy Q:How to find the longest name(user input) in an array? Pin
Haroon Ghazni25-Mar-09 11:31
Haroon Ghazni25-Mar-09 11:31 
AnswerRe: Easy Q:How to find the longest name(user input) in an array? Pin
Henry Minute25-Mar-09 11:55
Henry Minute25-Mar-09 11:55 

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.