發(fā)送郵件給


david


,默認的發(fā)送者是


root



123.

.

[root@localhost ~]# 

tail /var/spool/mail/david             //


查看


david


郵箱,收到郵件



Delivered-To: david@david.cn

Received: by mailsrv.david.cn (Postfix, from userid 0)

                 id 5B3A7143211; Fri,  5 Oct 2018 21:33:34 0800 (CST)

Message-Id: <20181005133334.5B3A7143211@mailsrv.david.cn>

Date: Fri,  5 Oct 2018 21:33:29 0800 (CST)

From: root@david.cn (wejie)

To: undisclosed-recipients:;

 

123. 

2

)指定發(fā)送者

[root@localhost ~]# 

sendmail -f weijie david               //weijie


發(fā)送郵件給


david



hehe

.

You have new mail in /var/spool/mail/root

[root@localhost ~]# 

tail /var/spool/mail/david             //


查看


david


郵箱,發(fā)送者是魏杰



 

Delivered-To: david@david.cn

Received: by mailsrv.david.cn (Postfix, from userid 0)

                 id 3544314308F; Fri,  5 Oct 2018 21:37:11 0800 (CST)

Message-Id: <20181005133711.3544314308F@mailsrv.david.cn>

Date: Fri,  5 Oct 2018 21:37:07 0800 (CST)

From: weijie@david.cn (wejie)

To: undisclosed-recipients:;

 

hehe

 

3

)查看表中有哪些字段

[root@localhost ~]#

 mysqlshow -u root -p test wj              //


顯示數(shù)據(jù)庫


test


中的表


wj


的信息



Enter  

Database: test  Table: wj

------- --------- ------------------- ------ ----- --------- ------- --------------------------------- ---------

| Field | Type    | Collation         | Null | Key | Default | Extra | Privileges                      | Comment |

------- --------- ------------------- ------ ----- --------- ------- --------------------------------- ---------

| id    | int(11) |                   | NO   |     |         |       | select,insert,update,references |         |

| name  | text    | latin1_swedish_ci | NO   |    |         |       | select,insert,update,references |         |

------- --------- ------------------- ------ ----- --------- ------- --------------------------------- ---------

 

      做了一個Linux學習的平臺,目前出來一個雛形,各位可以參考使用

      鏈接:https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ 密碼:n7bk 

      

更多關于云服務器域名注冊,虛擬主機的問題,請訪問三五互聯(lián)官網(wǎng):m.shinetop.cn

贊(0)
聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享網(wǎng)絡內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。郵箱:3140448839@qq.com。本站原創(chuàng)內容未經(jīng)允許不得轉載,或轉載時需注明出處:三五互聯(lián)知識庫 » Linux基礎命令---sendmail發(fā)送郵件

登錄

找回密碼

注冊