Pages

Tuesday, June 29, 2010

When sysMailer.quickSend isn't sending any mails

After rather many hours of debugging and hairpulling, I have figured out that you in order to send mails with sysMailer.quickSend, must have View rights to the security key Adminstration / Daily. You don't need to have access to any of the subnodes however.

The cause is that sysMailer.quickSend in order to find the password to the SMTP server, calls SysEmailSMTPPassword::currentAOSInstance, which again makes a select statement to the SysServerSessions table.

The SysServerSessions table must somehow be linked to the above mentioned security key, because without access to this, AX simply exits the metod on that select statement, just as if it had hit a Return statement - and no errors or other hints about the mail not being sent are displayed.

4 comments:

C. Heinrich said...

Thank you for this posting. After hours of searching, it finally saved my day :-).

Søren Regenberg said...

Thanks Palle - you just saved my day. What a tragedy with MS releasing such things. I knew it was working for admin and not for the user and I knew the table and still it did not help. That is when this blog came in very handy! Thanks again. Søren

Peter Østfeldt said...

Thanks alot.

I have to second Sørens remark :-)

Regards
Peter

Peter Østfeldt said...

Hi Palle

Thanks alot. I have to second Sørens remark :-)

Regards
Peter