|
-
Send HTML formatted email
I need to send an HTML formatted email. Eventually I will send it from an
ASP page that looks at a SQL database. The email is another way to send the
ASP page report.
Below is what someone posted here and I use already, but I also need the
addition of inserting an HTML file. I can manually send the HTML file by
choosing insert, file and then choosing "as text" for an HTML file, but I
need to do this programatically and have not found it yet.
thanks
Ed
"Robert" <robert-nabolotnyj@estria.com> wrote:
>
>This works:
>
> Dim oOApp As Outlook.Application
> Dim oOMail As Outlook.MailItem
>
> Set oOApp = CreateObject("Outlook.Application")
> Set oOMail = oOApp.CreateItem(olMailItem)
>
> With oOMail
> .To = "name@domain.com"
> .Subject = "email subject"
> .Body = "email message"
> .Attachments.Add "\\server\drive\folder\filename", olByValue, 1
> .Send
> End With
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks