Thank you for the script

A few questions. Should that code go in the Alias section. Then I made this in the remote section:
on 300:TEXT:!report buffer:#:{ /msg $chan Reporting Bad video buffer to Dylan, $nick | /sendmail }
Second, in this part:
;------ SET THE SERVER SETTINGS ------
set %sndmail.smtpserver your.smtp.server.com
set %sndmail.smtpport 25
set %sndmail.debug $true
Is that doable for something like gmail? Where would I put the username/password in?
Thanks much