Hi - I've got the same problem too.
Everything else fires fine. Roles assignment, SQL, etc...
What I'm trying to achieve:
* Completion Event 1: (SQL Event) assign a specific role if the users email address matches a list of approved domains in a lookup table. This works perfectly.
* Completion Event 2: (Dynamic Email Event) send the verification code and link to the user. The email isn't sent.
Here's the related message in the event log:
System.Web.HttpException: The transport failed to connect to the server.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Runtime.InteropServices.COMException (0x80040213): The transport failed to connect to the server.
--- End of inner exception stack trace ---
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 bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
--- End of inner exception stack trace ---
at System.Web.Mail.SmtpMail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
at System.Web.Mail.SmtpMail.CdoSysHelper.Send(MailMessage message)
at System.Web.Mail.SmtpMail.Send(MailMessage message)
at DataSprings.Modules.DynamicRegistration.clsGlobals.DSMail1(String MailFrom, String MailTo, String Cc, String Bcc, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword)
I have my mail server relay set to only allow authenticated connections. Is this a problem for the Dynamic Registration module? I noticed that the DSMail1 function takes SMTP username and password as parameters, but are those values actually being passed to the function?
I also tried setting my mail server to allow relays from local IPs, but it didn't help. I still get the same exception as above. |