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

Visual Basic

 
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 
GeneralRe: Using SMTP, the email is sent only when the Form is closed Pin
paulogomes26-Mar-09 10:49
paulogomes26-Mar-09 10:49 
Hi Luc/Henry,
I tried to build the SMTP client as Luc suggested but did not work either.

However, I found what the problem was: follow me.

when I started this project I did not know if I'll be using MAPI or SMTP, so I wrote 2 methods. Testing the MAPI time ago (with MAPI we use here Exchange Server), when the email is sent ExchangeServer pops a dialog box telling me that a program (my application) "is trying to send an email on your behalf" and give me an OK and CANCEL buttons. Once I hit OK, the email is sent.

That is the key: I'm testing the code using my own equipment, sending emails to me to see if it works or not. Did you see what happened?

SMTP does not have all Exchange Server features and does not issue a dialog asking for authorization, but it keeps waiting because I'm sending emails from my equipment to myself, but the user is not me, is my application, using my credencials!

As a proof of concept for this theory, I installed the application in another computer in the network and it worked fine, no more need to close the sending thread!

Nothing is wrong with those VB and C# codes, just the way I'm testing.

So, Luc/Henry, I really appreciate your effords and time spent to help me and it was a good felling having someone in the other side to discuss with my tech problems.

Thank you!

Paulo
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 
GeneralRe: Easy Q:How to find the longest name(user input) in an array? [modified] Pin
Haroon Ghazni25-Mar-09 12:32
Haroon Ghazni25-Mar-09 12:32 

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.