I configure SuiteCRM (7.11.3) and I try to send emails (for a quote). If the sender is the global user, it works well. But, if I use the user account I have an error:
Send error, contact administrator.
In user settings, the outgoing server is correct (I use Gmail).
The checkbox work correctly. If I not check, I not see the corresponding account in email.
For my test, I have checked the two checkbox. When I select me in field from, I have an error. If I use SuiteCRM in field from the mail send correctly.
In log I have 4 lines with the error:
[FATAL] SugarPHPMailer encountered and error: Invalid address: (Reply-to): User Name <usermail@gmail.com
[FATAL] SugarPHPMailer encountered and error: Invalid address: (From): User Name <usermail@gmail.com
[FATAL] SugarPHPMailer encountered and error: Invalid address: (From): User Name <usermail@gmail.com
[FATAL] SugarPHPMailer encountered and error: Invalid address: (From): User Name <usermail@gmail.com
I have tested with configuring imap and smtp server for user and I have the same error.
I have change log level and this is my log:
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Unable to find relationship emails_email_templates
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Invalid email address given: [my name<mymail@gmail.com] Called at /var/www/html/crm/modules/Emails/EmailsController.php:242 from function populateBeanFromRequest.
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] fromUser: Conversion of from user format m/d/Y H:i failed
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Saving Email with invalid From name and/or Address. Details:
From field is not set.
From address is invalid.
From-name is not set.
From address and name pair format is incorrect, use "from@emailaddress.org " format.
From address and name pair is invalid.
codes:1, 6, 7, 16, 15
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Unable to find relationship emails_email_templates
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Invalid email address given: [my name<mymail@gmail.com] Called at /var/www/html/crm/modules/Emails/EmailsController.php:254 from function send.
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Invalid email address given: [my name<mymail@gmail.com] Called at /var/www/html/crm/modules/Emails/EmailsController.php:254 from function send.
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Invalid email address given: [my name <mymail@gmail.com] Called at /var/www/html/crm/modules/Emails/EmailsController.php:254 from function send.
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Invalid email address given: [my name<mymail@gmail.com] Called at /var/www/html/crm/modules/Emails/EmailsController.php:254 from function send.
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][FATAL] SugarPHPMailer encountered an error: Invalid address: (Reply-To): my name <mymail@gmail.com
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] Invalid email from address or name detected before sending. Details:
From field is not set.
From address is invalid.
From-name is not set.
From address and name pair format is incorrect, use "from@emailaddress.org " format.
From address and name pair is invalid.
codes:1, 6, 7, 16, 15
Invalid address: (Reply-To): my name <mymail@gmail.com
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][FATAL] SugarPHPMailer encountered an error: Invalid address: (From): my name <mymail@gmail.com
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][FATAL] SugarPHPMailer encountered an error: Invalid address: (From): my name <mymail@gmail.com
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][FATAL] SugarPHPMailer encountered an error: Invalid address: (From): my name <mymail@gmail.com
Wed Apr 17 11:59:39 2019 [16703][15fb1adc-9a7b-73ad-fcc8-5c877c66feab][ERROR] send: PHPMailer Exception: { Invalid address: (From): my name <mymail@gmail.com
I found the problem, is a error in code of SuiteCRM.
When I select sender I see
- for system: (Reply-to: My Name <>, From: My Name <info@crm.com>)
- for user: (Reply-to: My Name <My Name <user@crm.com>>, From: My Name <My Name <user@crm.com>>)
I have logged the function send from SugarPHPMailer
- for system the From and Sender = info@crm.com
- for user the From and Sender = My Name <user@crm.com
I have updated the function to keep only the mail address and the send work.
I hope this information can you help to correct it for future version.
I am optimistic that with this information we have now, it should be pretty straight-forward to fix. It is just a single line somewhere that is putting together a FromName and a FromAddress, without realising thereâs already a FromName in that second part. The rest of the errors all derive from this.
Furthermore, with your information on GitHub that this appeared between 7.11.2 and 7.11.4, it narrows down how many changes can be responsible for the regression. Iâm trying to see if Dillon has some time to look at this during the following sprints - he knows the email code well enough that he might find the problem relatively fast (fingers crossed).
pstevens, I followed the git hub link but do not understand the thread there with D Brown. COuld you please explain the fix for a non programming user?
thank you
Thank you Admin, I donât understand the github page or how to use it.
DO I use these (https://suitecrm.com/upgrade-suitecrm/) to update the CRM? Stupid question but Iâm quite new to this.
Mike