Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.7.0
-
None
-
OS: Windows 10
-
b07a06745eb79057ccc08bc908b2df866bc38ac0 (qtbase/5.9, 22.3.2017, 5.9)
Description
On Windows 10 when I try to send email like QDesktopServices::openUrl(QUrl("mailto:?to=example@gmail.com&subject=Subject&body=Body", QUrl::TolerantMode)) Qt does nothing until I install email client and returns true. If in system installed any email client it will be opened.
Also tested on Windows 8, and if there are no any email clients it will open standard window which program should be used(Select program.png). And print debug output: "Cannot launch 'mailto:?to=example@gmail.com&subject=Subject&body=Body': There is no mail program installed."
5.7.0 Windows 10 HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\mailto\UserChoice Progid="" HKEY_CLASSES_ROOT\mailto\shell\open Command/.=""C:\WINDOWS\system32\rundll32.exe" "C:\WINDOWS\system32\url.dll",MailToProtocolHandler %l" url=QUrl( mailto : ?to=example@gmail.com&subject=Subject&body=Body ), valid=true ok= true
5.4.2 Windows 8 HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ mailto\UserChoice Progid="" HKEY_CLASSES_ROOT\mailto\shell\open Command/.="" url=QUrl(mailto : ?to=example@gmail.com&subject=Subject&body=Body) , valid= true Cannot launch 'mailto:?to=example@gmail.com&subject=Subject&body=Body': There is no mail program installed. ok= true
Attachments
For Gerrit Dashboard: QTBUG-57816 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
181136,2 | Windows QPA/Services: Do not invoke MailToProtocolHandler of url.dll | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |