![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mailx question | melanie_pfefer | Shell Programming and Scripting | 2 | 01-24-2008 10:20 AM |
| MAILX question | dkranes | Shell Programming and Scripting | 3 | 10-31-2007 11:24 AM |
| mailx and uuencode question | ssmiths001 | Shell Programming and Scripting | 1 | 10-21-2005 06:43 AM |
| mailx question | greenguy5 | UNIX for Dummies Questions & Answers | 1 | 10-21-2005 04:07 AM |
| Mailx question | Olivier | UNIX for Advanced & Expert Users | 3 | 08-26-2002 12:21 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Question on mailx
Hello there:
I want to send an e-mail from AIX using mailx. I'm executing the following script (-> witch doesn't work's): ----------------------------------------------- #!/bin/sh echo "<html><body><a href="http://www.myhomepage.com">Link</a></body></html>" >> LOG sleep 5 ! mailx -s "Test Mail HTML Link" mymail@myhomepage.com < LOG # Return 0 for success, non-zero for errors exit $RETURN_STATUS ------------------------------------------------ What i want to do is to send this mail with a link inside so that the receiver could click on that link wich opens Internetexplorer with www.myhomepage.com Could someone give me a hint or tip on this issue? Thank you very much in advance. |
|
||||
|
Now i'm coding:
#!/bin/sh echo "<html><head><meta http-equiv="content-type" content="text/html Content-Disposition: inline charset=windows-1252"><body><a href="http://myhomepage.com">Mensaje</a></body></head></html>" >> "log.html" sleep 5 ! mailx -s "Test Mail HTML Link" myemail < "log.html" # Return 0 for success, non-zero for errors exit $RETURN_STATUS But it still sends plaintext!! |
|
||||
|
this works:
#!/usr/bin/ksh export MAILTO="mymail@mail.com" export SUBJECT="Test Mail" export BODY="/test/log.html" ( echo "To: $MAILTO" echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo "Content-Disposition: inline" cat $BODY ) | /usr/sbin/sendmail $MAILTO exit Thanks to all |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|