Viewing 1 replies (of 1 total)
  • Thread Starter 3cstudio

    (@3cstudio)

    I had the developer who originally installed this plugin for the NPO take a look — here’s what he (Tyrel) found, FWIW:

    The First Issue that I fixed is found in my donate.php
    this issue begins on line 1205 and ends at line 1236
    Since the update_option function automatically adds the option if its not found it is unnecessary to make the checks before updating. Thus I have commented all the conditional code and all the calls to add_option. This solved the issue where the email was not getting saved.

    The second issue can be found in paypal.php

    The issue was related to the mail function that was being used.

    I added the following code on Lines 18-19
    $fromAddress = get_option( ‘from_address’ );
    $headers[] = “From: “.$fromAddress;

    then on lines 128-129
    I added the wp_mail call and commented the mail call
    wp_mail( $send_mail_to, $email_subject, $msg, $headers );
    //mail( $send_mail_to , $email_subject, $msg, $from);

    also made similar changes on lines 152-156

    wp_mail( $send_mail_to, $email_subject, $msg, $headers );
    //mail( $send_mail_to , $email_subject, $msg, $from);
    wp_mail( get_option( ‘paypal_email_id’ ), $email_subject, $msg, $headers );
    //mail( get_option( ‘paypal_email_id’ ) , $email_subject, $msg, $from);

Viewing 1 replies (of 1 total)
  • The topic ‘Thank You email / confirmation / receipt’ is closed to new replies.