Making WordPress.org

Changeset 7123


Ignore:
Timestamp:
04/17/2018 10:45:36 PM (8 years ago)
Author:
iandunn
Message:

WPF Stripe: Set Reply-To header so donors can reply to emails.

Location:
sites/trunk/wordpressfoundation.org/public_html/content/plugins/wpf-stripe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpressfoundation.org/public_html/content/plugins/wpf-stripe/email.php

    r7121 r7123  
    3131    $subject = merge_template_data( $template->post_title, $transaction_data );
    3232    $message = merge_template_data( $template->post_content, $transaction_data );
     33    $headers = array( 'Reply-To: stripe-wpf@wordcamp.org' );
    3334
    3435    if ( ! is_email( $to ) || empty( $subject ) || empty( $message ) ) {
     
    3940    //todo create multipart HTML/plaintext
    4041
    41     $success = wp_mail( $to, $subject, $message );
     42    $success = wp_mail( $to, $subject, $message, $headers );
    4243
    4344    if ( ! $success ) {
  • sites/trunk/wordpressfoundation.org/public_html/content/plugins/wpf-stripe/wpf-stripe.php

    r7122 r7123  
    238238}
    239239// todo: not ready for production yet -- add_action( 'rest_api_init', __NAMESPACE__ . '\register_routes' );
     240// todo before enabling this, replace the placeholder content in the Donation Email posts w/ proper content from Andrea
    240241
    241242/**
     
    309310            print_r( compact( 'event', 'transaction_data' ) );
    310311            // send_mail( 'subscription-deleted', $transaction_data );
     312            // todo need to add a template for this on production
    311313            break;
    312314
Note: See TracChangeset for help on using the changeset viewer.