Page 1 of 1

Show emails in To or CC that aren't actual recipients

Posted: Thu Sep 06, 2007 2:12 am
by thaimin
I am developing a weird system and I need to list a bunch of emails in the To and CC sections that are not actual recipients. This allows someone to do a reply-all without revealing true email addresses (the emails all get sent to a fake box, where I can parse them and send them to the real recipients).

So I need a way to do this, anyone know how?

Posted: Thu Sep 06, 2007 7:44 am
by feyd
Which part are you wondering about?

Posted: Thu Sep 06, 2007 11:31 am
by thaimin
How to add recipients that do not end up receiving the actual emails.

And actually, I guess another requirement would be that while using the batch-send method to personalize each method, is it possible that each of those messages also keeps a list of all of those fake email names.

So here is an example of what I want to do:
To: user1realemail@example.com, user1@mydomain.com, user2@mydomain.com
with a customized body for user1

Then, the same message (with the decorator replacing necessary things):
To: user2realemail@example.com, user1@mydomain.com, user2@mydomain.com
with a customized body for user2

Preferably it would actually remove the fake email address for the user whose real address is included.

Is there anyway this could be done with the decorator and such?

Posted: Thu Sep 06, 2007 1:41 pm
by Chris Corbyn
thaimin wrote:How to add recipients that do not end up receiving the actual emails.

And actually, I guess another requirement would be that while using the batch-send method to personalize each method, is it possible that each of those messages also keeps a list of all of those fake email names.

So here is an example of what I want to do:
To: user1realemail@example.com, user1@mydomain.com, user2@mydomain.com
with a customized body for user1

Then, the same message (with the decorator replacing necessary things):
To: user2realemail@example.com, user1@mydomain.com, user2@mydomain.com
with a customized body for user2

Preferably it would actually remove the fake email address for the user whose real address is included.

Is there anyway this could be done with the decorator and such?
This just seems all wrong to me. You should probably simply be starting a campaign in a MySQL database for somebody else to log on and run when needed. Why are you adding the requirement that you send to someone's mailbox (presumably your client) and then get them to Reply-all? It feels really unprofessional, but either way if you just set the To: header Swift will leave it alone:

Code: Select all

$message->setTo(array("address@domain.com", "address@anotherdomain.com", ....));
//Or
$message->setTo(array(new Swift_Address(...), new Swift_Address(...), ....));

Posted: Fri Sep 07, 2007 8:50 pm
by thaimin
It was originally never like this. My project is currently used by around 150 people, and the vast majority of them are computer illiterate, and as most common users, do not read everything shown to them.

Originally messages could only be sent within the program (almost like emails, but different in some ways), but then people wanted to be notified/be able to read the messages without logging in. They all like using the interfaces they are familiar with (email). People inevitably reply to those messages even though they are told not to but instead log in to the system and reply there, but people don't want their real emails released. It won't be long before someone wants to be able to reply to all, and since I am currently adding the feature of being able to reply to emails sent and convert them back into messages in my system, I was thinking I might as well add the ability to reply-to-all.

I figured out how to do it anyways (hasn't been tested though). Since the Message ID with the message include my domain name, I can easily see which messages came straight from my system back to my system (which is where all the "dud" names are for). I just ignore those.