<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Generating and emailing text files]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Generating and emailing text files of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Mon, 03 Mar 2008 20:06:19 +0200</lastBuildDateTag>		<item>
			<title>Generating and emailing text files</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic5832/message22298/">Generating and emailing text files</a></b> <i>Trying to script an email with attachments and mail it</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Call the file that you create email.tpl (I prefer the .tpl extension to show that it's a template and not a text file or a message) and store it as plain text.<br /><br />And in that template you can use every macro that you can use in any template in TB. You can limit that to Rick's example, but you can also write a complete message.<br /><br />Now start TB with the commandline parameter /mail, would turn out as something like this:<br />"C\Program Files\The Bat!\thebat.exe" MailT=C:\Temp\example.tpl<br /><br />The help file explains this. Look for 'advanced use - command line parameters - /MAIL' <br />
			<i>03 March 2008 20:06:19, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic5832/message22298/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic5832/message22298/</guid>
			<pubDate>Mon, 03 Mar 2008 20:06:19 +0200</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Generating and emailing text files</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic5832/message22290/">Generating and emailing text files</a></b> <i>Trying to script an email with attachments and mail it</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			I have a quick template that does this. There is an entire email body followed by:<br /><br />%TO="name@domain.com"<br />%SUBJECT="Latest Updates %DATEEN"<br />%ACCOUNT="Google Account"<br />%ATTACHFILE="C:\Program Files\file\file.zip"<br /><br /><br /><br /> <br />
			<i>03 March 2008 17:06:39, <a href="http://www.ritlabs.com/en/forums/">Rick G</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic5832/message22290/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic5832/message22290/</guid>
			<pubDate>Mon, 03 Mar 2008 17:06:39 +0200</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Generating and emailing text files</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic5832/message22282/">Generating and emailing text files</a></b> <i>Trying to script an email with attachments and mail it</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Currently I am using Eudora to download emails from an account. &nbsp;The only thing that is really relevant in these emails is the attachments. &nbsp;The great thing that Eudora does is it automatically strips the attachments and puts them into a local directory.<br /><br />The amazing thing that The Bat! can do (that I have not found in any other email application) is that I can specify what directory the attachments can be placed in via a filter.<br /><br />What I also need to do is to send out emails (with attachments). &nbsp;Currently, I can do this via a perl script that creates a text file, and then calls Eudora (which is already running) to create the email, and send it.<br /><br />Currently, my perl script creates a text file named &quot;email.msg&quot; that contains the following text:<br /><br />
====code====
<pre>To: target_email@gmail.com 
Subject: Subject Text goes here 
X-Attachments: C:&#92;Path&#92;to&#92;file&#92;attachment.jpg 

All of the text goes here.
</pre>
=============
<br /><br />It then calls Eudora, and gives it that file on the command line. &nbsp;Eudora picks it up and mails it.<br /><br />I am trying to do this with The Bat!, and it seems possible, but I am having trouble with the file format. &nbsp;It seems to put everything To, Subject, Attachments) into the body of the email, but doesnt give it a recipient or actually attach the files. &nbsp;<br /><br />What is the proper file format/command line syntax to get this to work?<br /><br />Thanks! <br />
			<i>03 March 2008 06:20:16, <a href="http://www.ritlabs.com/en/forums/">Jeremiah Overton</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic5832/message22282/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic5832/message22282/</guid>
			<pubDate>Mon, 03 Mar 2008 06:20:16 +0200</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
	</channel>
</rss>
