Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email from VFP
Message
From
27/02/2003 22:34:35
 
 
To
27/02/2003 16:37:54
Peter Easson
Catalina Trading
Sydney, Australia
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00758552
Message ID:
00759235
Views:
20
Hi Pete

Actually the problem I am having is to get the email to be sent by running an app in the win2k server scheduler. I can do it from within VFP, but not so far from the scheduler, (which runs it like a service with NO user interface etc.),using win2k CDO objects.

Thanks 4 your input. I would much prefer a VFP solution rather than using and external dll or the MAPI activeX.

Bernard

>Hi Bernard,
>The best solution I found was with a free dll from http://www.aspemail.com. Go to the download page.
>This dll does NOT require any email client to be installed (as with using MAPI). It goes like this.
>
>oMail = CreateObject("Persits.MailSender")
>oMail.Host = "yourSMTPServer@somewhere.com"
>oMail.FromName = "Bernard Bout"
>oMail.From = "bernard@ut.com.au"
>oMail.AddAddress("pete@pcprof.com.au","Peter Easson")
>oMail.IsHTML = .t.
>oMail.Body = "<HTML><BODY BGCOLOR=#0000FF>Hello World</BODY></HTML>"
>oMail.Attachment("C:\MYErrorTable.DBF")
>oMail.Send
>** Check aError()
>
>oMail.Reset and loop again
>Unlimited recipients, attachments etc
>regards
>
>Peter Easson, Sydney
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform