Emacs Email Plugin MEW installation configuration and sending test

Source: Internet
Author: User
Tags autoload

The use of Emacs has been a year, and found that now is inseparable from her! ^_*. (The company's Win7 installed Emacs, its own PC also installed Emacs, the company's virtual desktop also installed Emacs, the server also installed Emacs.) Hey, all can be installed to install it);-)


I usually use the Org-mode mode of Emacs, and use her to do the daily project management, very convenient. Org-mode mode can be exported in a number of formats, which can be exported to HTML format, and then you can send HTML-formatted documents to the blog. Oh, off the topic!


This article outlines:

    1. Configuring the Melpa Source

    2. Installing MEW

    3. Configure Mew

    4. Send a message test

      1. Simply send a message

      2. CC Mail

      3. Insert Attachment


    1. Configuring the Melpa Source

First open emacs "System", press the key combination "m-x", enter "customize-group"

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5A/1D/wKioL1T3C8Cyuyn4AAB0BV2ZQIY196.jpg "title=" Customize-group.png "alt=" Wkiol1t3c8cyuyn4aab0bv2zqiy196.jpg "/>

Then press "Enter", then enter "Package"

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5A/20/wKiom1T3C0yCJRJgAACPk9Miqh4755.jpg "title=" Package.png "alt=" Wkiom1t3c0ycjrjgaacpk9miqh4755.jpg "/>

Find "packageArchives"

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/21/wKiom1T3C_CTyqIYAAQC0I08U1w849.jpg "title=" Package_archives.png "alt=" Wkiom1t3c_ctyqiyaaqc0i08u1w849.jpg "/>

Then, click on "Apply and Save" above, which completes the configuration of the Melpa source. The next step is to install MEW.


2. Installing Mew

Next, press the key combination "m-x", enter "package-install", then "Enter", then "Mew", then " return ", Wait a moment to complete the MEW installation. The installation process is simple, my mew installed in the Win7 user's home directory under the. emacs.d/elpa/Directory,:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5A/21/wKiom1T3DX-CBQo9AAPXWQttq-o355.jpg "title=" Mew.png "alt=" Wkiom1t3dx-cbqo9aapxwqttq-o355.jpg "/>

3. Configure Mew

Next Configure MEW, which is configured in the MEW documentation, you can use info under Emacs to view the help document. You can paste the configuration in the Help document into the. emacs file, configured as follows: ( Note: The path may be different )

