WordPress.org

Ready to get started?Download WordPress

Forums

E-cards template emailing issue (1 post)

  1. stephaniebane
    Member
    Posted 3 years ago #

    The wp-ecards plugin is working when I send it directly to an email that does not have forwarding. However, when I try to send the e-card to an email I know is being fowarded, it won't work. Help?

    $headers  = "From: " . $this->sender_email . "\r\n" ;
    	 		$headers .= "Reply-To: " . $this->sender_email . "\r\n" ;
    			$headers .= "X-Mailer: ".get_bloginfo('name');
    
    			$to = $this->recipient_email;
    
    			$message  = "Hi ".$this->recipient_name.", \r\n";
    			$message .= "You have been sent an ecard from ".$this->sender_name.".\r\n";
    			$message .= "To view it, visit ".get_bloginfo('home')."/viewcard/".$this->card_hash." \r\n";
    
    			$subject = "An Ecard from ".$this->sender_name;
    
    			if ( wp_mail($to,$subject,$message,$headers) ){
    				echo "<p><strong>Your e-card has been sent!</strong></p>";
    				echo "<p><a href='".$this->post_permalink."'>Would you like to send another?</a></p>";
    			}

Topic Closed

This topic has been closed to new replies.

About this Topic