The Movable Type User Manual

NOTE: This documentation is for Movable Type 3.2. If you are using a newer version, please see the documentation for Movable type 3.3x or Movable Type Enterprise.

« Protecting Email Addresses from Spammers | Up | Enabling the Send an Entry Functionality »

Chapter 9: Email

Configuring Outbound Email Services

Problem

You want to use one of Movable Type's outbound email features and need to configure them.

Solution

Use the MailTransfer directive along with either the SendMailPath or SMTPServer directives based on your server's environment.

Discussion

Movable Type makes smart enough choices for default mail configuration settings that in many cases you will not be required to change anything.

Without any changes to the configuration, MT uses sendmail for outbound email services. By default it will look for sendmail in three standard locations: /usr/lib/sendmail, /usr/sbin/sendmail, and /usr/ucblib/sendmail. If sendmail is not in one of these locations on your system, you can specify it in the system configuration with the SendMailPath directive.

To switch to SMTP instead of sendmail, set the MailTransfer directive in mt-config.cgi to 'smtp'. (By default MailTransfer is set to 'sendmail'.) Using the SMTP option will require the Mail::Sendmail module from CPAN. You will also need to add the SMTPServer with the address of your SMTP server unless it is being hosted locally.

For development purposes, MailTransfer supports a third option, 'debug,' that will print outbound email to STDERR.

When MT sends a notification message it will, by default, use the author's email address as the sender and the receiver. This will cause some spam filters to reject these messages. Setting the EmailAddressMain directive in the system configuration with a valid email address will cause MT to send notifications using this address instead. While optional, this is highly recommended.

Missing EmailVerificationSecret. How is DebugEmailAddress used?

With our outbound email services configured, we can now put the email scripts included in MT to work.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.