Why would an email sent from a ColdFusion script to an Office 365 distribution list fail to make it to the list members?

huangapple go评论51阅读模式
英文:

Why would an email sent from a ColdFusion script to an Office 365 distribution list fail to make it to the list members?

问题

我有一个使用ColdFusion的<cfmail>标签发送邮件的应用程序。当“to”属性中指定的收件人是一个简单的单用户邮箱或共享邮箱时,邮件可以正常送达。然而,当收件人是一个分发列表时,邮件却无法到达分发列表成员的收件箱。以下是代码示例:

<cfprocessingdirective suppresswhitespace="no">
    <cfmail
        type="html"
        query="getRecord"
        from="Some Email Address<SomeEmail@Address.com>"
        to="some_distribution@list.com"
        subject="Subject Text">
        
        <p>Some text</p>

        <ul>
            <li>Some Field: #encodeForHTML(getRecord.someField)#</li>
            <li>Some Other Field: #encodeForHTML(getRecord.someOtherField)#</li>
        </ul>

        <p>Some text</p>
    </cfmail>
</cfprocessingdirective>

已经测试了多个分发列表,但都未成功。我已经尝试将单用户电子邮件地址或共享邮箱地址添加到<cfmail>标签的CC或BCC属性中进行测试,结果发现邮件可以送达CC/BCC地址,但无法送达分发列表成员的地址。

英文:

I have an application that sends mail using the ColdFusion &lt;cfmail&gt; tag. When the recipient, specified in the "to" attribute, is a simple single-user mailbox or shared mailbox, the mail is delivered without issue. When the recipient is a distribution list, however, the mail never arrives at the list members' inboxes. Following is what the code looks like:

&lt;cfprocessingdirective suppresswhitespace=&quot;no&quot;&gt;
    &lt;cfmail
        type=&quot;html&quot;
        query=&quot;getRecord&quot;
        from=&quot;Some Email Address&lt;SomeEmail@Address.com&gt;&quot;
        to=&quot;some_distribution@list.com&quot;
        subject=&quot;Subject Text&quot;&gt;
        
        &lt;p&gt;Some text&lt;/p&gt;

        &lt;ul&gt;
            &lt;li&gt;Some Field: #encodeForHTML(getRecord.someField)#&lt;/li&gt;
            &lt;li&gt;Some Other Field: #encodeForHTML(getRecord.someOtherField)#&lt;/li&gt;
        &lt;/ul&gt;

        &lt;p&gt;Some text&lt;/p&gt;
    &lt;/cfmail&gt;
&lt;/cfprocessingdirective&gt;

This has been tested with multiple distribution lists, and failed with all of them. I've tested adding a single-user email address or shared mailbox address to the CC or BCC attribute of the <cfmail> tag, and found that the mail arrives at the CC/BCC address, but not at the addresses of the members of the distribution list.

答案1

得分: 1

对于 Office 365,所有组和分发列表默认情况下已关闭"默认情况下关闭接收外部电子邮件"。您应该在组的配置中检查"允许组外部的人员发送邮件到该组"复选框是否已打开。

要进行此设置:

  • 以管理员身份登录 Office 365
  • 从活动组列表中选择组
  • 单击该组以打开属性滑出
  • 切换到"设置"选项卡
  • 您可以从此面板打开该标志并应用更改
英文:

For Office 365, all groups and distribution lists have Outside Receiving turned off by default. You should check in the configuration for the group if the "Let people outside this organization send mail to this group" check box has been turned on.

To get to this setting:

  • log into Office 365 as an administrator
  • select the group from the Active Groups list
  • click on the group to open the properties slide out
  • switch to the Settings tab
  • you can turn on the flag from this panel and apply the changes

答案2

得分: 0

有时类似的群发邮件需要发件人处于该群组内部,或者至少使用SMTP服务器进行身份验证。我会首先检查这一点。

英文:

Sometimes group emails like that require the sender to be "inside" the group, or at least SMTP authenticated with the server. I'd check that first.

huangapple
  • 本文由 发表于 2023年2月14日 08:31:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/75442440.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定