SMTP sendmail error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Contedracma
    Junior Member
    • May 2015
    • 2

    SMTP sendmail error

    I give this error in SMT setup sending email

    [2015-05-12 08:58:06] Espo.ERROR: API [POST]:/:controller/action/:action, Params:Array
    (
    [controller] => Email
    [action] => sendTestEmail
    )
    , InputData: {"server":"mail.xxxxxx.org","port":25,"auth":true, "security":"","username":"xxxxxx@xxxxxx.org","pass word":null,"fromName":"*****","fromAddress":"xxxxx x@xxxxxx.org","type":"preferences","id":"1","email Address":"xxxxxxxx@xxxxxxx.org"} - Permission denied [] []
    [2015-05-12 08:58:06] Espo.ERROR: Display Error: Permission denied, Code: 500 URL: /xxxxxxx/api/v1/Email/action/sendTestEmail [] []

    i have set 775 in api and data directory... with user apache
  • tarasm
    Super Moderator
    • Mar 2014
    • 573

    #2
    Did you set 775 for all sub-directories of "data", "api" as well?
    Last edited by tarasm; 05-12-2015, 10:31 AM.
    Job Offers and Requests

    Comment

    • Contedracma
      Junior Member
      • May 2015
      • 2

      #3
      Yes, as installation guide.
      in my /api/v1/ directory there isn't "Email" directory.

      Comment

      • tarasm
        Super Moderator
        • Mar 2014
        • 573

        #4
        Sorry, my mistake, not "api" directory. "custom" directory should have 775 permission.
        But in your case, the problem is not in file permissions. It seems like your hosting doesn't grant access to open socket to connect to SMTP server.
        Job Offers and Requests

        Comment

        • todachuy2406
          Junior Member
          • Sep 2015
          • 2

          #5
          Hi tarasm,

          I have same error. I cannot send email test "Error 500 Permission Denied". How to grant access to open socket from my hosting to connect to SMTP server?

          Comment

          • ted
            Junior Member
            • Oct 2015
            • 3

            #6
            Hi!

            Same here, cannot solve that problem

            Comment

            • JacerOmri
              Junior Member
              • May 2015
              • 5

              #7
              Hello, I hate "me too" replies, but I spent the day trying to figure out the problem but i couldn't a clue. Also debugging was difficult enough that i couldn't get any useful information.

              Comment

              • mmandell
                Member
                • Jul 2014
                • 99

                #8
                Has this been resolved?

                Comment

                • tanya
                  Senior Member
                  • Jun 2014
                  • 4308

                  #9
                  Hello
                  Did you try this https://gistpages.com/posts/phpmaile..._denied_13_fix ?

                  Comment

                  Working...