0

I have a Symfony project, that is now being tested on live system, and I'm using the delivery_address to prevent sending email to real recipients.

I needed also some exceptions for this, so I have used a very nice delivery_whitelist option (like here).

Right now, the white-listed emails are going both to original target and to delivery_address, but I'd like them to get sent only to the original, white-listed address. Is that possible in some way?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
userfuser
  • 1,350
  • 1
  • 18
  • 32
  • Since your requirements exactly contradict the semantics of the configuration options, your only option seems to be adding some logic to your mail sending component. I am sure that you will be able to extract the whitelist and other options programatically so you can build your edge case. – Joshua Nov 22 '16 at 11:03
  • Looks like that. But I wouldn't say it "exactly contradicts" the original intention of the config option (at least not the official docs). Actually I was expecting exactly what I needed, after having read the docs: "you may want email sent to some specific email addresses to go through after all, *and not be redirected* (even if it is in the dev environment). This can be done by adding the delivery_whitelist option...". But apparently, it actually **does** get redirected (besides being sent to original address). – userfuser Nov 22 '16 at 11:26
  • @Joshua: since there seems to be no solution for this case I need, if you'd like to add your comment as an answer, I'll accept it officially. – userfuser Nov 28 '16 at 16:52

1 Answers1

1

As @userfuser suggested, here is my slightly altered comment as an answer:

Since your requirement contradicts the semantics of the configuration options, your only option seems to be adding some logic to your mail sending component. I am sure that you will be able to extract the white list and other options programatically so you can build your edge case.

Joshua
  • 2,932
  • 2
  • 24
  • 40