MiniVend Akopia Services

[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 Dan Goldman <dano@nodewarrior.net>     ******

This is funny you ask because I just got done re-modifying my configuration
to allow personalization of the "From:" field.  I added the "From:" field
into the form_mail globalsub and then made sure I passed the $from along
with the $to ect... in the report.html file.  Below are before and after
snipits from my modified form_mail.cfg:

BEFORE:

    my($to, $subject, $reply, $body) = @_;

          print Vend::MAIL
			"To: $to\n",
			$reply,
			"Subject: $subject\n",
                     "Errors-To: $Vend::Cfg->{MailOrderTo}\n\n",
			$body


AFTER:

   my($to, $from, $subject, $reply, $body) = @_;

           print Vend::MAIL
			"To: $to\n",
                     "From: $from\n",
			$reply,
			"Subject: $subject\n",
			"Errors-To: $Vend::Cfg->{MailOrderTo}\n\n",
			$body
   

PS:  I was thinking about asking Mike if he would consider making this
change permanant but never got around to it.

Hope this helps,
Dan

At 05:06 PM 3/21/99 -0500, you wrote:
>******    message to minivend-users from "Rob Zimmerman"
<rob@readysite.net>     ******
>
>This is a re-visit. I need to solve this asap and will pay to have this
done. 
>While testing my current project live, I started receiving actuall orders
(nice 
>problem to have :-). So I am going to leave it up. I just need for the 
>conformation e-mail message to contain a specified name in the "from" field
>and not the file owners name (minivend). I note that the demo on minivend 
>does the same thing. 
>
>I have examined the contents of the Order.pm file and see a couple of places 
>that this could most likely be done. I just have no-idea how? I do not now 
>how minivend sends info to sendmail. It seems we should be able to pass 
>this varible from the catalog.cfg file.  Also, below is my original post and 
>thinking on this. 
>
>Thanks
>Rob
>--------
>
>
>
>My order receipts contain mvend@localhost as the "from" field in the e-
>mailed order receipt. I have looked all over to change this with no luck.
>I am wondering if I can create a variable in the catalog.cfg: VARIABLE   
>EMAIL_FROM     orderdept@puzzlemaps.com
>
>and then add to the code:
>
>[set name=email_copy_sent interpolate=1][perl arg=sub interpolate=1]
> form_mail(
>
>   q{_EMAIL_FROM_},
>            q{[value email]},
>            q{Thank you for your order [value mv_order_number]},
>            q{__COMPANY__ Customer Service <__ORDERS_TO__>},
>
>Thanks
>Rob
>----------
>            <<'EndOfMail')
>=================================
>Robert Zimmerman [rob@readysite.net]
>System Administrator
>ReadySite Web Hosting and Design
>http://readysite.net
>Ph:888-356-2992
>fax:603-356-6990
>-
>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


Search for: Match: Format: Sort by: