Macro Android AndrOpen calc

Issues with smartphones, tablets and all portable devices
Post Reply
Kusk
Posts: 5
Joined: Mon Dec 16, 2019 9:55 am

Macro Android AndrOpen calc

Post by Kusk »

Hej, I'm new and Danish
I'd tried to send a email with e-mail adress, subject and body in calc macro, but it wouldn't work in AndrOpen, but in OpenOffice on win10 with Thunderbird

Code: Select all

  eMailAddress = "xx@xxxx.dk"
eSubject = "TEST"
eMailer = createUnoService("com.sun.star.system.SystemMailProvider")
eMailClient = eMailer.queryMailClient()

eMessage = eMailClient.createMailMessage()

eMessage.Recipient = eMailAddress
eMessage.Subject = eSubject
eMessage.Body = "Message"
AttachmentURL = convertToUrl("file:///storage/emulated/0/FOLDER/PDF/") & Filename & restid & ".pdf"

eMessage.Attachement = array(AttachmentURL)
eMailClient.sendMailMessage ( eMessage,0 )' Yes button pressed
'eMailClient.sendMailMessage ( eMessage, com.sun.star.system.MailClientFlags.NO_USER_INTERFACE ) (tried this as well)
Else
  ' No button pressed
End IF
Last edited by robleyd on Mon Dec 16, 2019 11:37 am, edited 1 time in total.
Reason: Add code tags
OpenOffice 4, win10
AndrOpen, Android Lenovo Tablet
User avatar
Zizi64
Volunteer
Posts: 11358
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Macro Android AndrOpen calc

Post by Zizi64 »

Which Email client software do you have on your Android device?
This macro requires a real Email CLIENT software. The webmail services (like the Google mail, Outlook) are not Email client softwares.

(The last MS related Email client software was the "Outlook Express". The "Outlook" is an another, and basicly different software.)
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Kusk
Posts: 5
Joined: Mon Dec 16, 2019 9:55 am

Re: Macro Android AndrOpen calc

Post by Kusk »

Hei
I have tried various mail programs in Android Google Play like Email for Hotmail, Gmail - Email Blue Mail - Microsoft Outlook free for Android and others without success-
On windows I use Thunderbird which is not made for Android and on here it works.
The attachment is ok, but subject and body are missing :-)
OpenOffice 4, win10
AndrOpen, Android Lenovo Tablet
Post Reply