MV_HELO — the HELO string to send when using SMTP to send mail
If SMTP is used to send mail, MV_HELO
variable specifies the HELO string to present to the remote system.
Example: Using SMTP to send mail and setting a HELO string
Add the following to interchange.cfg
:
SendMailProgram Net::SMTP Variable MV_HELO myhost.mydomain.local
Interchange 5.9.0:
Source: lib/Vend/Util.pm
Line 2219 (context shows lines 2209-2223 in send_mail():2112)
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} || $::Variable->{SERVER_NAME}; last SMTP unless $none and $mhost; eval { require Net::SMTP; };
Source: lib/Vend/Email.pm
Line 668 (context shows lines 658-672 in send_mail_legacy():561)
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} || $::Variable->{SERVER_NAME}; last SMTP unless $none and $mhost; eval { require Net::SMTP; };