473,395 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SMTP question



MailMessage myMail = new MailMessage();

myMail.From = textFrom.Text.Trim();

myMail.To = textTo.Text.Trim();

myMail.Subject = textSubject.Text.Trim();

myMail.BodyFormat = MailFormat.Text;

myMail.Body = textMsg.Text.Trim();

SmtpMail.SmtpServer = textSMTPServer.Text.Trim();

SmtpMail.Send(myMail);

*********************************

The above code produces this error:
Cannot access 'CDO.Message' object.
What is wrong?
Patrick.

Nov 16 '05 #1
8 1075
See if this link helps. It has helped me in the past.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #2
See if this link helps.

http://www.systemwebmail.com/faq/4.2.7.aspx

It has helped me in the past.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Well, I see that the error cause possibilities are rather nemerous :(
Use a different dll?
Patrick.

"Danny Carvajal" <da************@hotmail.com> wrote in message
news:em**************@TK2MSFTNGP11.phx.gbl...
See if this link helps.

http://www.systemwebmail.com/faq/4.2.7.aspx

It has helped me in the past.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4
I would strongly recommend you don't use the built-in MailMessage and
SmtpMail stuff in .NET

They're very simplistic wrappers (as you might suspect) for some calls to
the CDO COM components. The implementation is pretty poor in a number of
respects and you have very little control. It also has some installation
pre-requisites that aren't documented in the .NET documentation.

I would highly recommend you find a separate SMTP library, either one of the
open source implementations or one of the commercial libraries.

Pete

"Patrick de Ridder" <wa********@all.here> wrote in message
news:6c**************************@freeler.nl...


MailMessage myMail = new MailMessage();

myMail.From = textFrom.Text.Trim();

myMail.To = textTo.Text.Trim();

myMail.Subject = textSubject.Text.Trim();

myMail.BodyFormat = MailFormat.Text;

myMail.Body = textMsg.Text.Trim();

SmtpMail.SmtpServer = textSMTPServer.Text.Trim();

SmtpMail.Send(myMail);

*********************************

The above code produces this error:
Cannot access 'CDO.Message' object.
What is wrong?
Patrick.

Nov 16 '05 #5
Hi Pete,

Right! I have downloaded QuikSoft and it works aok.
Both the indy dll and the Windows dll caused problems.

The Quiksoft library is free and must not be re-sold.
Could you recommend a commerical SMTP library to me?

Many thanks,
Patrick.
do***@freeler.nl
<pd******@hotmail.com> wrote in message
news:88******************************@news.meganet news.com...
I would strongly recommend you don't use the built-in MailMessage and
SmtpMail stuff in .NET

They're very simplistic wrappers (as you might suspect) for some calls to
the CDO COM components. The implementation is pretty poor in a number of
respects and you have very little control. It also has some installation
pre-requisites that aren't documented in the .NET documentation.

I would highly recommend you find a separate SMTP library, either one of the open source implementations or one of the commercial libraries.

Pete

"Patrick de Ridder" <wa********@all.here> wrote in message
news:6c**************************@freeler.nl...


MailMessage myMail = new MailMessage();

myMail.From = textFrom.Text.Trim();

myMail.To = textTo.Text.Trim();

myMail.Subject = textSubject.Text.Trim();

myMail.BodyFormat = MailFormat.Text;

myMail.Body = textMsg.Text.Trim();

SmtpMail.SmtpServer = textSMTPServer.Text.Trim();

SmtpMail.Send(myMail);

*********************************

The above code produces this error:
Cannot access 'CDO.Message' object.
What is wrong?
Patrick.


Nov 16 '05 #6
I actually haven't used any commercial ones, so I'd hesitate to recommend
any of them. Perhaps someone here has some experience and can help you out
there. I've only used the SMTP stuff for personal projects and have used
open source alternatives.

Pete

"Patrick de Ridder" <wa********@all.here> wrote in message
news:14***************************@freeler.nl...
Hi Pete,

Right! I have downloaded QuikSoft and it works aok.
Both the indy dll and the Windows dll caused problems.

The Quiksoft library is free and must not be re-sold.
Could you recommend a commerical SMTP library to me?

Many thanks,
Patrick.
do***@freeler.nl
<pd******@hotmail.com> wrote in message
news:88******************************@news.meganet news.com...
I would strongly recommend you don't use the built-in MailMessage and
SmtpMail stuff in .NET

They're very simplistic wrappers (as you might suspect) for some calls to the CDO COM components. The implementation is pretty poor in a number of
respects and you have very little control. It also has some installation
pre-requisites that aren't documented in the .NET documentation.

I would highly recommend you find a separate SMTP library, either one of

the
open source implementations or one of the commercial libraries.

Pete

"Patrick de Ridder" <wa********@all.here> wrote in message
news:6c**************************@freeler.nl...


MailMessage myMail = new MailMessage();

myMail.From = textFrom.Text.Trim();

myMail.To = textTo.Text.Trim();

myMail.Subject = textSubject.Text.Trim();

myMail.BodyFormat = MailFormat.Text;

myMail.Body = textMsg.Text.Trim();

SmtpMail.SmtpServer = textSMTPServer.Text.Trim();

SmtpMail.Send(myMail);

*********************************

The above code produces this error:
Cannot access 'CDO.Message' object.
What is wrong?
Patrick.



Nov 16 '05 #7
> Hi Pete,

Right! I have downloaded QuikSoft and it works aok.
Both the indy dll and the Windows dll caused problems.
The Quiksoft library is free and must not be re-sold. Could you recommend a commerical SMTP library to me?


IP*Works! -
http://www.nsoftware.com/products/sh...px?part=IPN6-A. The trial download
includes an example for sending and reading email.

Regards,
Lance R.
/n
software
http://www.nsoftware.com/

-

Nov 16 '05 #8
The purchase prices are stunning.
Thank you anyway.
Patrick.

<la****@nsoftware.removeme.com> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Hi Pete,

Right! I have downloaded QuikSoft and it works aok.
Both the indy dll and the Windows dll caused problems.

The Quiksoft library is

free and must not be re-sold.
Could you recommend a commerical SMTP library

to me?


IP*Works! -
http://www.nsoftware.com/products/sh...px?part=IPN6-A. The trial

download includes an example for sending and reading email.

Regards,
Lance R.
/n
software
http://www.nsoftware.com/

-

Nov 16 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ehendrikd | last post by:
hi all i have written a php site that uses the mail() on windows and i had to state in the php.ini file which smtp server to use. have now migrated this site to a redhat 9 server, but i still...
2
by: Dan Boyle | last post by:
Hi, I am having difficulty connection to an smtp host. I am using the following code but I don't think I fully understand what smtp host can be used. function setSMTPParams($host = null,...
21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. ...
4
by: Philippe C. Martin | last post by:
Hi, I am testing the smtp module and have the following question: in the code below (taken from net sample) prior to adding the "Subject:" field, the email client found the "From" and the...
5
by: Charlie | last post by:
Hi: I'm working on an e-commerce site. Using the SMTP class, my site sends out confirmation messages. It works most of the time, but sometimes raises an error. I need a way of making sure it...
3
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it...
1
by: Nigel | last post by:
I know there are lots of threads covering my question but i am still unable to send e-mails from an asp.net page. Messages are not even going into the logs. Here is the code that i am using to...
6
by: Dushyant | last post by:
Hi everyone, I am working on an application, where I need to mail some xml files as attachments. I tried to use System.Diagnostic.Process class but it does not provide any help for attaching a...
5
by: trevisc | last post by:
Good afternoon everyone. I'm currently trying to build an automated invoice system that collects dynamic data and automatically sends out invoices. In my test database I have 23 companies that...
6
by: phpmagesh | last post by:
Hi, I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details, problem is when i send mail it simple through waring msg...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.