[Closed]XSimpleMailMessage.setOriginator not changing sender
Posted: Thu Mar 30, 2017 7:50 am
I am setting up a system to send an email to a number of people. On my Fedora 25 system, I use Evolution mail. In this I have two accounts: my personal account and one for a club I belong to.
I want the emails to have the sender address set to that of my club account.
This is my code:
subInspect uses MRI and I can see that the Originator is correctly set to the club email address. When I let the code continue, the resulting email created by Evolution instead has my personal account as the sender.
Is this known behaviour, or am I doing something wrong? "8-[
I want the emails to have the sender address set to that of my club account.
This is my code:
Code: Select all
Sub subSendEmail(strRecipient As String, strSender As String, strSubject As String, strMessage As String)
Dim objClient As Object
Dim objMessage As Object
objClient = createUnoService("com.sun.star.system.SimpleCommandMail")
objMessage = objClient.createSimpleMailMessage()
objMessage.setRecipient(strRecipient)
objMessage.setOriginator(strSender)
objMessage.setSubject(strSubject)
objMessage.Body = strMessage
subInspect(objMessage)
objClient.sendSimpleMailMessage(objMessage, 2)
End Sub
Is this known behaviour, or am I doing something wrong? "8-[