0

I am wanting to have the ability in the admin panel to send a newsletter to a test email address so I can see how it looks in different email clients. So I found a post that says to do the below. However my issue is it does not seem to work as once I add a newsletter to the queue I do not have any option to indicate it should go to a "test" email user.

the post I found said to Go to /app/code/Mage/Newsletter/Model/Queue.php

Modify the method getSubscribersCollection() around line 126 to:

 $this->_subscribersCollection = Mage::getResourceModel('newsletter/subscriber_collection')
 ->addFieldToFilter('subscriber_email', '[email protected]')
 ->useQueue($this);
asked Apr 13, 2015 at 17:23

1 Answer 1

1

First and foremost, ignore posts that tell you to modify code in app/code/core. This should only be done to quickly check if something would work, but Magento had an observer system and rewrite system that lets you modify its behavior without touching core code.

This particular code is a quick hack that assumes you have created a newsletter subscriber with the hardcoded e-mail address in the code, before you run it, so there's no way to configure that at runtime, you just have to create that customer first and subscribe her to the newsletter.

This also means, you cannot send actual newsletters from that system, so this is meant for a staging / test installation.

answered Apr 13, 2015 at 17:45
1
  • ahh ok. Any suggestions on a modification of the above code to be able to create/edit a test email address from the admin panel side that would also not prevent use from sending a newsletter to the real subscriber list. Commented Apr 13, 2015 at 17:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.