Welcome to the Axosoft Community, Sign in | Register | Help
in Search

Dan Suceava

Everything & Nothing

Tips & Tricks of the OnTime Guru - Changing the SMTP assembly

By default, OnTime uses a built-in SMTP client to send out e-mail notifications.  The advantage of this is that it does not rely on any 3rd party SMTP library and it's very light-weight, but the disatvantage is that it's not as configurable as some SMTP servers may require it to be. 

The .Net framework also has built-in support for sending e-mails through the System.Web.Mail namespace, but it relies on the CDOSYS component.  Some systems may not necessarily have CDO installed by default which makes using it less desirable.

OnTime 2005 uses pluggable assemblies for the SMTP code so that it does not rely on a particular implementation to send out e-mail notifications.  OnTime ships with both the built-in support for SMTP, as well as a CDO implementation, and by default it uses the built-in SMTP code so that it does not have to rely on CDO being installed.  Each implementation is contained in its own assembly, and these assemblies are installed in the \Plugins\Mail subfolder of the main installation folder.  Which assembly OnTime uses is controlled through a value of a column in one of the tables in the database.  That is the 'SmtpAssembly' field in the 'NotificationSettings' table.

So, if you are having problems with e-mail notifications with the default implementation, you may try switching to the CDO implementation (assuming you have CDO installed) by going into the 'NotificationSettings' table in the OnTime database and modifying the 'SmtpAssembly' field to the appropriate assembly name: 'Axosoft.Common.CDO.dll'.  The default value in this field should be 'Axosoft.Common.Smtp.dll'.  You will have to restart OnTime for the change to take place.

Published Tuesday, March 29, 2005 6:57 AM by Dan Suceava

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Anonymous said:

The DLL was very simple to use and is far more flexible then Outlook. You can send emails with different "sender email address" without using profiles - excellent email program. - Anil - UK

download SMTP POP3 DLL free at:
http://www.yaodownload.com/software-development/components-libraries/smtppop3dll/

Originally posted by:
mark
April 20, 2006 10:20 PM

Leave a Comment

(required) 
(optional)
(required) 
Submit



© 2002 - 2007, Axosoft, LLC. All Rights Reserved. | Privacy
Bug Tracking | Defect Tracking Videos | Help Desk Software