On Tue, Jun 15, 2010 at 7:28 AM, Graham Brown <[email protected]> wrote:
> fwiw
>
> I use either Outlook with findwindowpos / timer to look for the annoying 
> security message, a web based perl script and IE automation or this code to 
> call cdosys.dll
>
---------------

I have used this before.

using System.Web.Mail

string strTo = "d...@where_ever.com";
string strFrom = "[email protected]";
string strSubject = "Dude what is taking so long?";

SmtpMail.Send(strFrom, strTo, strSubject,
  "All the crap you want to put here");

or:

MailMessage msgMail = new MailMessage();

msgMail.To = "d...@where_ever.com";
msgMail.Cc = "[email protected]";
msgMail.From = "[email protected]";
msgMail.Subject = "dude, another mail";

msgMail.BodyFormat = MailFormat.Html;
string strBody = "<html><body><b>Hello World</b>" +
   " <font color=\"red\">What is taking so long! </font></body></html>";
msgMail.Body = strBody;

SmtpMail.Send(msgMail);






-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to