Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Need help with Qt QActive and Outlook
Forum Updated to NodeBB v4.3 + New Features

Need help with Qt QActive and Outlook

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 621 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrUNOwen
    wrote on last edited by MrUNOwen
    #1

    Context: I generally program under Linux so most of this is new territory for me.

    So I have a destination email, a template in html (w/ jpg images) for the body of the email and using Qt I want to open Outlook with a draft containing template in the body and the ' to: ' field set to the destination email.

    I see documentation about QActive and some sort of dump process to get the outlook object, but I don't see any documentation about the methods of the Outlook object. Being that I don't see any QOutlook object, I'm guessing I have to rely on some sort of MS documentation, but don't know what to look for or what programming language it's in for that matter. Any pointers?

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, I'm sure you can do it in ActiveQt but have you looked at QDesktopServices ? I've used it to send simple text-only emails from Outlook. To test it, create a vanilla Widgets app, then in mainwindow.cpp add:

      #include "QUrl"
      #include "QDesktopServices"
      

      Then add this line after ui->setupUi(this):

      QDesktopServices::openUrl(QUrl("mailto:test@test.com?subject=Testing from Qt&body=Hello\nThis is line 2", QUrl::TolerantMode));
      
      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved