I'm using VB.NET 2003 to writing a Windows application and I want it to send
email.

I've been assuming the easiest method is by using System.Web.Mail.SmtpMail.
I point a specific server using:
System.Web.Mail.SmtpMail.SmtpServer = "BANANA".
That server is our Exchange Server.

Everything works great for ME on my computer. However, when I give the .EXE
to someone else to run they're getting an error:
"System.Web.HttpException: Could not access 'CDO.Message' object. --->
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.Runtime.InteropServices.COMException
(0x80040213): The transport failed to connect to the server."

My devbox has the SMTP service installed. The other guy's computer does
not. Is that why its failing on his computer? I'd hoped that if I point to
a specific server for delivery (rather than default to localhost) the SMTP
service wouldn't need to be installed on the host running my program.

Re: The transport failed to connect to the server by Sijin

Sijin
Tue Nov 09 03:13:27 CST 2004

Take a look here
http://www.systemwebmail.com/faq/4.3.9.aspx

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

Paul wrote:
> I'm using VB.NET 2003 to writing a Windows application and I want it to send
> email.
>
> I've been assuming the easiest method is by using System.Web.Mail.SmtpMail.
> I point a specific server using:
> System.Web.Mail.SmtpMail.SmtpServer = "BANANA".
> That server is our Exchange Server.
>
> Everything works great for ME on my computer. However, when I give the .EXE
> to someone else to run they're getting an error:
> "System.Web.HttpException: Could not access 'CDO.Message' object. --->
> System.Reflection.TargetInvocationException: Exception has been thrown by the
> target of an invocation. ---> System.Runtime.InteropServices.COMException
> (0x80040213): The transport failed to connect to the server."
>
> My devbox has the SMTP service installed. The other guy's computer does
> not. Is that why its failing on his computer? I'd hoped that if I point to
> a specific server for delivery (rather than default to localhost) the SMTP
> service wouldn't need to be installed on the host running my program.
>

Re: The transport failed to connect to the server by Paul

Paul
Tue Nov 09 10:30:04 CST 2004

The page cannot be displayed

"Sijin Joseph" wrote:

> Take a look here
> http://www.systemwebmail.com/faq/4.3.9.aspx
>
> Sijin Joseph
> http://www.indiangeek.net
> http://weblogs.asp.net/sjoseph
>
> Paul wrote:
> > I'm using VB.NET 2003 to writing a Windows application and I want it to send
> > email.
> >
> > I've been assuming the easiest method is by using System.Web.Mail.SmtpMail.
> > I point a specific server using:
> > System.Web.Mail.SmtpMail.SmtpServer = "BANANA".
> > That server is our Exchange Server.
> >
> > Everything works great for ME on my computer. However, when I give the .EXE
> > to someone else to run they're getting an error:
> > "System.Web.HttpException: Could not access 'CDO.Message' object. --->
> > System.Reflection.TargetInvocationException: Exception has been thrown by the
> > target of an invocation. ---> System.Runtime.InteropServices.COMException
> > (0x80040213): The transport failed to connect to the server."
> >
> > My devbox has the SMTP service installed. The other guy's computer does
> > not. Is that why its failing on his computer? I'd hoped that if I point to
> > a specific server for delivery (rather than default to localhost) the SMTP
> > service wouldn't need to be installed on the host running my program.
> >
>

Re: The transport failed to connect to the server by Paul

Paul
Tue Nov 09 10:48:04 CST 2004

Okay, the site works again but still doesn't answer my question:
If I'm going to use System.Web.Mail.SmtpMail, does the client running my
appliation require the SMTP service installed and running on their machine?

"Sijin Joseph" wrote:

> Take a look here
> http://www.systemwebmail.com/faq/4.3.9.aspx
>
> Sijin Joseph
> http://www.indiangeek.net
> http://weblogs.asp.net/sjoseph
>
> Paul wrote:
> > I'm using VB.NET 2003 to writing a Windows application and I want it to send
> > email.
> >
> > I've been assuming the easiest method is by using System.Web.Mail.SmtpMail.
> > I point a specific server using:
> > System.Web.Mail.SmtpMail.SmtpServer = "BANANA".
> > That server is our Exchange Server.
> >
> > Everything works great for ME on my computer. However, when I give the .EXE
> > to someone else to run they're getting an error:
> > "System.Web.HttpException: Could not access 'CDO.Message' object. --->
> > System.Reflection.TargetInvocationException: Exception has been thrown by the
> > target of an invocation. ---> System.Runtime.InteropServices.COMException
> > (0x80040213): The transport failed to connect to the server."
> >
> > My devbox has the SMTP service installed. The other guy's computer does
> > not. Is that why its failing on his computer? I'd hoped that if I point to
> > a specific server for delivery (rather than default to localhost) the SMTP
> > service wouldn't need to be installed on the host running my program.
> >
>