Errors when trying to send emails

Hi all,

CentOS 8-php 7.3.15-SuiteCRM 7.11.12-CleanInstall

I have three set of errors for a single email sending action each time:

  1. When I click on email address to send email I get following when the Compose Email popup displayed:

Thu Mar 5 21:54:03 2020 [2373][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] EmailController::action_getFromFields() expects an outbound email id as stored option of inbound email (a564aab6-ad40-9fb1-ae04-5e616147f261) but it isn’t valid.
Thu Mar 5 21:54:03 2020 [2373][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] EmailController::action_getFromFields() panic: An error occurred! (203)
Thu Mar 5 21:54:03 2020 [2373][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Incorrect “replay to” format found: x.yyyyy@zzzzz.com
Thu Mar 5 21:54:03 2020 [2373][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] EmailController::action_getFromFields() error: 205
Thu Mar 5 21:54:03 2020 [2373][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Signature html not found!
Thu Mar 5 21:54:03 2020 [2373][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Signature plain text not found!

All is OK, email address is correct, but what are these errors ?

  1. After sending email and Email sent popup displayed, I see following errors in log. I have not used any templates for sending email.

Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] fromUser: Conversion of from user format m/d/Y H:i failed
Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From-name is not set.
From name is empty.
From address and name pair is empty.
codes:1, 7, 11, 14
Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Invalid email from address or name detected before sending. Details:
From field is not set.
From-name is not set.
From name is not set.
From address and name pair is empty.
codes:1, 7, 10, 14

Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From address is not set.
From-name is not set.
From name is not set.
From address and name pair is empty.
codes:1, 4, 7, 10, 14
Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] ImapHandler trying to use a non valid resource stream.
Thu Mar 5 22:00:47 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] ImapHandler trying to use a non valid resource stream.
Thu Mar 5 22:00:48 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From address is not set.
From-name is not set.
From name is not set.
From address and name pair is empty.
codes:1, 4, 7, 10, 14
Thu Mar 5 22:00:48 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:00:48 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] fromUser: Conversion of from user format m/d/Y H:i failed
Thu Mar 5 22:00:48 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From-name is not set.
From name is not set.
From address and name pair is empty.
codes:1, 7, 10, 14
Thu Mar 5 22:00:48 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:00:48 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:00:48 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:00:48 2020 [31676][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Array
(
[0] => Unhandled email save and store as sent error: 0
[1] => 6
)

This happens for every new email. Emails are sent and arrived to recipient, logged in History of the account.

  1. When I check Account-Overview page and then clicked the email log contains following, but the email displayed correctly

Thu Mar 5 22:03:27 2020 [2373][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:03:36 2020 [2073][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:06:43 2020 [28959][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:06:43 2020 [28959][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:06:43 2020 [28959][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:06:43 2020 [28959][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates
Thu Mar 5 22:06:43 2020 [28959][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Unable to find relationship emails_email_templates

Nothing in php error log and what should I do for those error messages in SuiteCRM ?

Hi all,

  1. I have deleted email settings from user profile popup. On User Profile Screen/tab I see my correct email address marked as primary and reply-to. In Settings popup, Mail Accounts tab, I see no Incoming and system as Outgoing.

  2. Open Settings popup, click Add for Outgoing SMTP Mail Servers, type in From name and correctly my email address for From Address and mail server and set Enable TLS, port 587, check use SMTP Auth and typed in user and pw of email account and Send Test Email. Popup says email sent and I received email.

Click done and I see new email account under Outgoing SMTP Mail Servers section.

  1. Click Add Mail Accounts. typed in account name, user name, pw, server address, use SSL, port 993 and click test settings - it says Connection completed successfully, adjusted other folders successfuly. Fill Outgoing Email section Reply to Address in incoming and selected previously created Outgoing SMTP Mail Server and Saved.

  2. Go to Emails menu, successfuly viewed all folders of emailbox.

  3. Go to Accounts menu, select the account and click on email address to get compose email popup.

Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][INFO] Query:
SELECT DISTINCT inbound_email.id
FROM inbound_email
WHERE
is_personal = 0 AND
mailbox_type not like ‘bounce’ AND
status = ‘Active’ AND
inbound_email.deleted = 0
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][INFO] Query Execution Time:0.00029301643371582
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] EmailController::action_getFromFields() expects an outbound email id as stored option of inbound email (5c91d3aa-0617-dc05-f0ad-5e621420cc57) but it isn’t valid.
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] EmailController::action_getFromFields() panic: An error occurred! (203)
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Incorrect “replay to” format found: correctly.typedin@emailaddress.com
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] EmailController::action_getFromFields() error: 205
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Signature html not found!
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][ERROR] Signature plain text not found!
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][INFO] Query:SELECT * FROM users_signatures WHERE user_id = ‘c788f3c4-84ba-117f-1c85-5e538d89d09c’ AND deleted = 0 ORDER BY name ASC
Fri Mar 6 10:16:39 2020 [23582][c788f3c4-84ba-117f-1c85-5e538d89d09c][INFO] Query Execution Time:5.8889389038086E-5

  1. Composed email and clicked send, Email Sent popup displayed with the set 2 messages in the log. Email sent and received by recipient and logged in History of account.

Nothing helped(deleting and re-defining email settings again) for reducing ERROR messages.

Update:

a. Email sent from compose popup, recorded to account & contact and also mailbox - Sent folder and can be visible by another email client from sender, and email arrives to recipient, but lots of errors in the log.

b. Adding Incoming mailbox popup can connect mail server and see the inbox, trash and sent folders and I can choose them but Emails module can only view Inbox, when I click folders icon, loading indicator shown but never ends, so no other folders visible on Emails module with ][ERROR] ImapHandler trying to use a non valid resource stream. messages

