I am currently developing a C# asp.net application where users are
required to register. The application then generates a simple, plain
text email and sends it to the new user.
I have been trying to use the MailMessage and SmtpMail classes from the
System.Web.Mail namespace (built in to .net) to do this. It is my
understanding that these classes use CDONTS (cdosys.dll) and the SMTP
mail service on the server to send the messages. Messages are generated
and then placed in the "Queued" folder under the SMTPRoot folder in
IIS. The SMTP server service does the rest...
The problem I am having is that this method appears to be extremely
unreliable, at best. Sometimes the message will send, and sometimes I
get a "could not access CDO.Message" exception/error. After searching
for this on usenet, I have also discovered that this problem appears to
be very common. The only solution I can find is to reboot the
service/server (and that doesn't always work!)
Anyways, this is clearly not going to work in a production environment,
so I need to do something about it.
I would like to know if anyone has any suggestions on what I might do
to improve performance and reliability when trying to send emails from
my asp.net application. Are there better options to use for this (i.e.
3rd party components or tools?) If so, what would you recommend, and
why?
Thanks in advance for your help! 2 1459
Joey wrote: The problem I am having is that this method appears to be extremely unreliable, at best. Sometimes the message will send, and sometimes I get a "could not access CDO.Message" exception/error. After searching for this on usenet, I have also discovered that this problem appears to be very common. The only solution I can find is to reboot the service/server (and that doesn't always work!)
Anyways, this is clearly not going to work in a production environment, so I need to do something about it.
I would like to know if anyone has any suggestions on what I might do to improve performance and reliability when trying to send emails from my asp.net application. Are there better options to use for this (i.e. 3rd party components or tools?) If so, what would you recommend, and why?
Thanks in advance for your help!
I've heard good things about aspNetEmail (haven't tried it myself though): http://www.aspnetemail.com/
Good luck,
Ben
Hi, Joey.
The biggest problem I've seen when using an smtp server to send emails
is that the connection limit is easily surpassed because the system can
create emails faster than they can be sent out.
That causes a bit of unreliability and choking.
I've seen good results, and almost perfect reliability, when a little
delay is introduced to allow the number of connections to be lowered.
This little piece of code might be of help ::
if( connectionLimit != -1
&& ++sentCount >= connectionLimit ) {
System.Threadin g.Thread.Sleep( new TimeSpan( 0, 0, 0, 15, 0 ) );
sentCount = 0;
}
re: It is my understanding that these classes use CDONTS (cdosys.dll) and the SMTP mail service on the server to send the messages.
Windows Server 2003 does not install Collaboration Data Objects (CDO)
for NTS (CDONTS). Therefore, applications that use CDONTS do not
function on a Windows Server 2003-based computer.
Actually, the System.Web.Mail namespace provides a managed wrapper
for CDOSYS. The System.Web.Mail namespace is only available in
..NET Framework applications.
re:
"could not access CDO.Message"
What is your OS ?
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"Joey" <jo*********@to pscene.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .I am currently developing a C# asp.net application where users are required to register. The application then generates a simple, plain text email and sends it to the new user.
I have been trying to use the MailMessage and SmtpMail classes from the System.Web.Mail namespace (built in to .net) to do this. It is my understanding that these classes use CDONTS (cdosys.dll) and the SMTP mail service on the server to send the messages. Messages are generated and then placed in the "Queued" folder under the SMTPRoot folder in IIS. The SMTP server service does the rest...
The problem I am having is that this method appears to be extremely unreliable, at best. Sometimes the message will send, and sometimes I get a "could not access CDO.Message" exception/error. After searching for this on usenet, I have also discovered that this problem appears to be very common. The only solution I can find is to reboot the service/server (and that doesn't always work!)
Anyways, this is clearly not going to work in a production environment, so I need to do something about it.
I would like to know if anyone has any suggestions on what I might do to improve performance and reliability when trying to send emails from my asp.net application. Are there better options to use for this (i.e. 3rd party components or tools?) If so, what would you recommend, and why?
Thanks in advance for your help! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave |
last post by:
After following Microsofts admonition to reformat my system before doing a
final compilation of my app I got many warnings/errors upon compiling an rtf
file created in word. I used the Help Workshop program: hcw.exe that's
included with Visual Basic. This exact same file compiled perfectly with no
notes, warnings or errors prior to reformatting my system. Prior to the
reformatting, I copied the help.rtf file onto a CD and checked the box to...
|
by: Sarir Khamsi |
last post by:
Is there a way to get help the way you get it from the Python
interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the
module cmd.Cmd? I know how to add commands and help text to cmd.Cmd
but I would also like to get the man-page-like help for classes and
functions. Does anyone know how to do that? Thanks.
Sarir
|
by: wukexin |
last post by:
Help me, good men. I find mang books that introduce bit "mang header
files",they talk too bit,in fact it is my too fool, I don't learn it, I have
do a test program, but I have no correct doing result in any way. Who can
help me, I thank you very very much.
list.cpp(main program)
//--------------------------------------------------------------------------
-
#pragma hdrstop
#pragma argsused
|
by: d.warnermurray |
last post by:
I am doing a project for school that involves creating help files for a html
authoring tool.
If you could help me with answers to some questions it would really help.
1. What tasks do you expect an html authoring tool to help you accomplish?
2. What do you expect from online help for a html authoring tool?
3. What audience do you think a freeware html authoring tool is directed
towards?
|
by: Colin J. Williams |
last post by:
Python advertises some basic service:
C:\Python24>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
With numarray, help gives unhelpful responses:
| |
by: BT Openworld |
last post by:
I have just had to upgrade to Access 2003 as Access 97 EMail (SendObject)
doesn't work when loaded on Windows XP. I'm finding my way around Access
2003 but my biggest problem is getting information. When I bought Access 1.0
many years ago, I got a paper manual and an excellent help file with all you
needed to know. With Access 97 the manual came as a 'Building Applications'
document on the CD and I still had the excellent help. With Access...
|
by: Steve |
last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp
My expectation is that a developer using my DLL would be able to access this help file during his development time using "F1" help within the VB IDE. Is this expectation achievable
In trying to test my help file in the IDE, I have a solution with 2 projects: the DLL and a tester. VB does not look for my help file; instead, it looks for path to my source code...
|
by: Mark |
last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my
home computer has an abbreviated help screen not 2% of the help on my laptop.
All the settings look the same on both including search the internet for
help, but the help is worthless. Any ideas?
|
by: JonathanOrlev |
last post by:
Hello everybody,
I wrote this comment in another message of mine, but decided to post it
again as a standalone message.
I think that Microsoft's Office 2003 help system is horrible, probably
the worst I
ever seen.
I almost cannot find anything I need, including things I
|
by: trunxnirvana007 |
last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"'
'UPGRADE_WARNING: Couldn't resolve default property of object Label. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
Label = New Object(){Box1, Box2, Box3, Box4, Box5, Box6, Box7, Box8, Box9, Box10, Box11,...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |