Posts Tagged ‘SMTP’

Advanced Scriplaculous Sortable Demo Fix

Monday, April 20th, 2009

Heh.

There is a good example of using nested Scriplaculous Sortables. With one little flaw – Scriplaculous ver 1.6.x is used, and when you try to execute the code with newer version of library – sections.each is not a function error pops up.

Here is the way to fix it – you’ll probably need it if you want to save the results :-D

Just replace “document.getElementsByClassName(‘section’);” to “$$(‘.section’);”

Before

function getGroupOrder() {
	var sections = document.getElementsByClassName('section');
	var alerttext = '';
	sections.each(function(section) {
		var sectionID = section.id;
		var order = Sortable.serialize(sectionID);
		alerttext += sectionID + ': ' + Sortable.sequence(section) + '\n';
	});
	alert(alerttext);
	return false;
}

After

function getGroupOrder() {
	var sections = $$('.section');
	var alerttext = '';
	sections.each(function(section) {
		var sectionID = section.id;
		var order = Sortable.serialize(sectionID);
		alerttext += sectionID + ': ' + Sortable.sequence(section) + '\n';
	});
	alert(alerttext);
	return false;
}

Then modify it for your needs and go on )

What was that?
Quote:

As of Prototype 1.6, document.getElementsByClassName has been deprecated since native implementations return a NodeList rather than an Array.

Popularity: 31% [?]

Sendmail for Windows Freeware

Monday, August 6th, 2007

I was looking for a windows (I mean win32) command-line send mail utility, something like Unix’s SendMail. And again – all I find worth $$. But when I look harder – I found two little utilities. They’re almost perfect.

1. Blat

Product that may cover most of your needs. Not a sendmail itself, but this is what most people mean when said “sendmail, windows, freeware”. Send your messages from command line, from batch files, from scripts etc. Authorisation and all the stuff is onboard. Opensource. C++. SourceForge based management. Active development.

What is Blat (and what does it do)? Blat is a small, efficent SMTP command line mailer for Windows. It is the SMTP *sending* part of an eMail User Agent (MUA) or eMail client. As such, Blat sends eMail via SMTP (or internet eMail) from the command line, or CGI, …

What is Blat not? Blat is NOT a drop in replacement for the Unix SENDMAIL, MAIL, MAILX utilities (or for that matter, any other eMail tool you can think of). A Perl script written to use these, for example, will not work without some tweaking.

You can download fresh Blat (sorta freeware sendmail for windows) from here: Blat’s download page.

2. Free SendMail Utility for Windows

Simplier one freeware sendmail utility – from John Wood, and it’s in v0.1 Beta state, and seems like author will not support it anymore ever (he called it a 10 minuter in 2005), and it’s written in C# (i.e. if you don’t have dotnetfx installed – so now you have to), but: a) it works; b) it’s simplier than blat; c) it small; d) it’s opensource.

The thing is, .Net gives you everything you need to send email, in an SmtpMail class. To send mail from the command line, I just had to expose this class – and how difficult could that be?! It had to be another 10 minuter.

So once again I did it myself. To save others the hassle of searching through google, or paying cash, I’ve compiled it into a simple command-line utility and put it up on my website.

Sure it’s nothing fancy, but it appears to get the job done from the limited testing I’ve run.

You can download Free SendMail Utility for Windows (a simple freeware sendmail for windows) from here: Free SendMail’s download page.

As for me – the first one is the best.

Hope I helped you to find what you want ;)

Popularity: 60% [?]


Switch to our mobile site