Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

501 Syntax error - line too long from mailserver

  • Lucas G
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 8 months ago - 3 years 8 months ago #156206 by Lucas G
Hello,
we are using the Events Booking plugin, but today an email was declined by the mail server of an attendee with the error "501 Syntax error - line too long":
Code:
"SMTPC"    2992    1610    "2023-02-01 20:19:37.911"    "212.***.***.***"    "SENT: MAIL FROM:<sender@joomladomain>" "SMTPC"    2540    1610    "2023-02-01 20:19:38.036"    "212.***.***.***"    "RECEIVED: 250 Requested mail action okay, completed" "SMTPC"    2540    1610    "2023-02-01 20:19:38.036"    "212.***.***.***"    "SENT: RCPT TO:<attendee@attendeedomain>" "SMTPC"    2992    1610    "2023-02-01 20:19:38.067"    "212.***.***.***"    "RECEIVED: 250 OK" "SMTPC"    2992    1610    "2023-02-01 20:19:38.067"    "212.***.***.***"    "SENT: DATA" "SMTPC"    4236    1610    "2023-02-01 20:19:38.083"    "212.***.***.***"    "RECEIVED: 354 Start mail input; end with <CRLF>.<CRLF>" "SMTPC"    1924    1610    "2023-02-01 20:19:38.114"    "212.***.***.***"    "SENT: [nl]." "SMTPC"    2992    1610    "2023-02-01 20:19:38.130"    "212.***.***.***"    "RECEIVED: 501 Syntax error - line too long" "SMTPC"    2992    1610    "2023-02-01 20:19:38.130"    "212.***.***.***"    "SENT: QUIT"

According to this stackoverflow , maybe using chunk_split() helps to solve this issue, but I currently have no idea, where to look for the root cause...

Is there anyone who has an idea? It seems to happen only for specific mail hosters.
Thanks in advance!
Last edit: 3 years 8 months ago by Lucas G.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
3 years 8 months ago #156207 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic 501 Syntax error - line too long from mailserver
Honestly, I don't know why this error happens. We just use Joomla API for sending email and have no clue where to look at this issue

Maybe you can contact your hosting provider, ask them to check to see if they know the reason of this error? If they say that the message or subject is too long, we might have some clues to check the code. They are expert on this field, so they should know more than us

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc