MutationSendFriend · Magento 2.4.9
sendEmailToFriend
sendEmailToFriend is a Magento 2 GraphQL mutation in the SendFriend module. Send a message on behalf of a customer to the specified email addresses. It returns SendEmailToFriendOutput and requires an Authorization header (Bearer customer token).
Last verified: against Magento 2.4.9.
Returns
Resolver class
\Magento\SendFriendGraphQl\Model\Resolver\SendEmailToFriend
Arguments
input SendEmailToFriendInput
An input object that defines sender, recipients, and product.
Example request
Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.
Headers
Query
mutation {
sendEmailToFriend {
sender {
name
email
message
}
recipients {
name
email
}
}
}Variables
{}Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.