FG
💻 Software

How to send email with attachment by postfix from command-line?

Fresh5 days ago
Mar 15, 202658448 views
Confidence Score0%
0%

Problem

I've just setup a new Ubuntu 10.04 LTS server on linode for myself. Followed an excellent instruction at: here to finish the installation of some basic stuff including postfix. I am trying to figure out a way to send an email to my gmail address with an attachment, but cannot find how. Already conf…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to send email with attachment by postfix from command-line?

Low Risk

Why does it have to be directly? , , or will also use the interface -- unless you configure them for SMTP. (Note, in bsd-mailx the option is instead.) Anyway, here's a "postfix" example. Replace , content type and filename to match your environment.…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment