Rob Russell
Rob Russell

Reputation: 472

How do you email source code without getting flagged as spam?

When replying to a post (for example on Craiglist) that asks for sample code, is there a way to be (reasonably) sure of delivery?

Here's the problem, stated as possible options and the negative outcomes:

  1. Link to the source code on an external site. In this case, there's a spam score metric based on number of external links that you could hit. Often your signature might contain a link.

  2. Attach it in a zip. Zip files are often considered in spam metrics and in some cases are just outright removed. This also creates an extra step for the recipient which isn't much but has to be multiplied by the number of received responses.

  3. Attach it as source code files. This one I'm not sure of but I suspect that some source code types, like javascript, could get flagged.

  4. Inline the source code. This is messy for anything over a couple lines and I expect could be problematic if your source includes html, javascript or even urls.

So those are all the ideas I have and none are optimal or give me a good feeling my email will show up looking as I intend. Has anyone solved this problem already?

Clarification: This is about a first-time email. So the person you're replying to has given their contact info but has never received an email from you and may be receiving numerous replies a lot like yours.

Upvotes: 1

Views: 1725

Answers (6)

Dean J
Dean J

Reputation: 40358

A zip file seems fine. It shouldn't get flagged unless there are executables in it. If you have an externally linkable SVN repository, that'd be ideal for some companies, and overkill for others.

Upvotes: 0

Mark
Mark

Reputation: 5653

Personally I like:

http://www.sourcepod.com/ or http://pastebin.com/

Upvotes: 0

TalkingCode
TalkingCode

Reputation: 13567

I don't send code as email. I put my stuff online using Dropbox and send a download link only.

http://www.dropbox.com/

Works perfectly for me and my team.

Upvotes: 0

Jay
Jay

Reputation: 484

If it's only one file just rename it as a text file.

Upvotes: 1

miku
miku

Reputation: 188144

I prefer links to external services or my own server, where the code is usually browsable, syntax-highlighted, etc ..

Upvotes: 2

Gabriel Sosa
Gabriel Sosa

Reputation: 7956

I usually send a link to my SVN repository. another option is pastebin

Upvotes: 6

Related Questions