Greetings,

If you are using the Boston WorkStation SendMail command here's neat trick
to do this.

 

This works if you are using variables that look like f("ErrMsg")

Also works with DataStation Fields too btw..

 

When you are "learning" the command in BWS- in the Body display type in the
variable name as follows:

{ErrMsg}

 

So the display (not pasting the graphic to be bandwidth kind) would look
like:

---------------------------------------------

Greetings,

While this is normally a very good script, it just generated the following
error:

{ErrMsg}

Regards,

Thom

--------------------------------------------

 

And it will replace {ErrMsg} when the SendMail command executes with the
current value in the variable.

 

Of course you can also do this the "old fashion way" using good old string
concatenation.

 

The SendMail command has the following parameters - message being the "body"

 

SendMail(MailTo As String, Subject As String, Message As String, [From As
String], [Attachment As String], [Server As String], [ID As String], [PWD As
String], [Port As String], [HTML As Boolean = False])


So if I were emailing myself I might do the following:

 

F("errorMsg")=view() ' just getting a screen shot

F("msg")="Greetings," & vbcrfl

F("msg")=f("msg") & "While this is a very good script, it unfortunately ran
into an error:" & vbCrLf

F("msg")=f("msg") & f("ErrorMSG") & vbCrLF

F("msg")="Regards," & vbcrfl

F("msg")="Thom"

 

SendMail [EMAIL PROTECTED], "Oh no! An error!!!!", f("msg"),..

 

Regards,

Thom

 

Thom C. Blackwell

Product Manager

Boston Software Systems

(866) 653-5105 ex 807

www.bossoft.com

 

LEGAL NOTICE Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to
this E-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this E-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately, then delete this
message and empty from your trash.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Walker, Reese
Sent: Friday, October 05, 2007 4:20 PM
To: [email protected]
Subject: [Talk] emailing a variable

 

I am sure this will be an easy question for some of you.  How do I add a
variable that was collected in my script to an email I send at the end of
the script?

 

Thanks,

 

Reese

 

Reese E. Walker
Financial Systems Analyst
Phoebe Putney Memorial Hospital
Albany, GA. 31702
Phone: (229) 312-4259
Pager: (229) 431-7658
Fax: (229) 312-4316

 

  _____  

 


Disclaimer:
The HIPAA Final Privacy Rule requires covered entities to safeguard
certain Protected Health Information (PHI) related to a person's
healthcare. Information being faxed to you may include PHI after
appropriate authorization from the patient or under circumstances
that do not require patient authorization. You, the recipient, are
obligated to maintain PHI in a safe and secure manner. You may not
re-disclose without additional patient consent or as required by
law. Unauthorized re-disclosure or failure to safeguard PHI could
subject you to penalties described in federal (HIPAA) and state
law. If you the reader of this message are not the intended
recipient, or the employee or agent responsible to deliver it to
the intended recipient, please notify us immediately and destroy
the related message.

Reply via email to