MV_SMTPHOST — specifies the default sender hostname when SMTP is used to send mail
If SMTP is used to send mail from Interchange, this variable specifies the hostname to use.
Example: Setting the MV_SMTPHOST variable
Add the following to interchange.cfg:
Variable MV_SMTPHOST myhost.mydomain.local
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;