Hey c'mon, whats this guy doing ? This site doesnt have a continuity to the previous topics .. is that what you think when you read the articles from here ? Then hold on !! I am just trying put all the info I got in my mind and I have to do and then do the reordering .. SO JUST HOLD ON :)
Ok.. I have a quick example of sending a mail using sendmail utility of Linux / Unix. You get lots of examples when you do google ofcourse. Here's my example:
1. To check if sendmail is up and running:
$ ps -ef grep sendmail
2. If it not started, start the service using root user:
# service sendmail start
3. To send a mail, use this syntax:
$ sendmail < Enter_email_address >
< write the mail here i.e., body >
Press Control+D to run the save the mail and send.
Now the mail will go. If you need to send some HTML File or use cc or bcc, easiest way is to create a HTML file and send it. You can follow these steps:
1. Create a HTML file as follows:
$ vi a.html
To: Pavan.Pvj@gmail.com
Subject: Workflow Test from Sendmail
Mime-Version : 1.0
Content-Type: text/html;
charset=us-ascii
Content-Transfer-Encoding: 7bit
<html> <head> <title> Oracle Workflow Notification </title> </head>
<body>
<font color="red" size="7"> HELLOOO WORLD </font>
</body> </html>
-- Save this file.
2. Now, use sendmail to send this HTML File. The To, CC, Subject and other details are automatically parsed by the sendmail utility. So, use the following syntax to send the mail:
$sendmail -oi -t <a.html
Tuesday, August 07, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment