socketlabs / socketlabs-go Goto Github PK
View Code? Open in Web Editor NEWSocketLabs Email Delivery Go Client Library https://www.socketlabs.com
License: MIT License
SocketLabs Email Delivery Go Client Library https://www.socketlabs.com
License: MIT License
Using this simple code fragment for attachments works fine when there is exactly one attachment. If I send two attachments, which I have verified have different content on the disk, I get an email with two distinctly named attachments, but with the same content as the second file.
for _, a := range attachments {
if len(a) == 0 { continue }
att, e := message.NewAttachment(a)
if e != nil {
Log("Error", a, e)
} else {
basic.Attachments = append(basic.Attachments, att)
Log("Email attached", a)
}
}
globalClient.SendBasic(basic)
When I send 2 files, file 1 sized 117kb and file 2 sized 88.7kb, I get two files correctly named but with the same content.
Notice that in the screenshot of the files attached shows different filenames but with the same thumbnail and they do in face have the same content.
If I create two BasicMessages and build and call them using the two files separately, everything works correctly.
I will look into your code and see if I can find the problem, but I wanted to report this first. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.