;;  mew mode (add-to-list  ' load-path               (expand-file-name  "~/.emacs.d/elpa/mew-20140901.1737/")) (autoload  ' mew  "MEW"  nil t) (autoload  ' mew-send  "Mew"  nil t) (if  (boundp  ' Read-mail-command)      (setq read-mail-command  ' Mew) (autoload  ' mew-user-agent-compose  ") Mew " nil t" (if  (boundp  ' mail-user-agent)      (setq mail-user-agent   ' Mew-user-agent) (if  (fboundp  ' define-mail-user-agent)      ( define-mail-user-agent         ' mew-user-agent          ' mew-user-agent-compose         ' mew-draft-send-message         ' mew-draft-kill          ' Mew-send-hook))

Then, create the. mew.el file in your home directory with the following content:

(setq mew-name "ldczz2008") (setq mew-user "ldczz2008") (setq mew-mail-domain "163.com") (setq mew-mailbox-type ' mbox) (setq mew-mbox-command "INCM") (Setq mew-mbox-command-arg (concat "-u-d" (expand-file-name "~/mail/inbox/")))

Then, add the Address Book: format as follows:

<shortname> <address1>[, <address2>, <address3>,...] <nickname> <fullname>

Example:

LDC [email protected] CC Lavenliu

Configure Contacts and SMTP:

Press the key combination "M-x", then enter "Customize-group", enter "Mew", Return,

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/21/wKiom1T3ETPCimQ6AAGPqu3av20793.jpg "title=" Mew_ Group.png "alt=" Wkiom1t3etpcimq6aagpqu3av20793.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5A/21/wKiom1T3EVLTAhwjAANu1BN5x6w701.jpg "title=" Mew_ Conf.png "alt=" Wkiom1t3evltahwjaanu1bn5x6w701.jpg "/>


Configure Contacts First:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/21/wKiom1T3EYuzT8SoAAQDkJiPUgQ662.jpg "title=" Addbook.png "alt=" Wkiom1t3eyuzt8soaaqdkjipugq662.jpg "/>


Press "U" key to return to the previous interface to find the SMTP configuration link

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5A/21/wKiom1T3EebiKDEZAAOprGxV8IQ802.jpg "title=" Smtp.png "alt=" Wkiom1t3eebikdezaaoprgxv8iq802.jpg "/>


4. Send mail test

Next, send a few emails to try and see what effect,

Press the key combination "c-x m" to open the following interface:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/21/wKiom1T3Eo2jBueKAAFcooYJBCM475.jpg "title=" Mail1.png "alt=" Wkiom1t3eo2jbuekaafcooyjbcm475.jpg "/>


Then fill in the recipient, and CC people, as well as attachment upload, and so on, when filling in the recipient, in the "to:" Can enter the recipient's abbreviation or the whole process, and then press "tab" key can complete, if there are multiple recipients can be separated by commas in English , but to write on one line. If you want to copy to someone, you can add a line under the "to:" line, enter "C" and then press the TAB key, found that has been automatically completed, turned into a "cc:", you can fill in the cc's mail, there are multiple, separated by commas in English.


where "----" above the information is the head, the following is the mail body. We can also insert signature information, we need to create a new. signature file in the home directory, write our signature information, my signature information such as:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5A/1D/wKioL1T3FdbTqp66AAFVFskFGwc519.jpg "title=" Signature.png "alt=" Wkiol1t3fdbtqp66aafvfskfgwc519.jpg "/>


Press the key combination "c-c tab" to insert our signature information, one will look at the effect. Then you can insert the attachment, insert the attachment can press the key combination "c-c c-a", the following interface:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/21/wKiom1T3Fb2ivWGIAAJyqX4cApw624.jpg "title=" Attachement.png "alt=" Wkiom1t3fb2ivwgiaajyqx4capw624.jpg "/>


Then press "C" To insert the attachment, prompting us in Minibuffer, the location of the file to be inserted:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/21/wKiom1T3FnHirSH0AABuJjOBTws480.jpg "title=" Copy.png "alt=" Wkiom1t3fnhirsh0aabujjobtws480.jpg "/>

Find a file for yourself:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5A/21/wKiom1T3FrPyYewEAACPnlYYMMM027.jpg "title=" Copy1.png "alt=" Wkiom1t3frpyyeweaacpnlyymmm027.jpg "/>

The effect is:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5A/1D/wKioL1T3F_XAeR7XAACsYI06wwY304.jpg "title=" Copy3.png "alt=" Wkiol1t3f_xaer7xaacsyi06wwy304.jpg "/>


Finally, you can send the message, press the key combination "c-c c-c", SMTP will prompt us to enter our email password, then you can complete the mail sent.


Then, open the mailbox to see if you received an e-mail,

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/5A/21/wKiom1T3GF3Sx4ozAADQC6idd4A848.jpg "title=" Mail.png "alt=" Wkiom1t3gf3sx4ozaadqc6idd4a848.jpg "/>

Open the look?

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/21/wKiom1T3GMDR3pQRAAGyXxGB-aU604.jpg "title=" Mail2.png "alt=" Wkiom1t3gmdr3pqraagyxxgb-au604.jpg "/>

At this point, it is over!

Next time to receive an email.

Wash yourself and sleep ...

This article is from the "Tiandaochouqin" blog, make sure to keep this source http://lavenliu.blog.51cto.com/5060944/1617434

Emacs Email Plugin MEW installation configuration and sending test

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.