Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Gemini e-mail notifications

web-app

Hi - I've read the few posts here on this or similar problem, but haven't found them helpful. Am running Gemini 2.0.4 on Server 2003 with .NET 20. installed. Everything else works fine.

When Gemini trys to send any e-mail, I see this in the log:

Could not create 'CDO.Message' object.

at System.Web.Mail.LateBoundAccessHelper.get_LateBoundType() at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at CounterSoft.GeminiPlugins.MailPlugin.SendMail(String smtpServer, String fromEmailAddress, String subject, ArrayList emailList, String body, MailFormat format)

I have tried the SMTPtest program locally, and it simply says "Could not create 'CDO.Message' object. If there's an output file with more info, I can't find it.

Web.config settings are correct, and I've tried numerous combinations both with Gemin and the SMTPtest. The e-mail server - which is otherwise processing mail just fine - does not show that anything is even trying to talk to it from Gemini. Not surprising, as the error message tells me that the e-mail process isn't getting that far.

Should this be this difficult? Or am I missing something simple?

Thank you,

Gary

Gary
· 1
Gary
Replies (4)
helpful
0
not helpful

Seems like cdosys.dll is not registered on your server.

Please try to register it (regsvr32).

See http://www.dotnet247.com/247reference/msgs/28/141472.aspx or http://support.microsoft.com/default.aspx?scid=kb;en-us;Q171440


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Thanks for your reply! Seems like I've made some headway - I now get three error messages in the Gemini log for each attempted send:

Could not access 'CDO.Message' object.

at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at CounterSoft.GeminiPlugins.MailPlugin.SendMail(String smtpServer, String fromEmailAddress, String subject, ArrayList emailList, String body, MailFormat format)

>>>>> then:

Exception has been thrown by the target of an invocation.

at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)

Inner Exception

>>>>> then:

The transport failed to connect to the server.

Inner Exception

<<<<<<<<<

Still no evidence that the SMTP server is seeing anything at all. I'll keep looking - any suggestions are certainly appreciated!

- Gary 

P.S. I've tried with different authentication settings in web.config, including no authentication (and made sure each variation was good on the SMTP server). Same results with all.


Gary
· 1
Gary
helpful
0
not helpful

OK, it seems to be working now. With the above "improvement" noted (extra error messages), I went through the following:

Changed SMTP authentication to "OFF" (which I allowed on the SMTP server), but got the same messages.

Set the <add key="SMTPServer" value="DNS name of mail server" /> rather than an IP or loopback address (Gemini is running on the e-mail server box for now).

After this change, the first two errors appeared unchanged, but I got "The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Relaying to MIKE@MYASD.COMdenied (authentication required) / Inner Exception" as the third message.

As suggested at www.systemwebmail.com (referenced in Gemini manual), I added aspnet user to the local admins group and restarted IIS. This didn't change the result or the error messages.

Set the authentication to NTLM, and did now get a different third message: "The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available"

So, went and explicitly assigned "Full Control" to the cdosy.dll file for user aspnet. Not sure why this would've been different than being a member of the Admins group, which did have full control on the same file...? But hey, it still didn't work, and the error messages were unchanged.

Last, I changed the SMTP auth = BASIC, and surprise! It worked. Went and removed aspnet from the admins group, restarted IIS, and . . . it still worked.

So, I'm guessing that registering cdosys.dll, and setting explicit full control permissions on it for the aspnet user account (and using BASIC authentication and credentials in my case) were the essential elements to fix the problem. Oh, and using 127.0.0.1 as the SMTP server still does not work - so using the DNS name makes an important difference for some reason in this case.

Thanks for your help, this is closed! - Gary

 

 

 

 

 


Gary
· 1
Gary
helpful
0
not helpful

Gary, thanks for sharing your solution with us.


Mark Wing
· 9108
Mark Wing