I would like to start by saying this may not be the best group for this
question so if someone could point me to it i would appreciate it.
Anyway my question is i have an Email Manager Program that creates emails
and uses the local smtp host. This seems to work great. But my smtp server
(Windows XP Professional) holds my emails in the Que for sometimes a day and
sometimes a minute. To get them to send quicker i sometimes have to stop the
virtual smtp server and restart it. Is there anything that can be done to do
expedite this process. Below is a snippet of code that actually sends the
email.
MailMessage myEmail = new MailMessage();
myEmail.From = strFrom;
myEmail.To = strTo;
myEmail.Subject = strSubject;
myEmail.BodyFormat = MailFormat.Html;
myEmail.Body = strMsg;
myEmail.Priority = MailPriority.Normal;
if (attachment != "")
{
string [] strSplit = null;
strSplit = attachment.Split(';');
foreach(string s in strSplit)
{
MailAttachment ma = new MailAttachment(fileSystemWatcher1.Path + strID +
"\\" + s);
myEmail.Attachments.Add(ma);
}
Quote:
}
SmtpMail.Send(myEmail);
Thanks,
Bob;