Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh the DNS name will change if you use your ISP-provided SMTP server and you change your ISP from Acme Internet Services to A-1 Networks. :)


Ah, that's exactly the kind of situation where you'd want a param with a default. As an example:

PS C:\> New-Parameter SMTPSvr -TopHeader -BottomHeader -ParameterType string -DefaultValue "mail.example.com"

        Param(

                [string]$SMTPSvr = "mail.example.com"

        ) #end Param




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: