- Tracy Lamb
- PowerBuilder
- Thursday, 13 September 2018 10:22 AM UTC
Hi all, wasn't sure how to properly phrase this question. I'm trying to add email several places in my app. The email code structure is:
CREATE the mailSession
LOGON to the mailSession
LOOP THROUGH ALL reports...
Generate and save the PDF
Populate mailFileDescription object (attachment object)
Populate the mailMessage object
Send the email
LOGOFF the mailSession
DESTROY the mailSession
When logging on with lm_session.mailLogon ( mailNewSession! ), the Outlook "Select Profile" dialogue box always shows up. Even if I've already got Outlook open or if there is only one profile to choose from.
Is there a way to make this "invisible" to the user? Maybe automatically select the default profile if there is more than one? I don't want the user to have to "Select a Profile" every time they send an email.
Also, is there a way to get the email I'm sending to include Outlook's automatic signature at the end of the email if one is defined?
TIA,
Tracy
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.