C#.net best way to queue emails with attachments for sending - c#

I am looking into a way to more securely send emails from our application.
We are currently sending emails directly to an IIS SMTP server but are looking at ways to more securely deliver emails if the server goes down, restarts etc.
I was thinking a way to implement this would be to store the emails (with attachments) in a queue to be process by a separate process, or store the emails in the database to be then processed.
I was wanting to get some advice and any suggestions would be appreciated.
Thanks

We have a likewise case. We solved it by storing the emails in a database that keeps fault and retry status. We're using FreeSMTP to send the actual messages. Quicksoft also has a all-out product that handles errors itself and keeps its own message database if that is what you're looking for (not so free though ;-))

Related

Is it possible to get emails after specific message id

I have implemented IMAP Idle client using this example.
https://github.com/jstedfast/MailKit/blob/master/Documentation/Examples/ImapIdleExample.cs
I have millions of emails. I am saving message ids of emails as I am reading them.
In an event where computer/server hosting code is shutdown or restarted.
Is it possible to start reading emails after specific message id.
I do not want re fetch all emails which are already read by code.
Instead of saving the MimeMessage.MessageId, why not just save which UniqueId's your program has seen? They don't change between session and they are sequentially ordered.
This is how every IMAP mail client in the world avoids re-downloading the same messages over and over.

Email push notification for new message in c#

I am using IBM lotus note web mail server and looking for a solution on this diagram. My program is written in C# language with OpenPop.NET. Is there an efficient way to monitor new email received in inbox instead of running a schedule job every 1 minute like new mail notification or some signalR type of? I believe that connecting to web mail box again and again every 1 minute is not a good practice. Please suggest.
To the best of my knowledge, there is no published API for push notifications of message delivery from the IBM Domino server.
assuming you can modify the design of the mail files, you could write "before/after new mail arrives" Notes agents. That could send out the notifications, deposit the info in another db, or post it to url. Does not feel to be an extremely efficient solution, but probably better than intense polling of Domino server.
You probably want this to happen just while user has "connected" to his mailbox, not always process all thousands of mail files? This means the agent on Domino should have access to the info if the user is connected or not. In short - a bunch of code on Domino server that makes one think if the whole app would better be Domino based web app (depends of course on what else the app does).

Whats app bulk messages sender

I want to make windows based Whats App bulk messages sender application.
I tried WhatsApi (http://github.com/perezdidac/WhatsAPINet/) to do that, but I found too many limitations and problems.
I want to ask that, I there another way to send bulk whats app messages?
Sending bulk messages are against WhatsApps Terms of Service Agreement. WhatsApp offers users functionality to send broadcast messages, but with a maximum of recipients AND recipients will only receive your message if they have already saved your number in their contact list.
WhatsApp's Terms of Service Agreement states that you may not use the service to send bulk messages (in other words more messages than a normal person would be able to send during a specific time). This keeps their servers from being overwhelmed and keeps advertisers from abusing WhatsApp messages. You can, however, try to write a function to select x number of contacts and send the message, then repeat the function until all intended recipients have been messaged.

Sending thousands of emails from a program?

A website that I used my password on was compromised and the monkeys in charge had stored everything in plaintext. The list was released publicly online. Needless to say, my password and email were among them.
I would like to send emails to everyone else who was listed (thousands) and inform them that to continue using their password is unsafe. My language of choice would be C# and I would be sending them from my gmail with the help of this code: Sending email in .NET through Gmail
I can pretty much assume gmail will lock me out before I finish 10 in under a minute. Apart from sending emails out intermittently, how can I do this?
edit: I agree with the responses. I should instead send one email. Is there a limit to the amount of recipients I send an email to from gmail?
If happy to spend a bit of money for a reliable solution, you could integrate (very easily) with http://sendgrid.com. Provides you with heaps of features to track delivery of email and reporting/analysis of email opening, clicking etc.
Gmail does have limitations on how many emails you can send per day, and I would not recommend for your usage.
Or use some online mail marketing tool like MailChimp http://www.mailchimp.com
This service can easily send thousands of e-mails without problems. They have a free service too. Where you can store up to 2,000 subscribers. Send up to 12,000 emails per month.
It even has a REST API available for interacting with it from a custom app.
However I don't know if you are legally allowed to sent e-mails to the addresses on the list. I know it's for a good cause, but please be warned that this sort of e-mails can be considered as spam.
Again, don't build it yourself, but use off-the-shelf specialized services: I suggest looking at
Amazon Simple Email Service (SES)
which is part of Amazon Web Services (cloud storage, computing and more).
Amazon SES lets you send bulk and transactional email to customers in a quick and cost-effective manner
Service highlights include:
Simple
Inexpensive
Reliable
Scalable

EMAIL from web server

We have a website sending mail alerts to end users. The site has been developed in c# ASP.NET.
I want to find the best way to send the email alerts to my users. Making sure the mail is not trapped in any spam filters. I read on the internet it is best to sent the mail directly from the web server and not route via an SMTP mail service such as google apps or Postini.
Can anyone tell me if this is correct?
First of all
Making sure the mail is not trapped in
any spam filters
Is not possible - otherwise spammers would do this. You just have to make sure you're domain isn't associated with any spamming activities and watch for keywords within the email.
I read on the internet it is best to
sent the mail directly from the web
server and not route via an SMTP mail
service such as google apps or
Postini.
This point doesn't make sense - your e-mail will never be delivered if it doesn't get routed via an SMTP server, the average message will pass through multiple on its route to the recipient.
The answer is to not actually send email and let someone else deal with the problem. I'd look at postmark or Amazon's simple email service.
We had problems that mails sent with local server often get trapped in spam filters until we implemented SPF on our mail server.
http://en.wikipedia.org/wiki/Sender_Policy_Framework
But I am not admin, that's just what our admin said, and after that we have no problems anymore.
btw. maybe would be better to ask on serverfault.com

Categories

Resources