|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi all,
I need some with unix shell scripts. i am trying to e-mail a html file as an attachment. I am using this code: rpt_mail=xyz@abc.com file=/home/usrid/test.htm subject=status report do_mail() { cat ${file} | mailx -s "${subject}" ${rpt_mail} } do_mail The problem with the above code is i am seeing all the html tags in the body of the e-mail. I want to see the html page in the body of the e-mail wthout any tags. Can any one know how to do this.. Thanks alot, Raj |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
rajesh.vadde@gmail.com wrote:
> Hi all, > > I need some with unix shell scripts. i am trying to e-mail a html > file as an attachment. I am using this code: > > rpt_mail=xyz@abc.com > file=/home/usrid/test.htm > subject=status report > > do_mail() > { > cat ${file} | mailx -s "${subject}" ${rpt_mail} > } > > do_mail > > > The problem with the above code is i am seeing all the html tags in the > body of the e-mail. I want to see the html page in the body of the > e-mail wthout any tags. Can any one know how to do this.. You will have to mime encode your html stuff before you pipe it to mail. cheers Erich |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
rajesh.vadde@gmail.com wrote:
> Hi all, > > I need some with unix shell scripts. i am trying to e-mail a html > file as an attachment. I am using this code: > > rpt_mail=xyz@abc.com > file=/home/usrid/test.htm > subject=status report > > do_mail() > { > cat ${file} | mailx -s "${subject}" ${rpt_mail} > } > > do_mail > > > The problem with the above code is i am seeing all the html tags in the > body of the e-mail. I want to see the html page in the body of the > e-mail wthout any tags. Can any one know how to do this.. Use "mutt" or "nail" instead of mailx if possible. Both have switches that allow you to attach a file (as opposed to inserting it into the body). Google is your friend. -- James |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Hallo, Centurion,
Du (spam_this) meintest am 25.09.06: >> do_mail() >> { >> cat ${file} | mailx -s "${subject}" ${rpt_mail} >> } >> >> do_mail > Use "mutt" or "nail" instead of mailx if possible. Both have > switches that allow you to attach a file (as opposed to inserting > it into the body). Slackware now distributes the former "nail" as "mailx" ... Viele Grüße! Helmut |
|
![]() |
| Outils de la discussion | |
|
|