10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a shell script which executes to write html codes into a text file. My next step is to email the text file so that receiving person (people who i send email to) should be able to see pie/chart or bar graph (whatever i design in my code) in their email. Following is the example of a sample... (7 Replies)
Discussion started by: bikerboy
7 Replies
2. Shell Programming and Scripting
I have written a shell script that calls below sql file. It is not sending the query data in table in the body of email.
spool table_update.html;
SELECT * FROM PROCESS_LOG_STATS where process = 'ActivateSubscription';
spool off;
exit;
Please use code tags next time for your code and data.... (9 Replies)
Discussion started by: Sharanakumar
9 Replies
3. Shell Programming and Scripting
Hi ,
I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body.
p_id src_system amount
1 A 100
2 B 200
3 C ... (3 Replies)
Discussion started by: jagadeeshn04
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying to send email with attacment and body using "mailx"
(cat body.txt; uuencode attach.txt) | mailx -s "Attachment" abc@xyz.com
When i type this command, the shell is still waiting for me to enter something in standard input and press control D before it sends a mail and... (2 Replies)
Discussion started by: aliaszero
2 Replies
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
hi
plz help me in sending a mail with some data in body and an attachment as some txt file.
currently i am able to send mail with some body content, i need an example how to send the same along with attachment.
thanks in advance
-bali (2 Replies)
Discussion started by: balireddy_77
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have been trying to shoot an email with the email body to be obtained from a file.
Can someone please help me with it..
I have been trying to use the MAILX commad for the same.
mailx -s "test email" -r sender@test.com < file.txt
but it sends the file as an attachment,while i... (3 Replies)
Discussion started by: rohit.shetty84
3 Replies
8. Shell Programming and Scripting
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. (1 Reply)
Discussion started by: cooolthud
1 Replies
9. UNIX for Dummies Questions & Answers
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
10. UNIX for Advanced & Expert Users
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
Email::Send::SMTP(3pm) User Contributed Perl Documentation Email::Send::SMTP(3pm)
NAME
Email::Send::SMTP - Send Messages using SMTP
SYNOPSIS
use Email::Send;
my $mailer = Email::Send->new({mailer => 'SMTP'});
$mailer->mailer_args([Host => 'smtp.example.com:465', ssl => 1])
if $USE_SSL;
$mailer->send($message);
DESCRIPTION
This mailer for "Email::Send" uses "Net::SMTP" to send a message with an SMTP server. The first invocation of "send" requires an SMTP
server arguments. Subsequent calls will remember the the first setting until it is reset.
Any arguments passed to "send" will be passed to "Net::SMTP->new()", with some exceptions. "username" and "password", if passed, are used
to invoke "Net::SMTP->auth()" for SASL authentication support. "ssl", if set to true, turns on SSL support by using "Net::SMTP::SSL".
SMTP can fail for a number of reasons. All return values from this package are true or false. If false, sending has failed. If true, send
succeeded. The return values are "Return::Value" objects, however, and contain more information on just what went wrong.
Here is an example of dealing with failure.
my $return = send SMTP => $message, 'localhost';
die "$return" if ! $return;
The stringified version of the return value will have the text of the error. In a conditional, a failure will evaluate to false.
Here's an example of dealing with success. It is the case that some email addresses may not succeed but others will. In this case, the
return value's "bad" property is set to a list of bad addresses.
my $return = send SMTP => $message, 'localhost';
if ( $return ) {
my @bad = @{ $return->prop('bad') };
warn "Failed to send to: " . join ', ', @bad
if @bad;
}
For more information on these return values, see Return::Value.
ENVELOPE GENERATION
The envelope sender and recipients are, by default, generated by looking at the From, To, Cc, and Bcc headers. This behavior can be
modified by replacing the "get_env_sender" and "get_env_recipients" methods, both of which receive the Email::Simple object and their only
parameter, and return email addresses.
SEE ALSO
Email::Send, Net::SMTP, Net::SMTP::SSL, Email::Address, Return::Value, perl.
AUTHOR
Current maintainer: Ricardo SIGNES, <rjbs@cpan.org>.
Original author: Casey West, <casey@geeknest.com>.
COPYRIGHT
Copyright (c) 2004 Casey West. All rights reserved.
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
perl v5.12.4 2009-07-12 Email::Send::SMTP(3pm)