Name

MV_SMTPHOST — specifies the default sender hostname when SMTP is used to send mail

SYNOPSIS

{host name}

DESCRIPTION

If SMTP is used to send mail from Interchange, this variable specifies the hostname to use.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example: Setting the MV_SMTPHOST variable

Add the following to interchange.cfg:

Variable MV_SMTPHOST myhost.mydomain.local

NOTES

AVAILABILITY

MV_SMTPHOST is available in Interchange versions:

4.8.0

SOURCE

Interchange 4.8.0:

Source: lib/Vend/Util.pm (rev. 2.1.2.14 from Mon Dec 15 22:25:30 2003)
Line 2021 (context shows lines 2011-2025 in send_mail():1941)

print MVMAIL $body
    or last SEND;
print MVMAIL Vend::Interpolate::do_tag('mime boundary') . '--'
  if $use_mime;
print MVMAIL "\r\n\cZ" if $Global::Windows;
close MVMAIL or last SEND;
$ok = ($? == 0);
}

SMTP: {
my $mhost = $::Variable->{MV_SMTPHOST} || $Global::Variable->{MV_SMTPHOST};
my $helo =  $Global::Variable->{MV_HELO};
last SMTP unless $none and $mhost;
eval {
  require Net::SMTP;

AUTHORS

Interchange Development Group

SEE ALSO

MV_MAILFROM(7ic), MV_HELO(7ic)

DocBook! Interchange!