Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7885055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:57:45+00:00 2026-06-03T04:57:45+00:00

In a LotusScript agent I create a multi-part mail in MIME, using the MIME

  • 0

In a LotusScript agent I create a multi-part mail in MIME, using the MIME classes. It works, mails are sent correctly.

There’s just one big problem: files with accented characters in their name aren’t correctly transferred. The contents are correct, but the name isn’t. I’ve tried in 100 ways, but either it isn’t possible or I’m doing something completely wrong.

Here’s (part of) my code:

Set Me.mc = Me.mr.createChildEntity()
Set Me.mh = Me.mc.CreateHeader("Content-Disposition")
Call Me.mh.SetHeaderVal(disposition + {; filename="} & attName & {";charset="iso-8859-1"} )
Set Me.mh = Me.mc.CreateHeader("Content-ID")
Call Me.mh.SetHeaderVal( |<| & attName & |>| )
Set stream = Me.session.CreateStream
If stream.Open(attFile) Then
    Call Me.mc.SetContentFromBytes(stream, strContentType & {; charset="iso-8859-1"; name="} & attName & {"}, ENC_IDENTITY_BINARY)
    Call stream.Close
End If

If I create a mail manually in Notes and send the same file it works, but the file’s name is coded. How to pull this one off??

Update:
I added the following function to encode attName:

Function URLEncode(s As String, cset As String) As String
    Dim v As Variant

    v= Evaluate(|@ReplaceSubstring(@URLEncode("| + cset + |";"| + s + |"); "%"; "=")|)
    URLEncode= "=?" + cset + "?Q?" + v(0) + "?="
End Function  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:57:46+00:00Added an answer on June 3, 2026 at 4:57 am

    I could not find any method to encode the parameters.
    Looks like you have to encode the parameter yourself.

    @URLEncode( encodingFormat ; token )
    

    Should encode the string and then yo can add the =?ISO-8859-1?Q? and ?= to the string.

    Or you can use encodeText from the javax.mail.internet package end wrap that in LS2J

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running a Lotusscript Agent on Before mail arrives. I need it to
I'm using COM in LotusScript (Lotus Notes) to make Excel print several sheets in
I want to hide the grand total row in views using @formula or lotusscript.
I am just getting started in web services using Lotus Notes. What I would
I am trying to write a LotusScript to control a motor. The script I
Can we use a lotusscript function as a document selection routine inside view selection
Now CAPICOM is deprecated, and MSDN recommends to use .net classes from System.Security.Cryptography. But
Does anybody know a way to get the behaviour of LotusScript print in a
Some agents in an ancient Lotus Notes application has a difference in agent-enabled behaviour
In lotusscript I'm sending automated emails. I'd like to be able to detect the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.