9.2.1.5 ahfctl sendmail
Use the ahfctl sendmail
command to send a test email to verify SMTP configuration.
Syntax
ahfctl sendmail
[-h]
[-to TO]
[-cc CC]
[-bcc BCC]
[-subject SUBJECT]
[-body BODY]
[-attachment ATTACHMENT]
Parameter | Description |
---|---|
|
Specify the recipient email address. |
|
Specify the email address to send a carbon copy of the email. |
|
Specify the email address to send a blind carbon copy of the email |
|
Specify to add email subject. |
|
Specify to add body of the email. |
|
Specify to add an attachment. |
Example 9-6
- To send an email to recipients with default/set parameters:
ahfctl sendmail
- To send an email with attachment:
ahfctl sendmail -to toaddress@company.com -attachment <path_to_file>
ahfctl sendmail -to $ORACLE_USER@oracle.com -attachment /tmp/test_email.log Mail has sent successfully to oradb@oracle.com