Yes, but if it weren't hard-coded, it wouldn't count as being a one-liner. ;)
Besides, it's rare for DNS names to change; the point of DNS is the underlying server addresses can change without changing the name. And a service like SMTP relay should be less likely to change than other types of host.
But still, good point. This could easily be a Param if the function would be used in many environments.
Besides, it's rare for DNS names to change; the point of DNS is the underlying server addresses can change without changing the name. And a service like SMTP relay should be less likely to change than other types of host.
But still, good point. This could easily be a Param if the function would be used in many environments.