linux send mail from command line using smtp server
linux send mail from command line using smtp server
Want to know linux send mail from command line using smtp server? we have a huge selection of linux send mail from command line using smtp server information on alibabacloud.com
* Name: Use SOCKET to send an email* Description: This class allows you to directly send emails using the SMTP server to be verified. For more information, seeArticleBy sending an email via socket: limodou* This article is earlier. It uses the
* Name: Use Socket to send an email* Description: This class allows you to directly send emails using the SMTP server to be verified. For details, see limodou, author of "sending emails with Socket ".* This article is earlier. It uses the
the target message via
The code is as follows
Copy Code
[Root@centos6 ~]# mail-s ' mail ' xlapn@126.com
To send a message with an attachment, you need to install the Uuencode package, and you can use the following command to install the Uuencode package if the Yum source is con
On CentOS 6.3, you can use an external SMTP server to send mail by installing MAILX.Yum Install Mailx-yAfter the installation, edit the configuration file.Mailx-v12.4 7/29/08 RPM-QC MAILX/etc/mail.rc Vi/etc/mail.rcAt the end of the file, add the following. (about this configuration file, man is no data, I also refer to
On CentOS 6.3, you can use an external SMTP server to send mail by installing MAILX.Yum Install Mailx-yAfter the installation, edit the configuration file.Mailx-v12.4 7/29/08 RPM-QC MAILX/etc/mail.rc Vi/etc/mail.rcAt the end of the file, add the following. (about this configuration file, man is no data, I also refer to
On CentOS 6.3, you can use an external SMTP server to send mail by installing MAILX.Yum Install Mailx-yAfter the installation, edit the configuration file.Mailx-v12.4 7/29/08 RPM-QC MAILX/etc/mail.rc Vi/etc/mail.rcAt the end of the file, add the following. (about this configuration file, man is no data, I also refer to
Recently the company hand-tour of a test area service end old hanging, so the whole script monitoring, hang up to send mail and then automatically restart the service.StartFirst mail A look, the results prompt command not found (company system are custom installed) Hey, pack mailForget the
The article mainly refers to the reference http://www.cnblogs.com/276815076/archive/2011/10/11/2207214.html
Verify send success, please try boldly, but the consequences of the ego ha.
Needless to say first install software, Ubuntu everybody knows ha, the fool type sudo apt-get install mutt msmtp, all default settings on the line.
Then start a variety of configuration, very simple, do not want to trouble, yo
Phpphpmailer
Recently encountered a project need to send mail. The message was successfully sent using Phpmailer, but a problem was encountered while setting the display name (diplay name). You are using a exchange2010 SMTP server
This is just the right day to test it. It's OK. Because the Python module is possible, the shell script is made with the shell, or the point of co-productions.http://my.oschina.net/duangr/blog/1831621. SendMail ConfigurationConfigure mailbox authentication information for sending messagesVi/etc/mail.rc---Add the following content---Set [email protected]domain.comset SMTP=mail.your-domain.comset smtp-auth-us
Ubuntu:
First install mail
sudo apt-get install Mailx
Install postfix sudo apt-get install postfix again (configure during installation and follow the prompts)
Send mail Command sample cat "Content" | Mail-s "Subject" yl33643@126.com
In debian/ubuntu system apt-get Insta
Brew Install MSMTPVI~/. MAILRCSetsendmail=/usr/local/bin/Msmtpwq!VI~/. msmtprc# use a external SMTP server with insecure authentication.# (manually choose an insecure authentication Metho D.) # Note that the password contains blanks.defaults################################################################### # # A Sample Configurationusingsina.cn###############################################################
Introduction to Windows command line send mail Blat.exe
Download the latest kit and unzip and copy it to the System32 directory on the operating system disk. My environment is c:windowssystem32.
The confirmation file has been copied past:
Blat.dll
Blat.exe
Blat.lib
Batch Comm
Using MSMTP, an SMTP client that is lighter than sendmail,postfix. Use your own QQ mailbox (163 ...) e-mail, very suitable.Mac installation is simple, in a word: Brew install MSMTP There are also two files to configure:~/.MAILRC:~/.MSMTP:Official send:Received Luo:PHP sent, with shell_exec and other functions, do not have to say, the
Mail Configuration
Configure new MAILX to use external mailboxes to send mail:
Edit/etc/nail.rc (Note that is not an older version of/etc/mail.rc): vi/etc/nail.rcAdd two lines:Set from=myname@qq.com smtp=smtp.qq.comSet Smtp-auth-user=myname
: PLAIN LOGINThis server might advertise more or other capabilities when TLS is active.
We can see from the returned information that this smtp supports TLS, and the authentication method supports PLAIN and LOGIN.
3.2 test emailCommand Line input:
echo "test" |mutt -s "my_first_test" aaa@126.com
If yesMultiple recipients, Then useSeparated by spaces or com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.