
December 9th, 2010, 04:05 AM
|
|
Contributing User
|
|
Join Date: Nov 2005
Posts: 62
Time spent in forums: 1 Day 2 h 45 m 24 sec
Reputation Power: 8
|
|
Hi..
Thank for your reply..
Actually, i can sent the email right now with HTML formatted. But, i do not know how to sent the attachment file from my code. My code as below:-
Code:
To: "BAHARIN HASAN"<baharin.hasan@gmail.com>
from: "DATAONE SDN BHD"<admin@dataone.asia>
Subject: test
Content-Type: text/html
charset="us-ascii"
<html>
<head>
<title>Your Page Title</title>
</head>
<body>
<center>
<table border=0>
<tr>
<th><img border=0 src=/images/pulpit.jpg alt=Pulpit rock width=67 height=92 /></th>
<th><p> </p><h2>Bill Statement</h2></th>
</tr>
<tr>
<td><h4>Dear <ASMAH_AHMAD>,</h4>
<p>Thank you for your valued subscription to our<br/>
services.Your TM bill statement is now attached as <br/>
an Adobe PDF file in this email.</p>
<p>Thank You</p></td>
<td><p>Account No.</p><p><12345></p>Statement Date.<p><12/12/2010></p></td>
</tr>
</table>
<center><img src=example.jpg alt=example/></center>
</center>
</body>
</html>
I am used "sendmail" command and sample command as below:
Code:
cat file.txt |sendmail -t
Thank you,
|