最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

Configure and send email

网络文摘 William 713浏览 0评论

In Dynamics 365 for Operations, both administrators and users set the behavior of the email subsystem.

Administrator: Email parameters page

On the Email parameters page, note the following settings on the Email providers tab.

Field Description
Batch email provider Specifies which email provider will be used to send emails that are sent by processes in a batch or non-interactive manner.
Attachment size limit Specifies the maximum size of a single email that can be sent via the email subsystem.

On the Email parameters page, note the following settings on the SMTP settings tab.

Field Description
Outgoing mail server  The host name of the desired SMTP server.

  • For Office 365 production (including *.onmicrosoft.com accounts) use smtp.office365.com. (You can find this setting at outlook.office.com at Settings > Mail > POP and IMAP.)
  • For Outlook/Hotmail use smtp-mail.outlook.com.
SMTP port number Typically, the port number should be set to 587 for secure transport.
User name and Password Specify, as needed, to send the email via the appropriate mail account.

All users need to provide the SMTP account Send As or Send On Behalf Of permissions to enable the ability to send Simple Mail Transfer Protocol (SMTP) mail. You can configure Send As permissions in the Office 365 admin center (portal.office.com/Admin), at Users > Active users > User > Edit mailbox permissions > Send email from this mailbox. For more information, see Enable sending email from another user’s mailbox in Office 365.

Specify if SSL is required Determines whether secure transport is used. Typically, this is Yes, except for internal or troubleshooting scenarios.

Administrator: Email Distributor batch process

Email that is sent directly from the server, without user interaction, via SMTP is sent by the Email distributor batch process. That batch process must be started to process the email queue. To start the process, open the Email distributor batch pane (System administration > Periodic tasks > Email processing > Batch) and turn on Batch processing.

Administrator: User email

The default email address for each user is pulled from the Email field on the Users page (System administration > Users > Users). An email address should be specified for each user for sign in, so this field should be populated. Users can override this default if needed.

User: Email provider selection section on the Options page

The Options page can be opened via Settings > Options. The Email provider selection section is on the Account tab.

Field Description
Email provider ID Allows the user to select the email provider that should be used when sending an email. Selecting an option here is the equivalent of selecting Do not ask again in the How would you like to send email dialog box. Selecting the blank option Prompt for which email provider to use will cause the How would you like to send email dialog box to display when an email is going to be sent.
Email Allows the user to provide an email address override for the From field of the email. By default, the email alias that associated with the user account is used as the From field in new emails, but this user option email address will override that. When sending email via SMTP the user needs to have appropriate Send As or Send On Behalf Of permissions configured in Exchange or on the SMTP server.

Note: You can configure Send As permissions in the Office 365 admin center (portal.office.com/Admin) at Users > Active users > User > Edit mailbox permissions > Send email from this mailbox. For more information, see Enable sending email from another user’s mailbox in Office 365.

User (optional): How would you like to send email dialog box

When an email is going to be sent, the user will see the How would you like to send email dialog box that will list the available options for sending email.

Field Description
Use an email app, such as Outlook Provides the user with a generated email (.eml) file.
Use Exchange email server Uses the Exchange Server associated with the tenant. The email will be sent using Exchange Web Services (EWS).
Use the Microsoft Dynamics 365 for Operations email client Opens the Send email composition dialog box and then sends the resulting email via SMTP.
Do not ask again If this field is not selected, the next time an email is sent the most recently selected option will be used and the dialog box will not open.

User (optional): Send email dialog box

The Send email dialog box is opened to allow the user to edit the contents of the email that will be sent. Some of the following fields will be pre-populated in this window.

Field Description
From Populated from the Email field on the Options page.
To, Cc, Bcc, Subject, and Body fields Populated with values specified by the process that initiated the sending of the email. These fields can be edited as needed by the user.
Attachments list May be populated with attachments specified by the process that initiated the sending of the email. This list can be edited as needed by the user.

When the email is ready to be sent, the Send button will cause the email to be sent via SMTP.

Usage scenarios to verify if email is configured correctly

Send mail via a local mail client

Email workflows that are enabled via the SysEmail framework can generate email messages (.eml files) that contain attachments. You can then send these messages via Microsoft Outlook or another email client.

  1. In Internet Explorer, navigate to Accounts receivable > Customers > All customers.
  2. Select US-008 Sparrow Retail.
  3. Click Collect > Customer balances > Collections to open the Collections page.
  4. Click Communicate > Email > Statements to contact.
  5. Click OK to accept the default values in the dialog box.
  6. If you’re prompted for the mail option to use, clear the Do not ask again check box (you can change this option from the User options page), select Use an email app, such as Outlook, and then click OK.
  7. If you’re using Internet Explorer on your computer, open the email (.eml) file that is generated. If you’re using Internet Explorer on the VM, copy the file to your computer, and open it there.
  8. Note the email address in the To field and the generated workbook attachment.
Send mail via SMTP

Email workflows that are enabled via the SysEmail framework can also be created in a simple email dialog box and then sent via Simple Mail Transfer Protocol (SMTP).

  1. In Dynamics 365 for Operations, go to the Email parameters page.
  2. Click SMTP settings.
  3. Set the Outgoing mail server to the desired SMTP server:
    • For Office 365 production (including *.onmicrosoft.com accounts) use smtp.office365.com. (Find this setting via outlook.office.com, at Settings > Mail > POP and IMAP.)
    • For Outlook/Hotmail use smtp-mail.outlook.com.
  4. Set the user name and password to an appropriate email account and password.
  5. Leave SSLRequired turned on, and leave SMTP port number set to 587.
  6. Click Save.
  7. In Internet Explorer, navigate to Accounts receivable > Customers > All customers.
  8. Select US-008 Sparrow Retail.
  9. Click Collect > Customer balances > Collections to open the Collections page.
  10. Click Communicate > Email > Statements to contact.
  11. Click OK to accept the default values in the dialog box.
  12. If you’re prompted for the mail option to use, select Use the Microsoft Dynamics 365 for Operations email client, and then click OK.
  13. To receive the test message, change the To address to your email address.
    • Ensure that the account specified in the SMTP settings is able to Send As or Send On Behalf Of your email account. The easiest way to ensure this to use your email account in the SMTP settings.
  14. Enter a subject and body for the message.
  15. Click Send.
    The message should be delivered in one to five minutes.

转载请注明:ww12345678 的部落格 | AX Helper » Configure and send email

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址