AndroidZero Posted April 14, 2019 Posted April 14, 2019 Hello again, I'm using the _INetSmtpMail from <Inet.au3> but unfortunately it doesn't send <html> content. Ofc I looked up the code in Inet.au3 and found the content-Type entry but I don't know what I have to modify to make it work. Anyone an idea ? $aSend[4] = "From:" & $sFromName & "<" & $sFromAddress & ">" & @CRLF & _ "To:" & "<" & $sToAddress & ">" & @CRLF & _ "Subject:" & $sSubject & @CRLF & _ "Mime-Version: 1.0" & @CRLF & _ "Date: " & _DateDayOfWeek(@WDAY, 1) & ", " & @MDAY & " " & _DateToMonth(@MON, 1) & " " & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & $iBias & @CRLF & _ "Content-Type: text/plain; charset=US-ASCII" & @CRLF & _ @CRLF $aReplyCode[4] = ""
TheDcoder Posted April 14, 2019 Posted April 14, 2019 Try: Content-Type: text/html https://www.wikidata.org/wiki/Q8811#P1163 AndroidZero 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
AndroidZero Posted April 14, 2019 Author Posted April 14, 2019 @TheDcoder Wow that was simple ..😅 Thank you !!!! Now I need to solve one last thing. How I can display special characters "ÄÜÖäüö °!"§$$%&/()=?@€1²³456{[]}\~#-.,|" etc ? The mails I receive and send can only display this ones !"$%&/()=?'_:;>{[]}\~| Most important are the special letter characters "ÄÖÜ"
Nine Posted April 14, 2019 Posted April 14, 2019 Have you tried changing charset to ISO-8859-1 instead of US-ASCII ? AndroidZero 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
AndroidZero Posted April 14, 2019 Author Posted April 14, 2019 (edited) @Nine I checked the charset in my Outlook 2016 Client and it use "Western European (ISO)" by default. So in the end "ISO-8859-1" was the correct charset 🕵️♂️ $aSend[4] = "From:" & $sFromName & "<" & $sFromAddress & ">" & @CRLF & _ "To:" & "<" & $sToAddress & ">" & @CRLF & _ "Subject:" & $sSubject & @CRLF & _ "Mime-Version: 1.0" & @CRLF & _ "Date: " & _DateDayOfWeek(@WDAY, 1) & ", " & @MDAY & " " & _DateToMonth(@MON, 1) & " " & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & $iBias & @CRLF & _ "Content-Type: text/html; charset=ISO-8859-1" & @CRLF & _ @CRLF $aReplyCode[4] = "" This community is the best ! Edited April 14, 2019 by AndroidZero
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