WordPress.org

Ready to get started?Download WordPress

Forums

emails cannot be sent - price-calc (4 posts)

  1. mofsiz
    Member
    Posted 2 years ago #

    Hi there,

    I have a problem with the price-calc tool.
    It isn't sending the email with the form data.

    Does anyone experienced this before?

    The mailing process seems to work with the following php code:

    <?php
    
    class Mailer {
    	function send( $msg, $to = null ) {
    		$from = get_option( 'price-calc-email' );
    		if( !$to )
    			$to = $from;
    
    		$message .= "$msg\r\n\r\n";
    		$subject = get_option( 'price-calc-subject' );
    		$headers = "From: " . $from . "\r\n" . " Content-type: text/html\r\n" . " Reply-To: " . $from . "\r\n" . " X-Mailer: PHP/" . phpversion();
    
    		return @mail( $to, $subject, $message, $headers );
    	}
    }
    
    ?>

    Testwise I also installed WP Mail SMTP but nothing changed.

    Would be nice to get some help.

    Thx&Greets

  2. dicki
    Member
    Posted 2 years ago #

    Did you find the solution? I have the same problem.....

  3. adamselby
    Member
    Posted 2 years ago #

    Also have this problem. I'm about to abandon it and just write my own estimator with JavaScript and HTML.. The emails worked for a while, but then stopped without any changes by me. Odd.

  4. armdan
    Member
    Posted 2 years ago #

    Same problem here .
    I think the problem can be solved if we can make price-calc to use wordpress default mailer instead of the code above.

Topic Closed

This topic has been closed to new replies.

About this Topic