Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C cl-smtp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cl-smtp
  • cl-smtp
  • Issues
  • #3
Closed
Open
Issue created Mar 15, 2019 by Adam Krupicka@akr

RCPT TO wrong format

Hi!

In case that one tries to send a mail from an email address of the form Name <mail@domain.com>, cl-smtp does not work with certain SMTP servers, such as Google SMTP. This is because the address (w/ the name) is sent verbatim in the RCPT TO command (e.g. RCPT TO: <Name <mail@domain.com>>), which causes the SMTP server to throw an error, complaining about invalid syntax. I fixed this by stripping the name part from the address in the RCPT TO command in case that it is present.

Since I can't open a pull request here, I'm attaching the patch herecl-smtp.patch. It makes an assumption about the email address not being malformed.

Cheers!

Edited Mar 15, 2019 by Adam Krupicka
Assignee
Assign to
Time tracking