9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I am trying to send a mail with below command which is working fine. $FilePath_mail have To,From and other information along with mail body which is in HTML format. I want to have image(logo) in the body. So just wanted to send it as an an attachment.
/usr/sbin/sendmail -t <... (1 Reply)
Discussion started by: balakrishnaps
1 Replies
2. Shell Programming and Scripting
Hi All,
Can anyone help with an email formatting question:
Im using the following example to try and send a formatted email:
outputFile="file.txt"
(
echo "From: oracle@inovis.com"
echo "To: john.dickinson@gxs.com"
echo "MIME-Version: 1.0"
echo "Subject: Test Font"
echo... (4 Replies)
Discussion started by: jonnyd
4 Replies
3. Shell Programming and Scripting
Send_Mail()
{
C_Date=`date +"%m/%d/%Y"`
#Subject="MMDB Load Job Status"
for i in `cat $Metafile`
do
if
then
email_address=`echo $i | cut -d":" -f2`
/usr/lib/sendmail "$email_address" < $Email_File
fi
done
}
this is the send mail command i am using .please let me... (1 Reply)
Discussion started by: Alok K Yadav
1 Replies
4. Red Hat
Hi Friends,
I am very much new to sendmail or any other mta. I just installed sendmail 8.14 on my rhel6 machine. I was trying to send email to local user but after entering the message when i press CTRL-D it simply hangs. I also tried sending email via mutt but again mutt also hangs. It sends... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies
5. Shell Programming and Scripting
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=border
--border
Content-Type: text/html
Content-Disposition: inline
<html><body><h2>This text should be displayed with html formatting</h2></body></html>
--border
Content-Type: text/plain
Content-Disposition: attachment
This text... (2 Replies)
Discussion started by: thulasidharan2k
2 Replies
6. UNIX for Dummies Questions & Answers
Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b:
I stopped at .. :(
#!/bin/sh
A=`hostname -i`
echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies
7. UNIX for Advanced & Expert Users
Hello,
I am C. and I would like to send mail with Sendmail to my hotmail-account.
But this doesn't work, the mail always returns in the file:
/var/spool/mail/root.
Probably there is something wrong with my SmartHost.
I configured it like:
define ( 'SMART_HOST','smtp.direct-adsl.be')
-->... (1 Reply)
Discussion started by: caroline
1 Replies
8. Shell Programming and Scripting
Hello,
I need to send with text in the body and 2 files as attachments using sendmail command.
i can send only one at a time either attachment or text in body of email.
Can any one please help me how to get that?
I will be great for any help.
Thanks,
Sparan (1 Reply)
Discussion started by: sparan_peddu
1 Replies
9. UNIX for Advanced & Expert Users
How can i get sendmail to immediately bounce mail when the server on the other side gives a "550 unknown user" SMTP error? Currently, the outbound mail stays in the queue and is retried until our server gives up, some days later. (0 Replies)
Discussion started by: vertigo23
0 Replies
SMTP_auth(3pm) User Contributed Perl Documentation SMTP_auth(3pm)
NAME
Net::SMTP_auth - Simple Mail Transfer Protocol Client with AUTHentication
SYNOPSIS
use Net::SMTP_auth;
# Constructors
$smtp = Net::SMTP_auth->new('mailhost');
$smtp = Net::SMTP_auth->new('mailhost', Timeout => 60);
DESCRIPTION
This module implements a client interface to the SMTP and ESMTP protocol AUTH service extension, enabling a perl5 application to talk to
and authenticate against SMTP servers. This documentation assumes that you are familiar with the concepts of the SMTP protocol described in
RFC821 and with the AUTH service extension described in RFC2554.
A new Net::SMTP_auth object must be created with the new method. Once this has been done, all SMTP commands are accessed through this
object.
The Net::SMTP_auth class is a subclass of Net::SMTP, which itself is a subclass of Net::Cmd and IO::Socket::INET.
EXAMPLES
This example authenticates via CRAM-MD5 and sends a small message to the postmaster at the SMTP server known as mailhost:
#!/usr/bin/perl -w
use Net::SMTP_auth;
$smtp = Net::SMTP_auth->new('mailhost');
$smtp->auth('CRAM-MD5', 'user', 'password');
$smtp->mail($ENV{USER});
$smtp->to('postmaster');
$smtp->data();
$smtp->datasend("To: postmaster
");
$smtp->datasend("
");
$smtp->datasend("A simple test message
");
$smtp->dataend();
$smtp->quit;
CONSTRUCTOR
new Net::SMTP_auth [ HOST, ] [ OPTIONS ]
This is the constructor for a new Net::SMTP_auth object. It is taken from Net::SMTP as all other methods (except auth and auth_types)
are, too.
METHODS
Unless otherwise stated all methods return either a true or false value, with true meaning that the operation was a success. When a method
states that it returns a value, failure will be returned as undef or an empty list.
auth_types ()
Returns the AUTH methods supported by the server as an array or in a space separated string. This string is exacly the line given
by the SMTP server after the "EHLO" command containing the keyword "AUTH".
auth ( AUTH, USER, PASSWORD )
Authenticates the user "USER" via the authentication method "AUTH" and the password "PASSWORD". Returns true if successful and
false if the authentication failed. Remember that the connection is not closed if the authentication fails. You may issue a differ-
ent authentication attempt. If you once are successfully authenticated, you cannot send the "AUTH" command again.
The "AUTH" method "NTLM" is supported via Authen::NTLM (thanks to James Fryman).
SEE ALSO
Net::SMTP and Net::Cmd
AUTHOR
Alex Pleiner <alex@zeitform.de>, zeitform Internet Dienste. Thanks to Graham Barr <gbarr@pobox.com> for Net::SMTP. NTLM authentication
code provided by James Fryman <jfryman@gmail.com>
COPYRIGHT
Copyright (c) 2001, 2003, 2006 zeitform Internet Dienste. All rights reserved. This program is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.
perl v5.8.8 2006-01-13 SMTP_auth(3pm)