WilliamasKumeliukas Posted August 29, 2014 Posted August 29, 2014 (edited) is it possible to modify the size and color of letters in body text? so when i receive a email, the body text will be in different sizes and colors chosen in the script. if yes, how could it be done? Thanks Regards, AutomateLover Edited August 29, 2014 by AutomateLover Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
Developers Jos Posted August 29, 2014 Developers Posted August 29, 2014 Use _INetSmtpMailCom() found in Examples forum and use HTML. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
WilliamasKumeliukas Posted August 29, 2014 Author Posted August 29, 2014 im using inetsmtpmailcom atm but im not familliar with html codes :S Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
water Posted August 29, 2014 Posted August 29, 2014 As a good starting pint check W3Schools for HTML. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
WilliamasKumeliukas Posted August 29, 2014 Author Posted August 29, 2014 my whole body text is from lots of variables I'm just wondering how I can use the hmtl code into a specific variable so it wont affect others. Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
water Posted August 29, 2014 Posted August 29, 2014 Simply insert the variable wherever needed into HTML tags. $sText = "bold" $sText = "<HTML><Body>This is <b>" & $sText & "</b> text.</body></html>" My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
WilliamasKumeliukas Posted September 2, 2014 Author Posted September 2, 2014 how can I keep the email "proper" while using <HTML><Body> with all my @CRLF working? Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
water Posted September 2, 2014 Posted September 2, 2014 Replace @CRLF with the corresponding HTML tags. Either <p> for a new paragraph or <br> for a line break. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
WilliamasKumeliukas Posted September 2, 2014 Author Posted September 2, 2014 Replace @CRLF with the corresponding HTML tags. Either <p> for a new paragraph or <br> for a line break. how come it affect my whole body text even the parts that are outside of the HTML codes? Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
WilliamasKumeliukas Posted September 2, 2014 Author Posted September 2, 2014 (edited) sorry for double posts but here is my body text in my script, I just want to put a bigger font size and red color on $srvname to $tsrv variable. $Body = $space1 & @CRLF & $space2 & _ @CRLF & @CRLF & @CRLF & @CRLF & "@@@@@@@@@@ Part One @@@@@@@@@@" & @CRLF & @CRLF & @CRLF & _ $mastername & $cmaster[0] & " " & $cmaster[1] & $time & $tmaster & _ @CRLF & @CRLF & $p99name & $cp99[0] & " " & $cp99[1] & $time & $tp99 & _ @CRLF & @CRLF & $srvname & $csrv[0] & " " & $csrv[1] & $time & $tsrv & _ @CRLF & @CRLF & $tsname & $cts[0] & " " & $cts[1] & $time & $tts & _ @CRLF & @CRLF & @CRLF & @CRLF & "@@@@@@@@@@ Part Two @@@@@@@@@" & @CRLF & @CRLF & @CRLF & _ $mastername & $cmaster2[0] & " " & $cmaster2[1] & $time & $tmaster2 & _ @CRLF & @CRLF & $p99name & $cp992[0] & " " & $cp992[1] & $time & $tp992 & _ @CRLF & @CRLF & $srvname & $csrv2[0] & " " & $csrv2[1] & $time & $tsrv2 & _ @CRLF & @CRLF & $tsname & $cts2[0] & " " & $cts2[1] & $time & $tts2 Edited September 2, 2014 by AutomateLover Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
water Posted September 2, 2014 Posted September 2, 2014 The whole mail body is taken as HTML. When a Browser or Mail client formats HTML then all @CRLF and spaces are ignored. So your text should look like: $Body = $space1 & "<br>" & $space2 & _ "<p>" & "@@@@@@@@@@ Part One @@@@@@@@@@" & "<p>" & _ $mastername & $cmaster[0] & " " & $cmaster[1] & $time & $tmaster & _ "<p>" & $p99name & $cp99[0] & " " & $cp99[1] & $time & $tp99 & _ "<p>" & $srvname & $csrv[0] & " " & $csrv[1] & $time & $tsrv & _ "<p>" & $tsname & $cts[0] & " " & $cts[1] & $time & $tts & _ "<p>" & "@@@@@@@@@@ Part Two @@@@@@@@@" & "<p>" & _ $mastername & $cmaster2[0] & " " & $cmaster2[1] & $time & $tmaster2 & _ "<p>" & $p99name & $cp992[0] & " " & $cp992[1] & $time & $tp992 & _ "<p>" & $srvname & $csrv2[0] & " " & $csrv2[1] & $time & $tsrv2 & _ "<p>" & $tsname & $cts2[0] & " " & $cts2[1] & $time & $tts2 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
WilliamasKumeliukas Posted September 2, 2014 Author Posted September 2, 2014 (edited) ok thanks Edited September 2, 2014 by AutomateLover Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
WilliamasKumeliukas Posted September 2, 2014 Author Posted September 2, 2014 (edited) since I use alot of conditionals, I want it to have red font color on the full line only if a specific file doesn't exists, how could I do this? here is my conditionals related to srv and what i've done so far: $asrv = _FileListToArray("E:\BKP\ESX1\SRV\","*",2,True) If Not FileExists($asrv[1] & "\SRV-flat.vmdk") Then $dsrv = FileGetTime("C:\Dropbox\BKP\trap.txt") $srv = FileGetSize("C:\Dropbox\BKP\trap.txt") $tsrv = $dsrv[0] & "-" & $dsrv[1] & "-" & $dsrv[2] & ' ' & $dsrv[3] & "h " & $dsrv[4] & "min " & $dsrv[5] & "sec" $csrv = _ConvertSize($srv) $srvname = '<font color="#FF0000">SRV-flat.vmdk: </font>' Else sleep(50) $dsrv = FileGetTime($asrv[1] & "\SRV-flat.vmdk") $srv = FileGetSize($asrv[1] & "\SRV-flat.vmdk") $tsrv = $dsrv[0] & "-" & $dsrv[1] & "-" & $dsrv[2] & ' ' & $dsrv[3] & "h " & $dsrv[4] & "min " & $dsrv[5] & "sec" $csrv = _ConvertSize($srv) $srvname = "SRV-flat.vmdk: " EndIf Edited September 2, 2014 by AutomateLover Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
WilliamasKumeliukas Posted September 2, 2014 Author Posted September 2, 2014 (edited) if someone know how, it would be really appreciate if he's could help me i'm kinda stuck. I just want to set text with red color on output of my variables. Regards Edited September 2, 2014 by AutomateLover Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
water Posted September 2, 2014 Posted September 2, 2014 What do you get right now? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
WilliamasKumeliukas Posted September 2, 2014 Author Posted September 2, 2014 (edited) it returns the file size and his last modified date. I volountarly edited the file name so he's always returns to the right part. theres is what I receive on my email: SRV-flat.vmdk: 1.46 MB / Date du backup: 2009-09-29 12h 49min 53sec I want it to be the full line red color. Edited September 2, 2014 by AutomateLover Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now