Hi,
in your case the SMTP server depends on the settings in e.g. sendmail and you most like don't have access to that settings.
AFAIK the only way to get around this issue is to use a mail class (available on several code libraries). Those classes use sockets to communicate with smtp servers and allow you to specify which smtp host to use.
Thomas