Sponsored Content
Full Discussion: How to Send email in UNIX
Top Forums Shell Programming and Scripting How to Send email in UNIX Post 302104063 by cooolthud on Tuesday 23rd of January 2007 07:22:43 AM
Old 01-23-2007
Bug How to Send email in UNIX

Hi,

I am new to Shell script programming. Can anyone explain How to Send Mail in UNIX. Can explain in detail please?

Thanks in Advance.


From
Sathish D V.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies

2. UNIX for Dummies Questions & Answers

Send email from unix terminal on Mac OS 10.x

Hello, I want to send email from unix terminal on Mac OS 10.x. I have 2 user accounts on the system - userOne and root. I tried sending an email from userOne to root by entering "mail root". It prompts to enter Subject and the content. It doesn't give any error message, but root doesn't get... (0 Replies)
Discussion started by: hypamw
0 Replies

3. UNIX for Dummies Questions & Answers

Send email where # is in the email address - Using Unix

Hi All, How do I send an email using malix where email address contains a #. I have a email address like this : #test@test.com I want to send email like malix -s "TEST" #test@test.com < SOMEFILE I tried \# but doesn't work. Please let me know how we can achieve this? I am in... (1 Reply)
Discussion started by: jingi1234
1 Replies

4. Programming

Can we send email with C program on Unix?

Hi, I just wanted to know if there is any way to send email using C program on Unix. Thanks for your help! Julie (3 Replies)
Discussion started by: whatisthis
3 Replies

5. Shell Programming and Scripting

send email from unix with attachment

Hello All, This is a common question that I found lot of results in the forums. I am trying to use uuencode to attach a file and send email. I have no issues sending email, but not able to attach any files using sendmail. Is uuencode part of sendmail or does 'uuencode' utility need to be... (1 Reply)
Discussion started by: chiru_h
1 Replies

6. UNIX for Advanced & Expert Users

How to know whether I am able to send email from unix server or not?

How to know whether I am able to send email from unix server or not? I ma trying to send mail to my gmail id using command sendmail -s "Subject" abc@gmail.com Hi How are you? . It showed that You are not allowed to send mail. My question is there any file which contains the list of... (0 Replies)
Discussion started by: siba.s.nayak
0 Replies

7. UNIX for Dummies Questions & Answers

How to send email from HP Unix box

Hi everyone, I am new to HP/UX and I would like to know if there is a way to receive system alerts and logs via email on daily bases. Recently our system crashed due to Hard Disk failure, and since then we are checking ELM every day. I would like to automate that process and have UNIX mail send... (3 Replies)
Discussion started by: eurouno
3 Replies

8. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

9. Shell Programming and Scripting

send email issue in unix

Hi, I am trying to send the contents of a file as email in unix.I am using the below code to do this.But when i get the email i see that SUBJECT and TO is blank. Can you please let me know why it is blank? Also the FROM address comes as admin@myhost. Is there any way i can set FROM to user... (5 Replies)
Discussion started by: vignesh53
5 Replies

10. Shell Programming and Scripting

send email from unix server

HI Guys, I want send email from my script ..and i have tried below command still no luck. ( uuencode $Adm "Test.txt" ) | mailx -s "Test" P***.P****@at***.com mailx -s "test mail" P****.P***@at***.com < $Admin Any other option.... (2 Replies)
Discussion started by: asavaliya
2 Replies
Mail::Send(3)						User Contributed Perl Documentation					     Mail::Send(3)

NAME
Mail::Send - Simple electronic mail interface SYNOPSIS
require Mail::Send; $msg = Mail::Send->new; $msg = Mail::Send->new(Subject => 'example', To => 'timbo'); $msg->to('user@host'); $msg->to('user@host', 'user2@example.com'); $msg->subject('example subject'); $msg->cc('user@host'); $msg->bcc('someone@else'); $msg->set($header, @values); $msg->add($header, @values); $msg->delete($header); # Launch mailer and set headers. The filehandle returned # by open() is an instance of the Mail::Mailer class. # Arguments to the open() method are passed to the Mail::Mailer # constructor. $fh = $msg->open; # some default mailer $fh = $msg->open('sendmail'); # explicit print $fh "Body of message"; $fh->close # complete the message and send it or die "couldn't send whole message: $! "; DESCRIPTION
Mail::Send creates e-mail messages without using the Mail::Header knowledge, which means that all escaping and folding must be done by you! Simplicity has its price. When you have time, take a look at Mail::Transport METHODS
Constructors Mail::Send->new(PAIRS) A list of header fields (provided as key-value PAIRS) can be used to initialize the object. Header fields $obj->add(FIELDNAME, VALUES) Add values to the list of defined values for the FIELDNAME. $obj->bcc(VALUES) $obj->cc(VALUES) $obj->delete(FIELDNAME) $obj->set(FIELDNAME, VALUES) VALUES will replace the old values for the FIELDNAME. Returned is the LIST of values after modification. $obj->subject(VALUES) $obj->to(VALUES) Sending $obj->open(OPTIONS) The OPTIONS are used to initiate a mailer object via Mail::Mailer::new(). Then Mail::Mailer::open() is called with the knowledge collected in this Mail::Send object. SEE ALSO
This module is part of the MailTools distribution, http://perl.overmeer.net/mailtools/. AUTHORS
The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance without commitment to further development. Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce <Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog. LICENSE
Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2007 Mark Overmeer <perl@overmeer.net>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html perl v5.12.1 2010-01-26 Mail::Send(3)
All times are GMT -4. The time now is 06:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy