Making word Bold with Python script
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022
10:26 AM
11-07-2022
10:26 AM
Making word Bold with Python script
Hi all,
If I have this script:
def Test(): if SendMail("ClareJ@clarejeffersoncorp.com", "mail.johnsmithcorp.com", "John Smith", "JohnS@johnsmithcorp.com", "Notification", "Hello Clare, Your application is nice.", "C:\\File1.txt", "C:\\File2.txt"): Log.Message("Mail was sent") else: Log.Warning("Mail was not sent")
How can I just make "Notification" Bold?
Labels:
- Labels:
-
Keyword Tests
-
Script Tests
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022
02:02 AM
11-08-2022
02:02 AM
You can not Bold the Subject of an email (SMTP standard for emails), only the Body (https://community.smartbear.com/t5/TestComplete-Questions/Make-specific-work-on-Python-script-bold/m...
If you try the following, it will not work
Subject = '<html><b>Notification</b></html>'
Body = '<html>Test 1<br><b>Hello Clare, Your application is nice.</b><br>Test 2</html>'
