9.2.1.1 ahfctl setsmtp
Use the ahfctl setsmtp
command to set the SMTP mail
configuration parameters.
Syntax
ahfctl setsmtp
[-h]
[-debug]
[-all]
[-host HOST]
[-user USER]
[-password]
[-from FROM]
[-to TO]
[-port PORT]
[-cc CC]
[-bcc BCC]
[-ssl SSL]
[-auth AUTH]
Parameters
Table 9-2 ahfctl setsmtp Command Parameters
Parameter | Description |
---|---|
|
Specify the |
|
Specify to set all |
|
Specify the name of the SMTP server, for example, smtphostname. |
|
Specify the name of the SMTP user, for example, smtpuser. |
|
Specify the password of the SMTP user. |
|
Specify the email address of the sender. |
|
Specify the email address of the recipient. |
|
Specify the port of the SMTP server, for example, 44. |
|
Specify the CC email address. |
|
Specify the BCC email address. |
|
Specify true
to enable SSL and false to
disable SSL. Default:
false .
|
|
Specify |
Example 9-2 ahfctl setsmtp
ahfctl setsmtp -user smtpuser -from ahfteam@example.com -to touser@example.com -port 24 -password
to
email
address:ahfctl setsmtp -to toaddress@example.com
unsetsmtp
command to clear the existing smtp.to
configuration followed by the setsmtp
command to configure
smtp.to
anew.ahfctl setsmtp -to <email@id>
Parameter smtp.to is already set
ahfctl unsetsmtp -to
Unset SMTP parameters completed successfully.
ahfctl setsmtp -to <email>
Set SMTP parameters completed successfully.