<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged mail-dispatch</title>
<link>https://overflow.efficy.io/?qa=tag/mail-dispatch</link>
<description>Powered by Question2Answer</description>
<item>
<title>What are the fields SHOWN and MAILREAD for in SYS_MAILS ?</title>
<link>https://overflow.efficy.io/?qa=5894/what-are-the-fields-shown-and-mailread-for-in-sysmails</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;My question would be similar to the existing tread:  &lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://overflow.efficy.io/?qa=1797/required-conditions-for-a-mail-to-be-sent-from-sysmails&quot;&gt;https://overflow.efficy.io/?qa=1797/required-conditions-for-a-mail-to-be-sent-from-sysmails&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But I also would like to know what do the SHOWN and MAILREAD stand for in SYS_MAILS table. Are they used somehow ? &lt;/p&gt;

&lt;p&gt;Some details about the client emails in SYS_MAILS:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the K_USER has email defined in designer except of Administrator&lt;/li&gt;
&lt;li&gt;the MAILFROM and MAILTO fields are field&lt;/li&gt;
&lt;li&gt;Mail Dispatcher doesn't find emails but the SYS_MAILS table has about 425 mails stored&lt;/li&gt;
&lt;li&gt;the SYS_MAILS.KIND field for remaining emails is 5&lt;/li&gt;
&lt;li&gt;all remaining email have 1 in SHOWN field&lt;/li&gt;
&lt;li&gt;some of the remaining emails have 0 or 1 in MAILREAD field&lt;/li&gt;
&lt;/ul&gt;

&lt;hr&gt;

&lt;p&gt;&lt;strong&gt;Update 1:&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;I've tried to play around with email fields.&lt;/p&gt;

&lt;p&gt;Case 1 : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;when email is first generated it has : KIND = 5, SHOWN = 1 MAILREAD=1.&lt;/li&gt;
&lt;li&gt;the ADMIN (K_USER) has no email defined. &lt;br&gt;
=&amp;gt; Mail not found in Mail Dispatch&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Case 2: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;if I change KIND = 0&lt;/li&gt;
&lt;li&gt;the ADMIN (K_USER) has no email defined. &lt;/li&gt;
&lt;li&gt;Mail Dispatch : &lt;br&gt;
&lt;em&gt;Mails Found: 1&lt;br&gt;
  [2021/02/12 11:33:52.107]       Skipped (user 2): &quot;Email subject&quot;&lt;br&gt;
  [2021/02/12 11:33:52.107]     ...0 Mails Sent&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Case 3: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;KIND = 0&lt;/li&gt;
&lt;li&gt;define email for ADMIN (designer &amp;gt; Users)&lt;/li&gt;
&lt;li&gt;Mail Dispatch: &lt;br&gt;
&lt;em&gt;Mails Found: 1&lt;br&gt;
[2021/02/12 11:56:01.909]        --&amp;gt; someemail: &quot;Email subject&quot;&lt;br&gt;
[2021/02/12 11:56:01.925]     ...1 Mails Sent&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Result: I've never received the email though. Maybe SMTP server related. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Case 4: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;admin email defined &lt;/li&gt;
&lt;li&gt;new email created&lt;/li&gt;
&lt;li&gt;=&amp;gt; still KIND = 5, SHOWN = 1 and MAILREAD = 1&lt;/li&gt;
&lt;li&gt;Mail Dispatch :&lt;br&gt;
No mails found&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If I understand right : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;if KIND = 5  Mail &lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;Dispatch ignores email from SYS_MAILS&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;if KIND = 0 but K_USER has no email defined&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;email found but not send as email is not provided&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So my question would be:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How &lt;strong&gt;Efficy.sendExternalMail&lt;/strong&gt; assigns the field KIND, SHOWN, MAILREAD ? What is the logic behind ? Why some emails have KIND= 0 and another one KIND = 5 ?&lt;/em&gt;&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;&lt;strong&gt;Update 2:&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;I forgot to mention that the checkbox &lt;strong&gt;&lt;em&gt;&quot;Send external mails created from workflow&quot;&lt;/em&gt;&lt;/strong&gt; hasn't been checked. After checking it the Mail Dispatch was able to get the emails with KIND = 5. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;K_USER has no email&lt;/li&gt;
&lt;li&gt;KIND = 5&lt;/li&gt;
&lt;li&gt;Mail Dispatcher : find emails and send them (but in case of the client I've got error : &lt;em&gt;&quot;Unable to relay for EMAILSAMPLE&quot;&lt;/em&gt;)&lt;/li&gt;
&lt;/ul&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5894/what-are-the-fields-shown-and-mailread-for-in-sysmails</guid>
<pubDate>Fri, 12 Feb 2021 09:08:58 +0000</pubDate>
</item>
<item>
<title>MailDispatch Error &quot;Client does not have permissions to send as this sender&quot;</title>
<link>https://overflow.efficy.io/?qa=2797/maildispatch-error-client-does-have-permissions-send-sender</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;I have an error when testing the MailDispatch at a customer but I don't know how to solve it. Did any one of you had already this error ?&lt;/p&gt;

&lt;p&gt;PS: OpenSSL dependencie has been installed correctly. &lt;/p&gt;

&lt;p&gt;10:11:12&amp;gt; Logon Database &quot;XXX&quot;&lt;br&gt;
10:11:12&amp;gt;   Connecting to SMTP Server &quot;smtp.office365.com&quot;&lt;br&gt;
10:11:12&amp;gt;     Sending Mails...&lt;br&gt;
10:11:12&amp;gt;       Mails Found: 2&lt;br&gt;
10:11:21&amp;gt; &lt;strong&gt;Error: Sending System Mail Failed: LIBS-1803 Unable to send the message with subject: &quot;Invitation de réunion - E1&quot;&lt;br&gt;
SMTP; Client does not have permissions to send as this sender [XXXX.outlook.com]&lt;/strong&gt;&lt;br&gt;
10:11:21&amp;gt;       Skipped (user 16): &quot;Invitation de réunion - Entretien&quot;&lt;br&gt;
10:11:21&amp;gt;     ...0 Mails Sent&lt;br&gt;
10:11:21&amp;gt;       Old Unsent Mails Found: 0&lt;br&gt;
10:11:21&amp;gt;     ...0 Old Unsent Mails Deleted&lt;br&gt;
10:11:21&amp;gt;   Releasing SMTP Server &quot;smtp.office365.com&quot;&lt;br&gt;
10:11:21&amp;gt; Logoff Database &quot;XXX&quot;&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2797/maildispatch-error-client-does-have-permissions-send-sender</guid>
<pubDate>Tue, 05 Dec 2017 10:58:36 +0000</pubDate>
</item>
</channel>
</rss>