[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Order.pm modify for e-mail "from" field
****** message to minivend-users from "Rob Zimmerman" <rob@readysite.net> ******
Ok. I am looking at the Util.pm module.
I understand the -f switch and have made "mvend" a trusted user. I am
currently on the "lists and arrays" chapter of "learning Perl in 21days :-) so I
am a bit lacking here.....
I am running a virtual server so I need to make this argument a variable that
can be defined in the catalog.cfg or as a hidden input field on the order page.
I am going on a limb here so go easy....but would this work..
$from = _FROM_; # variable defined in catalog.cfg
$myadress = \-f $from; # does the - have to be escaped?
sub send_mail {
my($to,$myaddress, $subject, $body, $reply, $use_mime,
@extra_headers) = @_;
my($ok);
Thanks,
Rob
--------
> See Util.pl, sub send_mail
>
> You need to add "-f $youraddress" to the sendmail args in
>
> open(Vend::MAIL,"|$Vend::Cfg->{SendMailProgram} $to") or last SEND;
>
> This requires making minivend a "trusted" user in sendmail.cf
>
> Dan
> --
> Dan Busarow 949 443 4172
> Dana Point Communications, Inc. dan@dpcsys.com
> Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82
>
> -
> 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
>
-
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