- Sverre Tvedt
- PowerBuilder
- Thursday, 15 August 2019 12:41 PM UTC
PB 2017 R3
What am I doing wrong here:
long ll_handle , ll
integer i, li_count
integer li_ole_result
mailreturncode li_ret_mail
li_ret_mail = iole_mail.maillogon("Outlook","")
if li_ret_mail mailreturnsuccess! then
// never happens
return -1
end if
// create the mail
mailmessage lole_message
mailrecipient lmail_recipient
//
lmail_recipient.address = is_mottaker // have tried everything here
lmail_recipient.name = is_mottaker // have tried everything here
lmail_recipient.recipienttype = mailto!
lole_message.recipient[1] = lmail_recipient
lole_message.subject = is_emne
lole_message.notetext = is_tekst
li_ret_mail = iole_mail.mailsend( lole_message )
if li_ret_mail mailreturnsuccess! then
//never happens
return -1
end if
li_ret_mail = iole_mail.maillogoff()
I get mailreturnsuccess! throughout, but nothing arrives in destination mail. This is an attempt to replace an OLE instantiation of Outlook that actually performs. I have set simplemapi in PB.ini - tried both.
regards
sverre
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.