Ask a Question

Making word Bold with Python script

chaneyc
Occasional Contributor

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? 

1 REPLY 1
rraghvani
Trusted Contributor

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>'

cancel
Showing results for 
Search instead for 
Did you mean: