MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: off topic but probably interesting for others : mailing copies of orders...



******    message to minivend-users from "Michael Radke" <mra@trendware.de>     ******

Okay,

I managed that by myself. Thanks for all the hints !

First, I added the user minivend to the /etc/sendmail.cf :

Troot
Tdaemon
...
Tminivend

Then, I did a 

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

This did not help at all, I tried manually from the
command line - that worked... 

A look into /var/log/warn showed up :

Apr 17 16:24:27 shopper sendmail[20444]: QAA20444: SYSERR: putoutmsg (NO-HOST): error on output channel sending "553 Reply-to:...
list:; syntax illegal for recipient addresses": Invalid argument

hmmm - i have to look at the source code... okay.. Found it.

The problem is : the global sub which should be used
to mail copies to the customers modified the $replyto
variable :

      $reply = "Reply-to: $reply\n" if $reply;

Doing a 

      open(Vend::FORMMAIL,"|$Vend::Cfg->{SendMailProgram} -f$reply -t") or last SEND;

did not work, with that "Reply-to:" in it... Changed that GlobalSub :

  sub form_mail {
      my($to, $subject, $reply, $body) = @_;
      my($ok);
+++      my($from) = $reply;

      return '' unless $to;

      $subject = 'Copy of your order' unless $subject;

      $reply = '' unless defined $reply;
      $reply = "Reply-to: $reply\n" if $reply;
      $ok = 0;
      SEND:

+++          open(Vend::FORMMAIL,"|$Vend::Cfg->{SendMailProgram} -f$from -t") or last SEND;
     ....
     .... 


Now, it works fine !

Regards to all who gave me hints !

Regards,
Michael Radke


-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: