Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REQUEST: sendEmailWithAttachment to accept multiple attachments #2

Closed
davecra opened this issue Dec 12, 2018 · 1 comment
Closed

REQUEST: sendEmailWithAttachment to accept multiple attachments #2

davecra opened this issue Dec 12, 2018 · 1 comment

Comments

@davecra
Copy link
Owner

davecra commented Dec 12, 2018

The easyEws sendEmailWithAttachment function can be updated for multiple attachments. The key is in the sendEmailWithAttachment function the XML needs to be modified with a new block like this for each attachment you want to add:

                '                <t:ItemAttachment>' +
                '                    <t:Name>' + attachmentName + '</t:Name>' +
                '                    <t:IsInline>false</t:IsInline>' +
                '                    <t:Message>' +
                '                        <t:MimeContent CharacterSet="UTF-8">' + attachmentMime + '</t:MimeContent>' +
                '                    </t:Message>' +
                '                </t:ItemAttachment>' +

A new function would need to be created with parameters containing arrays for attachmentNames/mimeContent or an array for new "attachment" class can be used. Either way to keep the current function signature valid, a new function signature would need to be created.

@davecra
Copy link
Owner Author

davecra commented May 1, 2020

This has been been resolved by a recent commit submitted by Vijay Samtani in v1.0.15.

@davecra davecra closed this as completed May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant