On Wed, 2 Feb 2000, Satya wrote:
> On Feb 2, 2000 at 00:01, Philip S Tellis wrote:
>
> > Which is basically what sendmail.alias does, but it is not dependant on
> > the mta. It makes an smtp connection to port 25 rather than open sendmail
> > in bs mode. Same protocol though. You (and I) are using mail relay which
> > is why it works.
>
> Not entirely...
>
> Anyway, I've replaced the -bs and -t stuff in one of my scripts with your
> connectsocket(), and it works, except... no To: header. The mail is
> written to satyap@localhost. Any idea what the problem is?
>
> PS: Who wrote connectsocket()? (For attribution purposes)
If you're talking about my program, then I wrote the code in all the
functions. connectsocket() basically implements what is documented in the
perlipc man page under Sockets: Client/Server Communication
The headers are handled by the functions getheader and parseaddress.
getheader calls parse address to separate names from email addresses. It
then puts all to, cc and bcc addresses into @rcpts and returns that too.
smtpauthenticate then uses these values to address the recipients.
Philip
To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list
button and fill the appropriate information
and submit. For any other queries contact the ML maintener