Hi All - I've encountered a scenario where I need to keep a certain word bold in an entire paragraph while sending an automated email using SAS.
Here is an example.
Hi all this your new colleague John Doe and he has 8 years of experience as Financial Analyst. You can fin his contact details in our intranet.....
Some one posted a scenario related to converting texting bold in an email and one of you guys posted the following link for reference. I looked at it and I do not think it is going to work for my scenario as the solution mentioned in the PDF is to use html tags and convert entire line in bold/colored not a single word.
I also have another question. Is it possible to keep a hyper link under the work in intranet in above example?
Below is the link I've mentioned.
060-2010: SMTP Email Access Method: Hints, Tips, and Tricks (sas.com)
It would be great if you could help with this issue. Thanks in advance!
I hope this can help you
filename memo Email
To= ("xxx@abc.com")
From="abc@xxx.com"
subject = "abc test"
Type='TEXT/HTML'
Content_type='TEXT/HTML';
data _null_ ;
file memo ;
put "Bonjour,";
put /;
put '<b><i><p><font color="#0000ff">
// Cet email est pour un test
</font></i></b></p>';
put 'Hi all this your new colleague <b><font color="#ff0000">John Doe</font></b> and he has 8 years of experience as <b><font color="#ff0000">Financial Analyst</font></b>. You can fin his contact details in our intranet.....';
put '<br>';
put '<a href="https://communities.sas.com/t5/SAS-Programming/">Exemple hyper link: click here</a>';
put '<br>';
put "_______________________________________<br>";
put "kelxxx<br>";
run;
filename memo clear;
> use html tags and convert entire line in bold/colored not a single word.
Just move the HTML tags to where you want the text formatted?
Hi all this your new colleague <b>John Doe</b> and he has
I hope this can help you
filename memo Email
To= ("xxx@abc.com")
From="abc@xxx.com"
subject = "abc test"
Type='TEXT/HTML'
Content_type='TEXT/HTML';
data _null_ ;
file memo ;
put "Bonjour,";
put /;
put '<b><i><p><font color="#0000ff">
// Cet email est pour un test
</font></i></b></p>';
put 'Hi all this your new colleague <b><font color="#ff0000">John Doe</font></b> and he has 8 years of experience as <b><font color="#ff0000">Financial Analyst</font></b>. You can fin his contact details in our intranet.....';
put '<br>';
put '<a href="https://communities.sas.com/t5/SAS-Programming/">Exemple hyper link: click here</a>';
put '<br>';
put "_______________________________________<br>";
put "kelxxx<br>";
run;
filename memo clear;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.