emencia / emencia-django-newsletter

An app for sending newsletter by email to a contact list.
189 stars 72 forks source link

Unique header for each outgoing letter #21

Closed alesasnouski closed 13 years ago

alesasnouski commented 13 years ago

When doing mass sending all the responses of users fall into the same thread. It's extremely inconvenient to handle with responses then. In order to separate responses of users we added an ability to add unique slug for each outgoing letter (adding to topic something like (mycompany-3434845) ).

Besides, can you explain what means "Custom headers:" when creating a new smtp server ? I haven't found any explanation in docs :(

Fantomas42 commented 13 years ago

Hi BlindHunder,

you have a really great idea. I will pull your code asap, but maybe with some modifications on the unique ID generation.

For the custom headers, you have right, there is a lack of informations in the documentation about this feature.

The custom headers are like a python dict, and are usefull when you need to pass more informations in the email generated. In my case, I can provide a tracking tag directly in the email, which will be analyzed by the SMTP provider for more statistics.

Have a nice day

Fantomas42 commented 13 years ago

Hi BlindHunter, I have implemented your idea but in a different way, without new fields in the newsletter's model.

Take a look at Fantomas42/emencia-django-newsletter@4714eefa50161bea570d8487f7139d9b68fc16c8

With this method you have more flexibility in the generation of the UNIQUE_KEY.

You can do something like that in the title for example :

My super new newsletter [[[ UNIQUE_KEY }}-{{ contact.pk }}]

Regards

alesasnouski commented 13 years ago

Thanks :)