Mime-Version: 1.0
Content-Type: text/plain; charset=cp437
Content-Transfer-Encoding: 8bit
X-URL: http://www.flora.org/lynx-dev/html/month032000/msg00112.html
X-Mailer: Lynx, Version 2.8.3dev.21
In-Reply-To: <[EMAIL PROTECTED]>
Subject: Making blat.exe work for Windows lynx.exe
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]

The following can be used to get blat.exe to work as an alternative
to sendmail.exe. The blat.exe '-install' option has some kind of
problem installing its user profile on my Windows 98 system, and I
assume that other users would have the same problem. Therefore, you
need to use the sendmail system flags in lynx.cfg to let blat.exe
know the smtp server to use.

The code listed below is not a patch, but a suggestion to the Windows
developers. Note that the code in LYMail refers to _both_ the system_mail
and system_mail_flags in the lynx.cfg file:

=================================================
In your lynx.cfg file:

SYSTEM_MAIL:blat
SYSTEM_MAIL_FLAGS:-server smtp.your.net
=================================================



# After line 663 in LYMail.c:

#ifdef VS_BLAT
        StrAllocCopy(command, system_mail);
        StrAllocCat(command, " ");
        StrAllocCat(command, my_tmpfile);
        StrAllocCat(command, " -s \"");
        StrAllocCat(command, subject);
        StrAllocCat(command, "\" -t ");
        StrAllocCat(command, address);
        StrAllocCat(command, " ");
        StrAllocCat(command, system_mail_flags);
#else
        /* for sendmail.exe */
        StrAllocCopy(command, system_mail);
        StrAllocCat(command, " -t \"");
        StrAllocCat(command, address);
        StrAllocCat(command, "\" -F ");
        StrAllocCat(command, my_tmpfile);
#endif

# After line 2046 in LYMail.c:

#ifdef VS_BLAT
        StrAllocCopy(command, system_mail);
        StrAllocCat(command, " ");
        StrAllocCat(command, tmpfile2);
        StrAllocCat(command, " -s \"");
        StrAllocCat(command, subject);
        StrAllocCat(command, "\" -t ");
        StrAllocCat(command, address);
        StrAllocCat(command, " ");
        StrAllocCat(command, system_mail_flags);
#else
        /* for sendmail.exe */
                StrAllocCopy(command, system_mail);
                StrAllocCat(command, " -t \"");
                StrAllocCat(command, address);
                StrAllocCat(command, "\" -F ");
                StrAllocCat(command, tmpfile2);
#endif

Reply via email to