Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mail Manager error
#1
Hi all
i've coreBOS 8.0 (2aa8606cf20210902)
i've a problem (again) with Finding Relation in mail manager
when i try to attach an inbound email to an existing contact it doen't work.
Opnening Browser inspection i found this error


VM6211:1 Uncaught SyntaxError: Unexpected token S in JSON at position 0
at JSON.parse (<anonymous>)
at Object.<anonymous> (VM5980 MailManager.js:604)
at i (jquery.js:2)
at Object.fireWith [as resolveWith] (jquery.js:2)
at y (jquery.js:4)
at XMLHttpRequest.c (jquery.js:4)
(anonymous) @ VM5980 MailManager.js:604
i @ jquery.js:2
fireWith @ jquery.js:2
y @ jquery.js:4
c @ jquery.js:4
XMLHttpRequest.send (async)
send @ csrf-magic.js:52
send @ jquery.js:4
ajax @ jquery.js:4
mail_associate @ VM5980 MailManager.js:598
mail_associate_actions @ VM5980 MailManager.js:663
onchange @ index.php?action=index&module=MailManager:1
ListPicker._handleMouseUp @ unknown

For Your Knowledge, perhaps is my vps iussue:
to send email i have to change in file class.phpmailer.php:769
public function isSMTP()
{
$this->Mailer = 'sendmail'; /* original was smtp */

have a nice day
Lorenzo
Reply
#2
I can confirm this is an issue in coreBOS, looking into it
Joe
TSolucio
Reply
#3
pull the code to apply this change: https://github.com/tsolucio/corebos/commit/1d5ab5b5604ffddf113097f2b1964d1dceb58d9a

and see if it works again, as far as I can see it is due to a change in the way mysql/mariadb is handling empty fields

Let me know how it goes
Joe
TSolucio
Reply
#4
Joe great!
It works. without errors or warnings
Tnx
have a nice day
Lorenzo
Reply
#5
:-) you too!!
Joe
TSolucio
Reply
#6
Hi all
i forgot two errors

1) when i add a new contact from an email with name surname, email and mobile, and assign to a group, corebos will create the contact, but will be assigned to the user that had  created it not to a group


2) reply to email not works, it seems to work, but really not send


Attached Files Image(s)
       
Reply
#7
1) fixed here: https://github.com/tsolucio/corebos/commit/fb873bf59835e75b175f8c3203e98694c6094393 thanks!!

2) it seems to be working correctly for me, I can reply normally. Try activating the email debug global variable and reading the messages, see if there is some clue there

I want to also thank you for your support in Open Collective. VERY appreciated. Thanks!
Joe
TSolucio
Reply
#8
1) yes it's fixed and works
2) Working with and without "reply to" field filled.

3 for Open Collettive, making a donation for this project is the right thing

tnx
Lorenzo
Reply
#9
Hi:

When I try to send an email from Mail Manager, the message is sent, but remains on the screen.
Inspecting the browser console I get the following :

Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
mail_reply_send http://xxxxxx.com/xxxxx/modules/MailManager/MailManager.js:1083
complete http://xxxxxx.com/xxxx/modules/MailManager/MailManager.js:1599
jQuery 6
Request http://xxxxxx.com/xxxxxx/modules/MailManager/MailManager.js:1594
mail_reply_send http://xxxxxxxx.com/xxxxxx/modules/MailManager/MailManager.js:1080
onclick http://xxxxxx.com/xxxxxx/index.php?action=index&module=MailManager#Compose:1

