Skip to main content
Glama
jhw7500

Email MCP Server

by jhw7500

send_email

Send emails directly from applications using SMTP protocol. Specify recipient, subject, and body to dispatch messages through the Email MCP Server.

Instructions

이메일을 발송합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes수신자 이메일 주소
subjectYes제목
bodyYes본문 (텍스트)

Implementation Reference

  • The handler logic for the 'send_email' tool, which validates the tool name and uses nodemailer to send the email.
      if (toolName !== "send_email") {
        return { content: [{ type: "text" as const, text: `Unknown tool: ${toolName}` }], isError: true };
      }
      try {
        const { to, subject, body } = args as { to: string; subject: string; body: string };
        const transporter = nodemailer.createTransport({
          host: smtpConfig.host,
          port: smtpConfig.port,
          secure: true,
          auth: { user: smtpConfig.user, pass: smtpConfig.password },
        });
        await transporter.sendMail({ from: smtpConfig.user, to, subject, text: body });
        return {
          content: [{ type: "text" as const, text: `이메일 발송 완료: "${subject}" → ${to}` }],
        };
      } catch (error) {
        const msg = error instanceof Error ? error.message : String(error);
        return { content: [{ type: "text" as const, text: `발송 오류: ${msg}` }], isError: true };
      }
    };
  • The schema definition for the 'send_email' tool, specifying input arguments.
    {
      name: "send_email",
      description: "이메일을 발송합니다.",
      inputSchema: {
        type: "object" as const,
        properties: {
          to: { type: "string", description: "수신자 이메일 주소" },
          subject: { type: "string", description: "제목" },
          body: { type: "string", description: "본문 (텍스트)" },
        },
        required: ["to", "subject", "body"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhw7500/email-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server