Crystalll0607 2025-06-24 16:06 采纳率: 0%
浏览 10

uipath 发送 SMTP 邮件消息: No recipients have been specified.

发送 SMTP 邮件消息: No recipients have been specified.

  • 写回答

5条回答 默认 最新

  • 阿里嘎多学长 2025-06-24 16:06
    关注

    阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程

    问题解答

    你使用 UiPath 发送 SMTP 邮件消息时遇到了 "No recipients have been specified" 的错误,这是因为你没有指定邮件的收件人。

    解决方案:

    1. 在 UiPath 任务中,添加一个变量来存储邮件的收件人,然后将其传递给 Send Email activity。
    2. Send Email activity 中,设置 To 字段为你定义的变量。

    例如:

    // 定义收件人变量
    string recipient = "recipient@example.com";
    
    // 发送邮件
    Send Email
    {
        To = recipient;
        Subject = "Test Email";
        Body = "This is a test email.";
    }
    

    这样,UiPath 就会将邮件发送到指定的收件人。

    如果你需要发送邮件到多个收件人,可以使用 To 字段的 Add 方法来添加多个收件人。

    例如:

    // 定义收件人变量
    List<string> recipients = new List<string> { "recipient1@example.com", "recipient2@example.com" };
    
    // 发送邮件
    Send Email
    {
        To = recipients;
        Subject = "Test Email";
        Body = "This is a test email.";
    }
    

    这样,UiPath 就会将邮件发送到多个指定的收件人。

    评论

报告相同问题?

问题事件

  • 创建了问题 6月24日