cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MegaMailSender Methods

cnisparnorddk
Super Contributor

How can I find the VB API-documentation for the methods existing on CurrentEnvironment.Toolkit.MegaMailSender ?

I need to CC on a mail

5 Replies

I don't understand why MEGA hasn't documented their VB API. 

When developing VB scripts you can not expect the customers to guess methods into your API

But this is Java. I'm looking for the VB documentation from MEGA. 

I can't find it

There is also this method that might help you.

 

rsutcliffe_0-1676698120807.png

 

rsutcliffe
MEGA
MEGA

Hello,

 

In the online Mega docs you can find the section that links you to the API documentation. Both links are pasted below.

 

HOPEX Docs

https://doc.mega.com/hopex-v4-en/#page/MTS2/API/garde_APIJava.html 

 

API Docs

https://doc.mega.com/javadoc/mj_toolkit/

 

I have also attached a screenshot of the specific method that I believe you are looking for. I hope that this helps.

 

Kind regards,

alaaeid
MEGA Partner
MEGA Partner

Hi,

 

Don't have documentation, but best i can do is share this script in case you need something like this urgently.

 

strEMail1 = xxx@mega.com

strEMail2 = jsmith@mega.com

Set omailer = CurrentEnvironment.Toolkit.MegaMailSender

omailer.Subject = "Test of mail sending (subject)"

omailer.Sender = strEMail1

omailer.EnableHtml = TRUE

omailer.Body = "Test of mail sending (body)"

omailer.Recipients.Insert strEMail2

print omailer.SmtpSend