BookmarkSubscribeRSS Feed
JaySwan
Calcite | Level 5

I am working on a project that requires me to send out hundreds of emails from SAS.
I am able to create and attach attachments and send out the email via SAS, no problem there.

The problem is there are images that need to be added to the body of the email.

One thought is to have all these images placed on a DMZ web server and have me use html tags to point to the images...

However the email body is already a 'Outlook Form' (not familiar with forms in outlook) and if I can just access the form in my SAS code that would be great.

I have been poking around for papers on including a 'Outlook Form' but have not had any luck as of yet.

Is it possible to access a 'Outlook Form' stored in Outlook(?) from SAS code?

TIA, Jay

1 REPLY 1
JaySwan
Calcite | Level 5

Update

Something like this.... ( a lot of HTML cut do to inclusion of Outlook Form )

data _null_;

file outbox

     to = ('x@x.com')

       from = ("x <x@x.com>")

       sender = ("x <x@.com>")

     subject = 'TESTING: xxxxxxx'

     attach  = "some local location of an attachment…..."

     OutlookForm = ‘IsThisPossible’ (Want to display this pre-built Outlook Form)

     ;

run

Possible?

J

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 1 reply
  • 1446 views
  • 0 likes
  • 1 in conversation