Cdo.message mail fromname
A CDO (Collaboration Data Objects) command!
cdo.message
is a command in the CDO command-line tool that allows you to send a message to a recipient using a mail server.
Here's the basic syntax:
cdo.message [options] fromname recipient [subject] [message]
Here's a breakdown of the options:
fromname
: The name of the sender (e.g., "John Doe").recipient
: The email address of the recipient (e.g., "[email protected]").subject
: The subject line of the email (optional).message
: The body of the email (optional).
Some common options:
-m
: Specify the mail server to use (e.g.,-m smtp.example.com
).-p
: Specify the port number to use (e.g.,-p 587
).-u
: Specify the username and password for authentication (e.g.,-u username:password
).-t
: Specify the type of message (e.g.,-t text/plain
for a plain text message).
Here's an example:
cdo.message -m smtp.example.com -u username:password fromname [email protected] "Hello, Jane!" "This is a test email."
This command would send a plain text email from "John Doe" to "[email protected]" with the subject "Hello, Jane!" and the message "This is a test email." using the SMTP server smtp.example.com
with authentication credentials username:password
.
Note that you may need to install the CDO command-line tool and configure your mail server settings before using this command.