Re: Craig Boyds VFPEXMAPI.fll

Author: Stephen Russell

Posted: 2010-06-15 at 08:51:20

On Tue, Jun 15, 2010 at 7:28 AM, Graham Brown <info@compsys.co.uk> 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 = "dude@where_ever.com";

string strFrom = "me@here.com";

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 = "dude@where_ever.com";

msgMail.Cc = "me@here.com";

msgMail.From = "exaltedOne@123.com";

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: ProFox@leafe.com

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/AANLkTikw548osUWEoEgKe_K4QlTgqzzwheXAme19LW33@mail.gmail.com

** 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.

©2010 Stephen Russell