I am trying to create a bash script that will allow me to send a batch of emails out. I am using Cygwin, Windows XP and Thunderbird 3.1.3. I have the script generating an email just fine. The problem that I am having is that I have several email accounts set up in Thunderbird, and I wish to use a different account than the one that is selected by the command line. I only have one profile set up.
The command line that I arrive at is as follows:
thunderbird -compose "to=$strEmailAdd,subject=$SUBJ,attachment='file:///d:/docs/attach/file_to_attach.doc',body='$BODY'"
Is there a way to specify the account that the email is coming from or at the very least, specify a 'from' address? I have tried using "from" and "reply-to" as fields to no avail.
$SUBJand$strEmailAddin the same code is ugly. – grawity Sep 17 '10 at 13:39$SUBJand$BODYare constants.$strEmailAddis not. That is why I did it that way. – Buggabill Sep 17 '10 at 15:28