Sending email from vb.net program

  • Thread starter Thread starter Lubos Hrasko
  • Start date Start date
* quantum said:
After some initialization I use the following statement to send an email
message:
System.Web.Mail.SmtpMail.Send(email)
As my program will be distributed to different users, who may have
diferent SMTP servers, I don't set the SMTP server, hoping the default
SMTP server wil be used.
The problem is, the message is not being sent. The only thing that
happens when the program reaches the "Send" line is that there is a
little disk activity. The connection is not made, and Outlook Express
doesn't open.
I have Windows XP, and I have tried to send email from an html page
using an html form and it worked. So, it looks that I do have the
capacity to programatically send emails, it is just that my vb.net code
fails to do it.

<URL:http://www.systemwebmail.net/>

Alternatives:

<URL:http://www.indyproject.org/indy.html>
 
After some initialization I use the following statement to send an emai
message:
System.Web.Mail.SmtpMail.Send(email)
As my program will be distributed to different users, who may hav
diferent SMTP servers, I don't set the SMTP server, hoping the defaul
SMTP server wil be used.
The problem is, the message is not being sent. The only thing tha
happens when the program reaches the "Send" line is that there is
little disk activity. The connection is not made, and Outlook Expres
doesn't open.
I have Windows XP, and I have tried to send email from an html pag
using an html form and it worked. So, it looks that I do have th
capacity to programatically send emails, it is just that my vb.net cod
fails to do it.
I don't get any error messages.
I am really puzzled and I don't know what to do.
I'll really appreciate your help


-
quantu
 
Back
Top