These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

app.Mailmsg code that works with Lotus Notes

carluel
Registered: Nov 14 2008
Posts: 12

Can you pls. help me how I can make a javascript code work with Lotus Notes? My code below works with Outlook but not Notes.

app.mailMsg(false, "fun1 [at] fun [dot] com; fun2 [at] fun [dot] com", "", "",
"This is the subject", "This is the body of the mail.");

THANKS!

My Product Information:
Acrobat Standard 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The Acrobat email functionality works by handing off the email information to the system. Acrobat really has nothing to do with it. It's all about how the system is setup.

Try this. Open up your browser and type this into the URL line:

[b]mailto:Someone [at] MyCom [dot] com[/b]Acrobat does almost exactly the same thing.

On Windows this email handoff is controled by Windows MAPI (the Mail API). If you want the form to work with Lotus Notes then Lotus Notes has to be registered with MAPI as the default email client for the system.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

carluel
Registered: Nov 14 2008
Posts: 12
thomp, thanks for your reply.

My issue actually has something to do with the fields, specifically the "to" field. The script works with Lotus Notes, however, the subject and body text also appears in the "to" field. It does not populate to the right fields.

Can you tell me what I need to modify?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Next time please explain your issue up front. It does not help us when you just say it doesn't work. You also have to explain what's happening. No one can read your mind.

Now before we go any further, what exactly is being written to the "to" field in Lotus notes, verbatim.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

carluel
Registered: Nov 14 2008
Posts: 12
This is what appears in the "to" field:

fun1 [at] fun [dot] com; fun2 [at] fun [dot] com "This is the subject", "This is the body of the mail.")
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Ok, this is definately a bug somewhere, in either Acrobat, Windows MAPI, or Lotus Notes, it's hard to say which.

Take a look at this article and see if the technique explained there, using the submitForm() function, gives you different results. The data submission part is irrelavant. This is just a test to see of the email parts are setup correctly

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/

Also try the same mailto URL building technique with the "app.launchURL()" function.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script