api/v1/Email/action/sendTestEmail does not exist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bockforce
    Junior Member
    • Mar 2016
    • 3

    api/v1/Email/action/sendTestEmail does not exist

    Hello everyone,

    EspoCRM seems to be a nice tool that I decided to use. Installation actually seemed to be fine. But when I tried to setup my outgoing email account I receive the error "500 Could not connect to socket" when I sent a test mail.

    Sending a test email seems to trigger a POST request to mycrm/api/v1/Email/action/sendTestEmail. But this folder doesn't exist on my server.

    Does anyone know where the problem is and can provide a solution.

    Thanks
    Martin
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi

    It's not a bug.

    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      Your server can't connect to SMTP server.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • dafnie
        Senior Member
        • Dec 2015
        • 140

        #4
        Maybe you could send some screen dumps?

        Comment

        • yuri
          Member
          • Mar 2014
          • 8440

          #5
          I don't know where is the problem. Maybe your server/provider blocks something. Maybe SMTP server blocks your requests (for example Google Mail does it by default, need to disable in Google Settings).
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • SpeedBullet
            Senior Member
            • Mar 2016
            • 123

            #6
            I seem to have the same problem. I wanted to send a test mail but it gave me a error 500 could not open socket.

            I tried to connect to an external SMTP server, via SSL port 465 with username/password combo.

            Code:
            Espo.ERROR: Display Error: Could not open socket, Code: 500 URL: /api/v1/Email/action/sendTestEmail [] []
            Also, a directory listing shows nothing.

            Code:
            $> ls api/v1/
            index.php  portal-access/  web.config
            But that seems to be an expected return? I have lots of other programs that successfully send mail over smtp. How to debug this?

            Comment

            • yuri
              Member
              • Mar 2014
              • 8440

              #7
              Check if sockets enabled in your php.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              • SpeedBullet
                Senior Member
                • Mar 2016
                • 123

                #8
                Originally posted by yurikuzn
                Check if sockets enabled in your php.
                Thanks this is working now! Is there a way to preserve the mail you composed in case an error occurs? At this moment, it works like this:

                Code:
                compose mail > click send > sending... > error > input screen is already gone so mail is lost.
                What I would like to see:

                Code:
                compose mail > click send > sending... > error > input screen still there with mail intact so that we can copy it or save it somehow and retry later.

                Comment

                • yuri
                  Member
                  • Mar 2014
                  • 8440

                  #9
                  I believe a lost email can be found if you select All filter in list view.
                  If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                  Comment

                  • rodrigocoelho
                    Active Community Member
                    • Jun 2016
                    • 296

                    #10
                    Originally posted by yurikuzn
                    Check if sockets enabled in your php.
                    The same problem here.

                    Sockets enabled.

                    Any other idea?

                    Comment

                    Working...