G
Guest
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.
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.