Title: Testing Emails &#8211; How?
Last modified: August 22, 2016

---

# Testing Emails – How?

 *  Resolved [jdiligence](https://wordpress.org/support/users/jdiligence/)
 * (@jdiligence)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/testing-emails-how/)
 * I altered the code to use paypal sandbox so I could test things.
 * However, this gives me no way to test whether emails are sent, because the sandbox
   has it’s own email system that doesn’t accept from outside.
 * How can I test emails without finding out the hard way if it doesn’t work on 
   a real customer?
 * You must have had to test this during development. How did you do that?
 * Thanks.
 * [https://wordpress.org/plugins/paypal-responder/](https://wordpress.org/plugins/paypal-responder/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [jdiligence](https://wordpress.org/support/users/jdiligence/)
 * (@jdiligence)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/testing-emails-how/#post-5646844)
 * I found a way to test in sandbox. If anyone else has this issue, here is what
   I did..
 * 1. Change instances of “[https://www.paypal.com/cgi-bin/webscr&#8221](https://www.paypal.com/cgi-bin/webscr&#8221);
   to “[https://www.sandbox.paypal.com/cgi-bin/webscr&#8221](https://www.sandbox.paypal.com/cgi-bin/webscr&#8221);
   in wp-paypal.php and ipn.php
 * 2. In ipn.php, replace “mail( $payer_email, $subject, $message, $headers )” with“
   mail( ‘my@test.email.com’, $subject, $message, $headers )”
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Testing Emails – How?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-responder_73b6cf.svg)
 * [PayPal Responder](https://wordpress.org/plugins/paypal-responder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-responder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-responder/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-responder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-responder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-responder/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [jdiligence](https://wordpress.org/support/users/jdiligence/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/testing-emails-how/#post-5646844)
 * Status: resolved