[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: How to change email "From" field in order receipt
Hi!
> >
> >My orders are arriving with the email "From:" field as
> >"minivend@my.domain.com". I would like to be able to re-define this to be,
>
[snip all kinds of stuff]
> The send_mail in Util.pm gets the values from regular black magic. Order.pm
> calls send_mail in line 588 (minivend 3.14) of Order.pm with:
>
> $ok = send_mail($email, $subject, $body);
> Cheers, Frank
well, I do not know how acceptable this solution is, but
in the catalog.cfg file, i change the SendMailProgram line to read:
SendMailProgram /usr/lib/sendmail -forders@mydomain.com
so that any outgoing mail by minivend apperes to come from orders@mydomain.com.
To make it work though you also need to add the minivend user as a trusted
user to sendmail. I run minivend under user minivend (wow!) so i
added "Tminivend" to my /etc/sendmail.cf
this seemed a little easier then figureing out the send_mail black
magic :)
of course, YMMV.
take care
Rex G. Feany.
--
Rex G. Feany (aka Laeos) | GNU HURD: From the creaters of EMACS...
VMRDesigns | OpenBSD: The way things ought to be.
laeos@networkone.net | Linux: GNOME, KDE, RedHat, need we say more?
http://www.vmrdesigns.com/ | Windows: Kernal crashes looks pretty now.