Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Send mail from Terminal using mail/sendmail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Send mail from Terminal using mail/sendmail
Authored by: boysoprano on Dec 23, '08 09:38:23AM

Thanks, this works great! Only problem is the sender field appear as "Machine Username <email@domain.com>", not "Full Name <email@domain.com>". Does anyone know how to change this? The only way I could find to customize the display name was to change my user account name in System Preferences :/



[ Reply to This | # ]
10.5: Send mail from Terminal using mail/sendmail
Authored by: techiejohn on Jan 01, '09 06:46:09AM
You can fix the sender using the following:
printf "From: Sender Name <sender@domain.com>\nTo: recipient@domain.com\nSubject: Subject\n\nBody\n" | /usr/sbin/sendmail -F "Sender Name" -f "sender@domain.com" "recipient@domain.com"


[ Reply to This | # ]