WordPress.org

Ready to get started?Download WordPress

Forums

Custom Contact Forms
[resolved] (patch) Fix incompatibility with Amazon SES (1 post)

  1. creyes123
    Member
    Posted 2 years ago #

    From looking at the source code, this plugin uses the value in the fixedEmail (reply) field as the From email value if it contains a valid email address. This behavior is not documented in the admin interface of the plugin and is incompatible with Amazon Simple Email Service (SES).

    Amazon SES requires that all emails originate (From field) from previously verified email addresses. A much better solution is to put the fixedEmail value in the email ReplyTo field. This patch fixes this incompatibility:

      File custom-contact-forms-front.php, lines 576-579:
    if ($reply != NULL && $this->validEmail($reply))
        $mail->From = $reply;
    else
        $mail->From = $admin_options['default_from_email'];
      Replace with:
    if ($reply != NULL && $this->validEmail($reply))
        $mail->AddReplyTo($reply);
    $mail->From = $admin_options['default_from_email'];

    http://wordpress.org/extend/plugins/custom-contact-forms/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic