مستندات / راهنماهای اورچارد

جستجو

فهرست

Configuring Email

Configuring Orchard to send email is done by enabling a couple of messaging modules and adding the proper email settings. This document will talk about setting up Orchard to be able to send emails using the localhost.

Required Modules

There are two modules that will need to be enabled in order for Orchard to be able to send emails; The Messaging and Email Messaging. Filter for these two modules and be sure both are enabled. (Hint: Because Email Messaging module is dependent on the Messaging module, enabling Email Messaging will automatically enable the Messaging module.)

Orchard CMS Messaging modules

Be sure both modules have been enabled.

Orchard CMS Messaging modules enabled

Configuring Email Settings

Once both the Messaging and the Email Messaging modules have been enabled the email settings can be configured. To configure the email settings in Orchard, select 'Email' under the Settings section of the admin.

Orchard CMS Email Settings Navigation

Emails can be sent from the local host with the below settings (be sure to replace the from address with an appropriate email address).

Orchard CMS Messaging modules

And that's it! Well, mostly... Orchard is capable of sending emails now but how do we tell it to send email? There's different reasons when it would be desirable for emails to be sent, one such reason would be when a new message is received from a site's Contact Us page. Read how to create a custom form and then use a rule or the new Work Flow to have Orchard send an email.