Hi Pete,
I have been thinking about doing this very same thing versus installing an already premade package. It seems the advantage to me was to be able to use existing database of email addresses in my system. I also would like to process an incoming mail message and turn it into an outbound distribution message but would need to limit the inbound message processed to only those from valid senders. Have you found any other limitations to what you are doing other than what you posted here?
Tim
>Hi All, I'm trying to send a monthly newsletter by email to a local club I'm a member of, we are about fifty in number, in testing I decided to send it to myself fifty times, the problem I'm having is the mail server chokes on iteration 25 - the error being: Too many messages, I've tried inserting a Sleep(1000) but it doesn't help- any ideas ? this is the main guts of the prog
>
>
>
>for (i = 1; i < 1000; i++)
> {
>
> client = new SmtpClient();
> client.Host = MailServer;
> client.Timeout = 50000;
>
> from = new MailAddress(MailSender);
> to = new MailAddress(MailRecipient);
>
> message = new MailMessage(from, to);
>
>
>
>
> StringBuilder messagetext = new StringBuilder();
>
> messagetext.AppendFormat("This is message # {0}", i);
>
>
> message = new MailMessage(from, to);
>
> message.Subject = "Testing bulk email";
>
> message.Body = messagetext.ToString();
>
> client.Send(message);
> }
>
Timothy Bryan