Re: Sending an email via vb
Seems that you need to specify the smtp server?
VB Code:
SmtpMail.SmtpServer = "mail.your-domain.com"
By default, if SmtpMail.SmtpServer is not set, System.Web.Mail is supposed to use localhost as the default property.
However, for some reason this doesn't appear work. If you are using the local SMTP Service to send emails, you may try the following values:
"127.0.0.1"
"localhost"
"the_machine_name_here"
"the_real_dns_name_here"
"the_machine_IP_Address_here"
That should fix it.
From this site here - http://www.systemwebmail.com/faq/4.2.2.aspx
Re: Sending an email via vb
Why not just ShellExecute "mailto: your address"? That would open the default e-mail client (Eudora, Outlook, Outlook Express, or whatever the user has as their default client) to send the message.
Re: Sending an email via vb
Because if the system doesnt have a email client it will brng up the Open With dialog box. Also, with Outlook it will invoke the Security Prompt dialog window before it is Sent. ;)