HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

Email actor

This topic describes how to use an email actor to trigger customized emails when someone submits a form.

📘

Note

Optimizely Forms is only supported by MVC-based websites and HTML5-compliant browsers.

Optimizely Forms can trigger customized emails when someone submits a form.

The editor can use placeholders to automatically fill in data from the form into the email, as shown in the following example images:

  • #EMAIL# Displays the email address submitted from the form data.
  • #NAME# Displays the text string submitted in the name field of the form.
  • #SUMMARY# Displays all form field data that was submitted.

IIS send mail configuration

To send email, modify the following code in in web.config:

<system.net>
  <mailSettings>
    <!--<smtp deliveryMethod="PickupDirectoryFromIis" >-->
    <!-- Common usage is to use other network existing mail server other than
         IIS Virtual SMTP Server.
         In such cases use the commented settings below with your server
         location and authentication credentials.      -->
    <smtp from="[email protected]" deliveryMethod="Network">
      <network host="mail.example.com" port="25" />            
    </smtp>
  </mailSettings>
 </system.net>

DXC send mail configuration (Azure)

Configure SendGrid with Azure: https://azure.microsoft.com/en-us/documentation/articles/sendgrid-dotnet-how-to-send-email/

Modify the following code in web.config:

<system.net>
 <mailSettings>
   <smtp from="[email protected]">
     <network host="smtp.sendgrid.net" password="password" userName="username" port="587" />
   </smtp>
 </mailSettings>
</system.net>

What’s Next
Did this page help you?