1.6 Configuring the Contact Us Page |
The Viewpoint Web framework provides email configuration options. Sending email is primarily an end-user function for submitting issue notification or requesting support. To allow users to send messages, configure the mail settings according to required specifications.
The mail configuration is within the core.xml file. A sample follows of what the <mail
> XML block within the parent element looks like:
<mail> <smtp-server>smtp.gmail.com</smtp-server> <port>25</port> <username>[email protected]</username> <password>password</password> <ssl-enabled>true/false</ssl-enabled> <recipients> <recipient field="to"> [email protected] </recipient> <recipient field="cc"> [email protected] </recipient> <recipient field="bcc"> [email protected] </recipient> </recipients> </mail>
smtp-server
> is the host.port
> is the port the SMTP server uses to receive email requests.username
> and <password
> are the username and password used to authenticate with the SMTP server.ssl-enabled
> indicates whether to use encryption; specify true or false.recipients
> contains a <recipient
> child element with the field
attribute used to send messages directly to a recipient ("to"), as a correspondent copy ("cc"), or as a blind correspondent copy("bcc"). You can specify multiple recipients by a comma-separated list.