You can find the smarthost to use by looking for your provider's mail handler. They will usually just tell you if you ask (it's the same as the server to use for sending mail when configuring a regular mail client like MS Outlook).
You can, alternatively, try the mail handler in their MX record:
---------- Post updated at 04:59 PM ---------- Previous update was at 04:57 PM ----------
You can test a given address to see if it might be a good smarthost to use:
And see if you get a message talking about mail.
Hello everybody
I already read all the posts about "how to send email" but i dont find the solution, i need to send a mail via commands. Into the mail i need to attach a file.txt how can i do that?
Thanx.
Lestat (2 Replies)
I have set up where my primary fibre optical WAN access does not have any sending SMTP service but my fall-back ADSL service does. However, with most Internet Service Providers, the SMTP service access is "locked" to the IP addresses that the service knows about. Therefore I can not send SMTP... (0 Replies)
Hi guys...
I am busy writing a script to notify me via an mail if my application is down. I have done that.
Now I want this script to stop sending mails after five mails were sent but the script should keep on checking the application.
When the application is up again that count should be... (5 Replies)
Hi,
i have the following code in shell named as test3.sh..
#!/bin/sh
. /home/<user>/.profile
export dt=`date "+%d%b%y"`
export tim=`date "+%d%b%y %HM:%MM"`
cd
export WD=`pwd`
SID="<sid>"
export SID
export ORACLE_SID=$SID
export ORACLE_HOME=/oracle/$SID/102_64
export... (4 Replies)
Whats the difference between mail and mailx?
I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL)
... (1 Reply)
Hi All,
In my .ksh script, I am sending an email with body and attachment (.txt) using sendmail command. I am able to receive the attachement along with the body of the mail. But I am getting special characters along with the content in the .txt. Also the alignment is incorrect. Can you please... (7 Replies)
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)
PHP mail() function doesn't work.
Nor does sendmail:
loaded system configuration file /etc/msmtprc
ignoring user configuration file /home/xi/.msmtprc: No such file or directory
falling back to default account
using account default from /etc/msmtprc
host = xsi
port = 25
proxy host = (not... (1 Reply)
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
LEARN ABOUT DEBIAN
pycmail
pycmail(1) General Commands Manual pycmail(1)NAME
pycmail - mail sorter
SYNOPSIS
pycmail [-d debuglevel] [-t] [-c conffile] [file1 file2 file3 ...]
DESCRIPTION
pycmail is a mail sorter similar to procmail, written in python, using python syntax for mail delivery.
OPTIONS
file1 file2 ... read mails from file1 file2 ... instead of from stdin (useful for mail postprocessing)
-d level, --debuglevel level
set debuglevel to level.
-t testing mode. No mail delivery will be done. Use in conjuction with -d
-c conffile, --config=conffile
use file conffile as a user configuration file (instead of ~/.pycmailrc )
-D define
add define to the DEFINES list (this can be tested later in the .pycmailrc to modify the behaviour). Can be repeated several times
to add more strings.
USAGE
pycmail should be invoked automatically from the .forward file when mail arrives.
Default debuglevel is 0, which means pycmail tries to deliver mail in almost foolproof way: if there is any error in ~/.pycmailrc file,
mail will be delivered to the default mailbox (such as /var/spool/mail/USERNAME ).
If the debuglevel is 1, any error in ~/.pycmailrc file will be printed, resulting in bounced mail (but pycmail will still try to deliver
the mail to default mailbox).
Higher debuglevels will print more information about the actual mail processing. The bigger the debuglevel, the more detailed information
is printed.
To test your configuration, do something like this:
formail -s pycmail -d 2 -t < your_test_mailbox_file
SEE ALSO procmail(1), lockfile(1), formail(1)AUTHOR
Radovan Garabik <garabik @ kassiopeia.juls.savba.sk>
2006-10-17 pycmail(1)