Skip to main content
gamesmad's user avatar
gamesmad's user avatar
gamesmad's user avatar
gamesmad
  • Member for 9 years, 7 months
  • Last seen more than 2 years ago
  • Exeter, Devon, United Kingdom
answered
Loading…
awarded
Loading…
answered
Loading…
Loading…
revised
Email Sending Application
Remove credentials.
Loading…
suggested
Approve
comment
Return a collection of most frequent characters in a string
As an aside, I would argue that the most frequent characters in the string "a, b, c" are "," and " ". Not "a", "b" and "c".
comment
E-store automatic email send, to be run daily
What if a single Customer has multiple email addresses that are all opted in to communications? Although you do make a very important point, accidentally leaking email addresses is extremely undesirable. Take as much (or even more) care over a software driven email as you would when manually sending.
comment
E-store automatic email send, to be run daily
Change it to be - mailMessage.To.Add(string.Join(",", recipients)); Forgive me I didn't compile or run any of that code I wrote. Post another question with the revised code if you want to go over it more. Best of luck.
revised
E-store automatic email send, to be run daily
added 74 characters in body
Loading…
comment
revised
E-store automatic email send, to be run daily
added 670 characters in body
Loading…
awarded
revised
E-store automatic email send, to be run daily
added 670 characters in body
Loading…
comment
E-store automatic email send, to be run daily
Hang on, I'll update the answer.
comment
E-store automatic email send, to be run daily
You need to pass a list of email addresses into that parameter, but if there is only one email address you still need to pass a list. So you could create a list and add that email.
comment
E-store automatic email send, to be run daily
I used the word store in a generic sense, the store might be a database, in memory store or something else. In practice I mean add a CustomerEmail class, and then store each email sent in there. Then when deciding whether to send an email you can check whether it has already been sent or not. And you will have an audit trail of the exact emails sent, including the variables.
awarded
answered
Loading…