@plone/volto
Version:
Volto
34 lines (31 loc) • 737 B
JavaScript
/**
* emailNotification actions.
* @module actions/emailNotification/emailNotification
*/
import { EMAIL_SEND } from '@plone/volto/constants/ActionTypes';
/**
* Email send function
* @function emailSend
* @param {string} name New password.
* @param {string} from Sender mail address.
* @param {string} to Receiver mail address.
* @param {string} subject Email subject.
* @param {string} message Email message.
* @returns {Object} Edit emailSend action.
*/
export function emailSend(name, from, to, subject, message) {
return {
type: EMAIL_SEND,
request: {
op: 'post',
path: '/@email-send',
data: {
name,
from,
to,
subject,
message,
},
},
};
}