cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment being sent without attachment header

JoaoVieira
Discoverer
0 Kudos
238

Hello,

 

I'm having an issue regarding the sending of emails. The email is correctly sent, but when it reachs in Outlook it comes as a BIN file. The original file is sent as a BIN file, but then it's converted to XLSX in the attachment header (&SO_FILENAME=file.XLSX).

In development and quality systems it's working correctly, but in production it isn't.

Can you advise?

 

Thank you,

Regards,

João Vieira.

Sandra_Rossi
Active Contributor
0 Kudos

(deleted)

Sandra_Rossi
Active Contributor
0 Kudos
What do you mean exactly concerning "it comes as a BIN file"? Also, it's not clear what means "the original file is sent as a BIN file", I guess you mean that the file is obtained from a place where you use a "binary" transfer versus "text".
JoaoVieira
Discoverer
0 Kudos

What I mean is I add the file as an attachment with the attachment type "BIN", but then convert it to XLSX in the header. Below is the code.

    re_document->add_attachmenti_attachment_type    = 'BIN'
                                 i_attachment_subject = 'Subject'
                                 i_attachment_size    = im_xstring_size
                                 i_att_content_hex    lt_list_solix_tab
                                 i_attachment_header  = '&SO_FILENAME=file.XLSX' ).


What happens is, when the email is sent, I receive it as a ".BIN" file instead of a ".XLSX" file.

Follows a screenshot:

JoaoVieira_0-1722002643082.png

 

Sandra_Rossi
Active Contributor
0 Kudos
What about my first question: What do you mean exactly concerning "in Outlook it comes as a BIN file"?
JoaoVieira
Discoverer
0 Kudos

The attachment you see in this screenshot is the attachment I receive in the email.

JoaoVieira_0-1722003457447.png

As you can see it's a ".BIN" file instead of the desired ".XLSX" file

Sandra_Rossi
Active Contributor
0 Kudos
I use i_attachment_type = 'EXT' for any type of binary file (xlsx, pdf, etc.), but I don't know if it solves, and why 'BIN' works or not depending on your systems.

Accepted Solutions (0)

Answers (1)

Answers (1)

JoaoVieira
Discoverer
0 Kudos

Changed!

 

Thanks for the heads up!

Sandra_Rossi
Active Contributor
0 Kudos
Please don't post an answer, which is reserved to propose a solution. Instead click on "Show replies" and then "Comment".