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

-to TO

Specify the recipient email address.

-cc CC

Specify the email address to send a carbon copy of the email.

-bcc BCC

Specify the email address to send a blind carbon copy of the email

-subject SUBJECT

Specify to add email subject.

-body BODY

Specify to add body of the email.

-attachment ATTACHMENT

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