abattoir
2nd April 2013, 00:32
Hi,
I know this has been discussed a lot regarding Email from Unix, but i have a slight different requirment.
I am using Mutt utility to send out emails from my customized session.
My requirement is to send an email with subject line as "New Sales Order 123456 Created" where 123456 is the order number just created and i am finding it very difficult to pass this order number in my subject line.
The Mutt Email syntax is as follows :
mail.str = "/opt/csw/bin/mutt -s ""New Sales Contract Created"&str$(orno)" -a /tmp/Dealers_New_Requirement.xls abc@gmail.com < /home/bsp/pickmailbody.txt"
where s is for subject
a = attachment file path
/home/bsp/pickmailbody.txt = body text
orno = variable storing new created order
The subject line is not fetching the value of order from variable and hence i am failing to achieve my objective.
Regards,
Abattoir
I know this has been discussed a lot regarding Email from Unix, but i have a slight different requirment.
I am using Mutt utility to send out emails from my customized session.
My requirement is to send an email with subject line as "New Sales Order 123456 Created" where 123456 is the order number just created and i am finding it very difficult to pass this order number in my subject line.
The Mutt Email syntax is as follows :
mail.str = "/opt/csw/bin/mutt -s ""New Sales Contract Created"&str$(orno)" -a /tmp/Dealers_New_Requirement.xls abc@gmail.com < /home/bsp/pickmailbody.txt"
where s is for subject
a = attachment file path
/home/bsp/pickmailbody.txt = body text
orno = variable storing new created order
The subject line is not fetching the value of order from variable and hence i am failing to achieve my objective.
Regards,
Abattoir