comAtprotoAdminSendEmail function
Send email to a user's account email address.
Implementation
Future<XRPCResponse<AdminSendEmailOutput>> comAtprotoAdminSendEmail({
required String recipientDid,
required String content,
String? subject,
required String senderDid,
String? comment,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.comAtprotoAdminSendEmail,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'recipientDid': recipientDid,
'content': content,
if (subject != null) 'subject': subject,
'senderDid': senderDid,
if (comment != null) 'comment': comment,
},
to: const AdminSendEmailOutputConverter().fromJson,
);