Click here to Skip to main content
15,883,623 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Me and My group are developing an Event Management system. So After the event is created, the system must send emails to all registered users in the system simultaneously, I have been tying to work on it for quite some time now and I'm not winning. Please help me out.

What I have tried:

I have only been able to get the code for sending individual emails
Posted
Updated 20-Sep-18 3:29am
Comments
F-ES Sitecore 19-Sep-18 10:33am    
foreach (var user in yourUsers)
{
// send an email to "user"
}
MadMyche 19-Sep-18 10:39am    
How many emails? If you send too many emails too quickly you may be blacklisted
vukilemthobisi ngcamu 20-Sep-18 5:44am    
it will depend in the usres i have, registered on the system

1 solution

The first thing your group needs to do is to read and evaluate any laws pertaining for your locale in regards to SPAM. Commercial email does have regulations in regards to opt-out/unsubscribe.
USA: CAN-SPAM Act: A Compliance Guide for Business | Federal Trade Commission[^]

You can roll your own system; here are my recommendations.
1. The user registration form should have an opt-in for emails.
2. The emails sent out should have an unsubscribe mechanism.
3. The emails sent should be sent via a queue to throttle email rate (I do 100/minute)

Or you could install a list-server which will generally have these mechanisms already in place, and you could populate via an API

Some more info: SendPulse: How to send bulk emails without spamming[^]
 
Share this answer
 
Comments
F-ES Sitecore 20-Sep-18 9:42am    
I know this is a concept Americans struggle with, but there *are* other countries in the world and USA law does not apply to the whole world ;)
OriginalGriff 20-Sep-18 9:58am    
And some of them are even stricter: Euro GDPR regulates bulk email as well

https://www.mailjet.com/gdpr/email-marketing/
MadMyche 20-Sep-18 10:11am    
Which I qualified in the first sentence: "any laws pertaining for your locale".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900