2
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.
Not on topic, but mixing
$SUBJ
and$strEmailAdd
in the same code is ugly. – user1686 – 2010-09-17T13:39:31.680$SUBJ
and$BODY
are constants.$strEmailAdd
is not. That is why I did it that way. – Buggabill – 2010-09-17T15:28:17.877