# Send Email

# Send Email to Mailing List by ID

# Description

You can use this API to send email to some mailing list.

# Endpoint

POST https://gconvertrest.sendmsg.co.il/api/Sendmsg/SendEmailToMailingLists
Name Type Required
Authorization mail token ✔️
Content-Type application/json ✔️

# Parameters

Variable Name required Info exmple value Default if not Using
MalingListIDs ✔️ array of ints [1,45,2253,98] none
MessageContent ✔️ Content Of The Massage Hello World none
MessageSubject ✔️ Subject Of Message HeadLine none
MessageInnerName ✔️ Name of Massage (in sendmsg account) MassageName none
SenderEmailAddress Email test@sendmsg.co.il comstar@sendmsg.co.il
MessageBackColor Can be set by Hex Color #fcba03 #ffffff - Black
MessageDirection ✔️ RTL=1 Or LTR=2 1 none
AddFacebook Add a Share Link of Mail to Facebook (Link to Share the mail on Social Madia) true false
AddForward Add a Link To Forward the Mail true false
AddShowMessage Add a Link To view the Mail on the Browser true false

# Request Example

{
  "Message": {
    "MessageContent": "this is the content of the message",
    "MessageSubject": "hello world",
    "MessageInnerName": "inner name",
    "SenderEmailAddress": "office@comstar.co.il",
    "MessageBackColor": "black",
    "MessageDirection": 2,
    "AddFacebook": true,
    "AddForward": true,
    "AddShowMessage": true
  },
  "MalingListIDs": [
    172595
  ]
}

# Response Example

{
  "success": true-Or-false,
  "res": true-Or-false,
  "result": {
    "ResultID": Status-Code,
    "ResultMessage": SendMsgResult-Message,
    "Tin": deprecated-always-empty
  },
  "data": {
    "users": [array<int UserID> - List Of All User ID],
    "message": <int messageID> - The ID of the message
  }
}
Last Updated: 7/13/2023, 2:50:32 PM