Mailing using mail In Linux In Hindi

Linux mein mail command ka istemal email send karne aur receive karne ke liye hota hai. mail command ki madad se aap text-based emails create, send, aur receive kar sakte hain. Niche kuch common mail command ke options aur examples hain:

Mailing using mail In Linux In Hindi

1. Sending an Email:

  • mail command se aap email send karne ke liye mail command ke options aur email message ko use karte hain.
  • Basic syntax hoti hai:
  echo "Email body" | mail -s "Subject" [email protected]

Yahan Email body aapke email ka main text hota hai, Subject email ka subject hota hai, aur [email protected] email recipient ka address hota hai.

Example:

echo "Hello, this is a test email" | mail -s "Test Email" [email protected]

2. Sending an Email from a File:

  • Agar aap ek file mein email message likhkar send karna chahte hain, to aap -t option ke sath mail command ka istemal kar sakte hain.
  • Basic syntax hoti hai:
  mail -s "Subject" [email protected] < email.txt

Yahan email.txt ek text file hai jisme email message likha hua hai.

3. Checking Received Emails:

  • mail command ka istemal received emails ko check karne ke liye hota hai.
  • Basic syntax hoti hai:
  mail

Is command ko run karne ke baad, aapke inbox mein aaye emails ko dekh sakte hain.

4. Reading a Specific Email:

  • Kisi specific email ko padhne ke liye aap mail command ke -f option ke sath email number ka istemal kar sakte hain.
  • Basic syntax hoti hai:
  mail -f email_number

Yahan email_number us email ka number hota hai jo aap padhna chahte hain.

Example:

mail -f 1

mail command ke aur bhi options hote hain jo email sending aur receiving ko customize karne mein madadgar hote hain. Aap man mail command ka istemal karke puri documentation aur options ki jankari prapt kar sakte hain.

Leave a Comment