Mail error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Mail error
# 1  
Old 07-13-2010
Mail error

Hi All,

I a trying to send a mail from shell script. But it doesn't send the mail to the specified Emailid. Inturn it sends to the Server userid.

Let me know whether i need to include the SMTP server details. If so how?

Code:
 echo "CVS checkout completed" | mail -s "Auto cvs checkout" test.mail@xyz.com

~Vinodh' Kumar
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. Linux

Send-mail: fatal error

Hi guys, i am using the below command to send mail mail -s "HI" abcd@how.com < temp_mail.txt I am getting the below error send-mail: fatal: bad string length 0 < 1: myorigin = My os version is as Linux Help me with ur suggestion guys thank u. (3 Replies)
Discussion started by: mohanalakshmi
3 Replies

3. UNIX for Advanced & Expert Users

Error details in mail

Hi, I have a application that writes log details to a file in a folder. I am trying to write script to send mail to the user whenever the log is appended with "Error" string and details. The user should receive error and error details in mail whenever there is a error in the file. The... (4 Replies)
Discussion started by: maddy26615
4 Replies

4. UNIX for Dummies Questions & Answers

No route to host - mail error

A linux box is supposed to emailing the results of backups to the windows exchange server, but nothing arrives. it never has, as the muppet who set up the Windows domain knew nothing about linux. I know only slightly more than that... pretty sure sendmail is the daemon running to handle mail. it... (0 Replies)
Discussion started by: Noewon
0 Replies

5. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

6. Ubuntu

Error after installing mail server.

Hi all, I'm new here. I already install ubuntu 9.10 and mail server (Dovecot + Postfix + SASL + Squirrel Mail). But after login on squirrelmail. an error message appeared "Error connecting to IMAP server: localhost. 111 : Connection refused". Any solutions? Thanks (1 Reply)
Discussion started by: dnet
1 Replies

7. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

8. HP-UX

-c option gives error in mail

Hi, I am getting illegal option error while using -c to CC in mail. command used: mailx -s "Report" -c xyz@abc.com < /tmp/report Machine: HP UX. Please help me out. Looking you forward. Thanks in Advance. Jagadeesh. (3 Replies)
Discussion started by: bjagadeesh
3 Replies

9. Shell Programming and Scripting

sending mail error.. help

help i get this error when i sending a mail send-mail: fatal: open /etc/postfix/main.cf: No such file or directory Can't send mail: sendmail process failed this is my coding echo "$PRONAME is being restart" | mailxs "Subject:Process" "sally@$THISHOST" i wish to send this mail to my... (2 Replies)
Discussion started by: kkc
2 Replies

10. UNIX for Advanced & Expert Users

Mail Error

Hi When trying to access my UNIX mail account I am getting this error message, can anyone suggest a way to get in and delete some of these messages please? Can I simply delete my mail file or hack it with a text editor? Thanks :confused: (3 Replies)
Discussion started by: deggzy
3 Replies
Login or Register to Ask a Question
Mail::SendEasy(3pm)					User Contributed Perl Documentation				       Mail::SendEasy(3pm)

NAME
Mail::SendEasy - Send plain/html e-mails through SMTP servers (platform independent). Supports SMTP authentication and attachments. DESCRIPTION
This modules will send in a easy way e-mails, and doesn't have dependencies. Soo, you don't need to install libnet. It supports SMTP authentication and attachments. USAGE
OO use Mail::SendEasy ; my $mail = new Mail::SendEasy( smtp => 'localhost' , user => 'foo' , pass => 123 , ) ; my $status = $mail->send( from => 'sender@foo.com' , from_title => 'Foo Name' , reply => 're@foo.com' , error => 'error@foo.com' , to => 'recp@domain.foo' , cc => 'recpcopy@domain.foo' , subject => "MAIL Test" , msg => "The Plain Msg..." , html => "<b>The HTML Msg...</b>" , msgid => "0101" , ) ; if (!$status) { print $mail->error ;} STRUCTURED use Mail::SendEasy ; my $status = Mail::SendEasy::send( smtp => 'localhost' , user => 'foo' , pass => 123 , from => 'sender@foo.com' , from_title => 'Foo Name' , reply => 're@foo.com' , error => 'error@foo.com' , to => 'recp@domain.foo' , cc => 'recpcopy@domain.foo' , subject => "MAIL Test" , msg => "The Plain Msg..." , html => "<b>The HTML Msg...</b>" , msgid => "0101" , ) ; if (!$status) { Mail::SendEasy::error ;} METHODS
new (%OPTIONS) %OPTIONS: smtp The SMTP server. (Default: localhost) port The SMTP port. (Default: 25) timeout The time to wait for the connection and data. (Default: 120) user The username for authentication. pass The password for authentication. send (%OPTIONS) %OPTIONS: from The e-mail adress of the sender. (Only accept one adress). from_title The name or title of the sender. reply E-mail used to reply to your e-mail. error E-mail to send error messages. to Recipient e-mail adresses. cc Adresses to receive a copy. subject The subject of your e-mail. msg The plain message. html The HTML message. If used with MSG (plain), the format "multipart/alternative" will be used. Readers that can read HTML messages will use the HTML argument, and readers with only plain messages will use MSG. msgid An ID to insert in the e-mail Headers. The header will be: Msg-ID: xxxxx anex Send file(s) attached. Just put the right path in the machine for the file. For more than one file use ARRAY ref: ['file1','file2'] ** Will load all the files in the memory. zipanex Compress with zip the ANEX (attached) file(s). All the files will be inside the same zip file. If the argument has the extension .zip, will be used for the name of the zip file. If not, the file will be "anex.zip", and if exist only one ANEX, the name will be the same of the ANEX, but with the extension .zip. ** Need the module Archive::Zip installed or the argument will be skipped. ** This will generate the zip file in the memory. SEE ALSO
Mail::SendEasy::SMTP, Mail::SendEasy::AUTH, HPL. This module was created to handle the e-mail system of HPL. AUTHOR
Graciliano M. P. <gm@virtuasites.com.br> I will appreciate any type of feedback (include your opinions and/or suggestions). ;-P COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2011-09-18 Mail::SendEasy(3pm)