c. Email on recipient is not displayed with “From name” that I specify in Outgoing emailbox settings. Only the email address is used, even I see from Admin - Inbound Emails of that user’s email has a valid From Name, why ?

Maybe this can help:

Thanks Pedro,

On my test server, I have performed following and want to share with you. Please let me know if you need more info. Emails will be heavily used by us and I want to clear these errors as much as possible.

I have removed my incoming, outgoing email account definitions from my user profile

I have applied that fix to my test server. I have copied the fix to my EmailsDataAddressCollector.php with changed if clause and from and reply strings. Performed QR & R and restarted apache.

Relogged in to my user and created my email accounts in my User Profile.

Defined Outgoing SMTP Mail Server

Successfully received test email but without my specified “From name”

Defined Incoming

All seems OK except popup title

But still lots of

Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to set a non valid resource az stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to set a non valid resource az stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to set a non valid resource az stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to set a non valid resource az stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to set a non valid resource az stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to set a non valid resource az stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:40:09 2020 [31674][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.

I have clicked Accounts and on email address:

a. Compose popup displayed - From shows my From Personal Email Outgoing settings Reply to shows my correct address on popup but log has

Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] EmailController::action_getFromFields() expects an outbound email id as stored option of inbound email (716aa821-c395-ef99-ba37-5e66477b5a89) but it isn’t valid.
Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] EmailController::action_getFromFields() panic: An error occurred! (203)
Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Incorrect “replay to” format found: correctly.typedin@myaddress.com
Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] EmailController::action_getFromFields() error: 205
Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Signature html not found!
Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Signature plain text not found!
Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] EmailController::action_getFromFields() is Panicking: Reply-To address is not filled.
Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Signature html not found!
Mon Mar 9 14:42:08 2020 [31676][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Signature plain text not found!

b. I have Clicked Send and I get

but on the log:

Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] fromUser: Conversion of from user format m/d/Y H:i failed
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From-name is not set.
From address and name pair is empty.
codes:1, 7, 14
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Invalid email from address or name detected before sending. Details:
From field is not set.
From-name is not set.
From address and name pair is empty.
codes:1, 7, 14

Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From address is not set.
From-name is not set.
From name is not set.
From address and name pair is empty.
codes:1, 4, 7, 10, 14
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From address is not set.
From-name is not set.
From name is not set.
From address and name pair is empty.
codes:1, 4, 7, 10, 14
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] fromUser: Conversion of from user format m/d/Y H:i failed
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From-name is not set.
From address and name pair is empty.
codes:1, 7, 14
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:44:21 2020 [28959][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Array
(
[0] => Unhandled email save and store as sent error: 0
[1] => 6
)

c. Again the email sent to recipient and logged into Account-History and also to the SENT folder of the sender. The issue for FROM NAME still exist, the email does not sent with the specified FROM NAME . I have also checked mail headers and From name is coming from default name and email address not the set value from outgoing account definition. Reply-To: address is in correct form(name & address)

d. When I clicked Emails account my inbox perfectly displayed but with following on the log

Mon Mar 9 14:53:50 2020 [2071][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:53:50 2020 [2071][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:53:50 2020 [2071][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] Unable to find relationship emails_email_templates
Mon Mar 9 14:53:50 2020 [2071][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.
Mon Mar 9 14:53:50 2020 [2071][57c723a2-407b-a9e6-f7f1-5e621ac8645f][ERROR] ImapHandler trying to use a non valid resource stream.

e. When I try to click on Folders icon I get Loading animation but after minutes nothing displayed

and nothing written to log

What about this one?

In my new test server installation, I have choosen Users may send as themselves none to force all to use their own accounts. It seems situation is a bit different then above. It is again 7.11.12 clean install but not like above.

I’m trying to document all the case, then I will update again.

Thanks for doing all this work thoroughly documenting the Issue, that is important.

If you un-comment these lines in the code, you will get additional information in the logs, which I think will be quite helpful for your case:

This will put some more information in your logs to help you troubleshoot.

Thanks I will do my best.

Just a strange behaviour that I have discovered: I have clean installed 7.11.12 without any SMTP Server Settings with just specifying Admin email account on top of install.php screen.

Time format, currency, symbol has applied as I specified on install screen. But admin email is not defined as admin user’s incoming email. Also Date format is not set as specified on install screen.

And I see only one system Email account definition for Outbound Emails.

I have set Admin - Email - Email settings, tested with test email and saved. Top screen warning for no SMTP for notifications disapperead and my typed settings also saved for “system” Outbound Email.

So far so good, except some missing parameters for admin user from install screen.

And I have simply opened Admin Profile to specify email address and clicked Email Settings and then Mail Account tab, popup shown with no incoming email and showing system Outgoing Email but with red warning “Warning: Missing username and password for outgoing mail account”.

What is that ? without defining and saving I just simply click Close on top of popup. And went to Admin Email Email Settings and Send Test Email again, it was OK, I received Test email.

And then Admin - Email - Outbound Emails: I saw that now I have two Outbound Email accounts and both of them has the name “system”. First one with my parameters from Email Settings second one has no info in it.

Is it usual to User Profile - Email Settings - MailAccount tab to create implicitly/silently a new Outbound Email account and show the current one as wrong password ?

I have deleted second system and tried the Email Settings - MailAccount again and saw again the red message for Outgoing email but not created a second system again.

I have created user incoming/outgoing for admin user and it is working but MailAccount Tab still shws the red message about incorrect password for system Outbound account.

When I sent email to account -contact it successfully recorded but above error messages still logged and emails not sent with specfied From name for personal email accounts.

The only progress from yesterday is to have EMAILS module working properly for all folders but do not know how it is fixed. Is it the sequence of creation of email accounts important ?

Do you have an idea ?

  1. Why some settings not transferred from install screen to user profile ?
  2. Why two times system Outbound account created for the first time ?
  3. WHy Mail Account tab always show incorrect pw error for proper/working systm email account ?
  4. Why the errors still ?
  5. Why the from name of outgoing account definition not used for sent emails
  1. I think the email address you specify in the install screen is just taking note of “which address to use to contact the administrator”, not actually a definition of an email account to use. That would require all the other parameters (server, credentials, etc),

  2. The account you create in the Admin user’s profile is not the same thing as the account created in Admin menu / Outbound accounts. Did you call the first one “system”? Don’t. That generates confusion. The “system” account is always named “system”, but if you create an account called “system” in the wrong place, it won’t become the system account just because of that name.

    Note that the actual system account is created automatically, even if it is blank.

  3. There is some bug with the passwords saving, but I haven’t completely understood it yet :frowning:

  4. ?

  5. Different bug, there are a couple of fixes on Github for it, waiting to be merged.

Hi team,

Thanks.

  1. I think so but it would be better to transfer the value that is entered as email address of admin user to profile of admin user instead of showing userid or example.com, not an actual issue though.

2.No, After completion of installation I see one “system” in Outbound Emails, this is the time that admin has no email account defined. I did not call/name anything with system it is created by installation.

And in some cases, another Outbound account again called as “system” implicitly when only the Mail Accounts tab opened from Email Settings popup.

  1. I have performed another installation this time specifying SMTP Server Settings at installation, when at first login I see “system” is created in Outbound Emails but again with missing/incorrect information. I have checked Admin - Email - Email settings, it seems parameters correct, test email sent, I have just saved the screen without changing anything and then check “system” at Outbound Emails and I saw that that one also corrected with the values from Email Settings and test email sent.

After that I have created personal IN/OUT emails for Admin as a user from User Profile all is OK, no password warning for “system”, test emails OK, mails to account OK. (but with errors). But again I start to experience EMAILS module folder view issue, it hangs on Loading but the INBOX viewed.

For now I have decided to proceed to other customisations to finish my plan and will return this later on.

  1. I mean when I sent emails to Accounts/Contacts I still see above shared ERROR messages in this thread, in the log. I will try to document later on with different scenarios, on different posts.

  2. OK, I can update with existing screens.

1 Like

This is really hard to understand.

If I may ask you one more thing - please keep an eye on these two tables in the database (with phpMyAdmin for example):

  • inbound_email
  • outbound_email

This should make things clearer, since you can spot UI errors more quickly (when information isn’t saved correctly).

Sure.

Actually I’m gonna closing this post. It is now too long , hard to track/read and except additional useful debugging information provided by you, we could not come to a conclusion/solution for so many different issues which are also probably ticketed as bug and waiting for fix/merge yet.

Issues about emails are really various and keeps me to connect with different screens. Therefore topic is unnecessarrily messy.

I will create new atomic(at least I will try) posts for issue points.

As a summary
a. I need to check inbound_email and outbound_email tables.
b. I need to use extra logging with uncommenting some lines in SugarPHPMailer.php.
c. suitecrm.log as usual
d. php log as usual.

Many thanks for your all support and help. Having such community is great

Thanks

1 Like