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

╄→尐↘猪︶ㄣ 提交于 2019-12-20 03:58:09

问题


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.


回答1:


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




回答2:


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




回答3:


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




回答4:


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.




回答5:


Personally I like:

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




回答6:


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.



来源:https://stackoverflow.com/questions/1809082/how-do-you-email-source-code-without-getting-flagged-as-spam

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!