System.Web.Mail

X

Xarky

Hi,
I am writing a windows form application to send mail. I am using
the System.Web.Mail namespace, but the Mail namespace is not being
found. Should I install something or what am I doing wrong.


Thanks
 
R

Ricky Lee

You have to add a reference to System.Web.dll.

-- Ricky Lee
==================================================
^o^ "When all doors are closed, God will open a Windows" ^o^
==================================================
 
J

Jonathan Stowe

Xarky said:
Hi,
I am writing a windows form application to send mail. I am using
the System.Web.Mail namespace, but the Mail namespace is not being
found. Should I install something or what am I doing wrong.

You need to add a reference to System.Web.dll in your project.

/J\
 
X

Xarky

Hi,
I am trying to send messages from different mail accounts having
different hosts. Most of the accounts are working, but one of them is
giving me the following error when trying to send the message.

The error message given is the following:
"Could not acces 'CDO.Message' object".

Can someone help
Thanks
 
X

xarky d_best

Problem was soleved by using the following:
SmtpMail.SmtpServer.Insert(0, SMTPServer);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top