Announcement

Collapse
No announcement yet.

Sent e-mail using API

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sent e-mail using API

    How can i sent e-mail from espo using API ?

  • #2
    Hello
    The easiest way is to do the action in system with opened browser console. In network tab you can see the url and all the parameters

    Comment


    • #3
      Can you share with me some example?

      Comment


      • #4
        Of API using?
        http://forum.espocrm.com/forum/devel...empty-response

        Comment


        • #5
          I dont know did you understand me
          I want to sent e-mail using API POST to client. Is that possible?

          Comment


          • #6
            I did understand. You could see this, if you opened browser console.

            $postFields = json_encode(array(
            "assignedUserId" => "1",
            "body" => "<p>text3</p>",
            "bodyPlain" => "text",
            "isHtml" => true,
            "status" => "Sending",
            "subject" => "sub3",
            "from" => emailFrom,
            "to" => emailTo
            ));

            $url = $espoUrl . "/api/v1/Email";
            $httpMethod = "POST";

            Comment


            • #7
              I already check that and i'm using console from browser, but i can't find list of fields

              Comment


              • #8
                Which fields are require?

                Comment


                • #9
                  $postFields = json_encode(array(
                  "body" => "<p>text3</p>",
                  "status" => "Sending",
                  "subject" => "sub3",
                  "from" => emailFrom,
                  "to" => emailTo
                  ));

                  body could be empty

                  Comment

                  Working...
                  X