Invalid address: (addAnAddress Reply-To): <br>
2022-03-24 17:42:30 Connection: opening to localhost:25, timeout=300, options=array ( 'ssl' =&gt; array ( 'verify_peer' =&gt; false, 'verify_peer_name' =&gt; false, 'allow_self_signed' =&gt; true, ),)<br>
2022-03-24 17:42:30 Connection: opened<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;220 hl1014.dinaserver.com SMTP Ready&quot;<br>
2022-03-24 17:42:30 SERVER -&gt; CLIENT: 220 hl1014.dinaserver.com SMTP Ready<br>
2022-03-24 17:42:30 CLIENT -&gt; SERVER: EHLO cermeval.com<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-hl1014.dinaserver.com&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-PIPELINING&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-SIZE 31457280&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-ETRN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-STARTTLS&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-STARTTLS&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-AUTH PLAIN LOGIN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-AUTH=PLAIN LOGIN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-ENHANCEDSTATUSCODES&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-8BITMIME&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250 DSN&quot;<br>
2022-03-24 17:42:30 SERVER -&gt; CLIENT: 250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN<br>
2022-03-24 17:42:30 CLIENT -&gt; SERVER: STARTTLS<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;220 2.0.0 Ready to start TLS&quot;<br>
2022-03-24 17:42:30 SERVER -&gt; CLIENT: 220 2.0.0 Ready to start TLS<br>
2022-03-24 17:42:30 CLIENT -&gt; SERVER: EHLO cermeval.com<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-hl1014.dinaserver.com&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-PIPELINING&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-SIZE 31457280&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-ETRN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-AUTH PLAIN LOGIN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-AUTH PLAIN LOGIN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-AUTH=PLAIN LOGIN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-ENHANCEDSTATUSCODES&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250-8BITMIME&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250 DSN&quot;<br>
2022-03-24 17:42:30 SERVER -&gt; CLIENT: 250-hl1014.dinaserver.com250-PIPELINING250-SIZE 31457280250-ETRN250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250 DSN<br>
2022-03-24 17:42:30 Auth method requested: UNKNOWN<br>
2022-03-24 17:42:30 Auth methods available on the server: PLAIN,LOGIN<br>
2022-03-24 17:42:30 Auth method selected: LOGIN<br>
2022-03-24 17:42:30 CLIENT -&gt; SERVER: AUTH LOGIN<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;334 VXNlcm5hbWU6&quot;<br>
2022-03-24 17:42:30 SERVER -&gt; CLIENT: 334 VXNlcm5hbWU6<br>
2022-03-24 17:42:30 CLIENT -&gt; SERVER: cHJ1ZWJhZGhAY2VybWV2YWwuY29t<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;334 UGFzc3dvcmQ6&quot;<br>
2022-03-24 17:42:30 SERVER -&gt; CLIENT: 334 UGFzc3dvcmQ6<br>
2022-03-24 17:42:30 CLIENT -&gt; SERVER: ODE4dWd2d1d0OUs2Nnc4QVBi<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;235 2.7.0 Authentication successful&quot;<br>
2022-03-24 17:42:30 SERVER -&gt; CLIENT: 235 2.7.0 Authentication successful<br>
2022-03-24 17:42:30 CLIENT -&gt; SERVER: MAIL FROM:&lt;pruebadh@cermeval.com&gt;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:30 SMTP -&gt; get_lines(): $str is &quot;250 2.1.0 Ok&quot;<br>
2022-03-24 17:42:30 SERVER -&gt; CLIENT: 250 2.1.0 Ok<br>
2022-03-24 17:42:30 CLIENT -&gt; SERVER: RCPT TO:&lt;gmarco@audalabs.net&gt;<br>
2022-03-24 17:42:36 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:36 SMTP -&gt; get_lines(): $str is &quot;250 2.1.5 Ok&quot;<br>
2022-03-24 17:42:36 SERVER -&gt; CLIENT: 250 2.1.5 Ok<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: DATA<br>
2022-03-24 17:42:36 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:36 SMTP -&gt; get_lines(): $str is &quot;354 End data with &lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt;&quot;<br>
2022-03-24 17:42:36 SERVER -&gt; CLIENT: 354 End data with &lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt;<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: Date: Thu, 24 Mar 2022 17:42:30 +0000<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: To: gmarco@audalabs.net<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: From: Guillermo Marco Galiana &lt;pruebadh@cermeval.com&gt;<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: Reply-To: gmarco@cermeval.com<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: Subject: prueba desde chrome<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: Message-ID: &lt;f73ea14bcd1f0b68603df555133acfd9@cermeval.com&gt;<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: X-Mailer: PHPMailer 5.2.26 (https://github.com/PHPMailer/PHPMailer)<br>;
2022-03-24 17:42:36 CLIENT -&gt; SERVER: MIME-Version: 1.0<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: Content-Type: text/html; charset=utf-8<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: <br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: &lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;console.log(&amp;#39;mailmanager.js l.1082&amp;#39; + transport);&lt;br /&gt;<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var response = MailManager.removeHidElement(transport);&lt;br /&gt;<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var responseJSON = JSON.parse(response);&lt;br /&gt;<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;console.log(&amp;#39;mailmanager.js l.1083&amp;#39; + responseJSON);&lt;/p&gt;<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: &lt;div class=&quot;io-ox-signature&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://audalabs.addecuo.es/storage/kcimages/images/audalabs-150x150.jpg&quot; style=&quot;width: 150px; height: 150px;&quot; /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;Guillermo Marco Galiana&amp;nbsp; &lt;a&gt;+34 960 059 744&lt;/a&gt; - M&amp;oacute;vil &lt;a&gt;+34 656 60 65 03&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;mailto:jalcaraz@audaconsultores.es&quot;&gt;gmarco@audalabs.net&lt;/a&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; &lt;a href=&quot;http://www.audaconsultores.es/&quot;&gt;www.audalabs.net&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: <br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: .<br>
2022-03-24 17:42:36 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:36 SMTP -&gt; get_lines(): $str is &quot;250 2.0.0 Ok: queued as 0C80220E31AF&quot;<br>
2022-03-24 17:42:36 SERVER -&gt; CLIENT: 250 2.0.0 Ok: queued as 0C80220E31AF<br>
2022-03-24 17:42:36 CLIENT -&gt; SERVER: QUIT<br>
2022-03-24 17:42:36 SMTP -&gt; get_lines(): $data is &quot;&quot;<br>
2022-03-24 17:42:36 SMTP -&gt; get_lines(): $str is &quot;221 2.0.0 Bye&quot;<br>
2022-03-24 17:42:36 SERVER -&gt; CLIENT: 221 2.0.0 Bye<br>
2022-03-24 17:42:36 Connection: closed<br>
{"success":true,"result":{"sent":true}}


It seems to add an adress for reply, but I don´t know how do it. What is the solution? Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)