MiniVend Akopia Services

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

Re: How to change email "From" field in order receipt



You need to look at the man page for the version of "sendmail" you are
using, if you want to do this from a programming standpoint. This is the
program that sends mail out and has a switch to set the sender.

I can think of 3 ways to so this:
1. some secret minivend construct I don't know
2. somewhere in your config is a Global variable that is called
SendMailLocation, I would think you could set that in either
minivend.cfg or the catalog config, but I don't know. Needless to say,
it gives the full path (including exec name, i.e. "/usr/bin/sendmail")
as I recall. If you were to lookup your sendmail man page and reset that
to "/usr/bin/sendmail -f paco@store.com", it should do that. My version
can use -f as a From header if you are a trusted user. Standard warning
apply.
3. Find where it sends the mail in the minivend libs or executable, and
make the above change there.
4. Write a custom mail-sending Perl script and replace it with sendmail
in the config.

I like # 2 and 4. In fact, I might need to do this later this week. If
you find a good way, let me know. If you can't find a way, wait a little
while and ask me again. I am sure I will have to do it sometime before
this site that I'm working on goes live.



JR wrote:
> 
> ******    message to minivend-users from "JR" <jr@clara.net>     ******
> 
> Hi all
> 
> 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,
> for instance, "sales@my.domain.com" or indeed anything else.
> 
> I know there has been some correspondence about this already, but I can't
> find an answer in the list that works for me, and I wonder if anybody can
> tell me the definitive way of doing this.
> 
> So far as I can see, the emailing of the orders is done by Util.pm, and the
> emailing routine in there doesn't specifically use the "From:" field.
> 
> But it does have "my($to, $subject, $body, $reply, $use_mime,
> @extra_headers) = @_;" Am I right in thinking that @extra_headers COULD
> contain the "From:" field, but if so, how and where would I put the field
> and in which page to make it appear there??? (In receipt.html, report.html,
> checkout.html, or is it somewhere altogether different?)
> 
> I can't presently work out where the send_mail routine in Util.pm actually
> gets any of its fields from, anyway!!! Any help much appreciated.
> 
> Thanks
> 
> Jerry Rodwell
> +++++++++++++++++++++++++++++++++++++
> websites.uk
> Hoo
> Woodbridge
> Suffolk IP13 7QW
> England
> 
> internet: http://www.websites.uk.com
> email:    studio@websites.uk.com
> phone:    +44 (0)1473 737 220
> fax:      +44 (0)1473 737 222
> +++++++++++++++++++++++++++++++++++++
> 
> -
> 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: