Click here to Skip to main content
16,005,181 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Output Differs Pin
vijay248226-Mar-09 0:54
vijay248226-Mar-09 0:54 
AnswerRe: Output Differs Pin
JernejR26-Mar-09 0:58
JernejR26-Mar-09 0:58 
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 
Hi Luc,
Yes, you are right. But the point is not the command console.readline() but the fact that if I remove it the email is not sent.

In MSDN I found that if you use the synchronous Send method your code does not goes until the request is completed. This is why I'm using SendAsync that is asynchronous and it should not wait and send the email, not matter what the code does after.

I put the console.readline() only to be able to see the messages, I never tought that if I remove it the email is never sent.

Must be a reason for that...

Thanks for you reply. I'm still trying to find a way to send SMTP emails without having to finish the thread.

Thanks,

Paulo
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 
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 

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.