René Cordier created JAMES-3434:
-----------------------------------

             Summary: [JMAP] Send: EmailSubmission/create (user email)
                 Key: JAMES-3434
                 URL: https://issues.apache.org/jira/browse/JAMES-3434
             Project: James Server
          Issue Type: New Feature
            Reporter: René Cordier
             Fix For: 3.6.0


h2. Why

As a user, I want to send an existing email.

h2. How

Implement `EmailSubmission/set create`

{code:json}
[[ "EmailSubmission/set", {
  "accountId": "ue411d190",
  "create": {
    "k1490": {
      "emailId": "M7f6ed5bcfd7e2604d1753f6c",
      "envelope": {
        "mailFrom": {
          "email": "[email protected]",
          "parameters": null
        },
       "rcptTo": [{
         "email": "[email protected]",
         "parameters": null
       }]
     }
   }
 }
}, "0" ]]
{code}

Note: IdentityId is not specified.
Note: EmailParameters should be left null.

Creating an EmailSubmission gets the given email being sent.

Restrictions:
 * The FROM field of the envelope needs to belong to the sender. In which case 
it fails with `forbiddenMailFrom`.
 * The FROM field of the EML needs to belong to the sender. In which case it 
fails with `forbiddenFrom`.

h2. Definition of Done

Write a unit test demonstrating you can send emails.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to