email.dart 584 B

123456789101112131415161718192021222324
  1. import 'dart:core';
  2. import '../client_base.dart';
  3. class EmailService extends JsonRpcClientBase {
  4. EmailService(
  5. String host, {
  6. String serviceName = "IEmailService",
  7. Map<String, String>? headers,
  8. int? timeout,
  9. }) : super(
  10. host,
  11. serviceName,
  12. headers: headers,
  13. timeout: timeout,
  14. );
  15. Future<bool> sendEmailAsync(List<String> receivers, String templateName,
  16. List<String> templateArg) async {
  17. var rpcRst =
  18. await call("SendEmailAsync", [receivers, templateName, templateArg]);
  19. return rpcRst;
  20. }
  21. }