Giter Club home page Giter Club logo

socketlabs-go's People

Contributors

bernardharrison avatar billvolz avatar david-schrenker avatar joesocketlabs avatar macuenca avatar mattreibach avatar mboshu avatar praneethchandrathota avatar ryan-lydz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

socketlabs-go's Issues

Sending duplicates with multiple file attachments

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.
email

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.