[ic] Setting up SMTP, order e-mail sent to me but not to 'customer' BUG?

Christine Chaney interchange-users@interchange.redhat.com
Sun Dec 9 18:01:01 2001


Just a note the error.log file does not have the $ next to none $none
That was just the result of copying/pasting from a wraparound line in pico.

-----Original Message-----
From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
Christine Chaney
Sent: Sunday, December 09, 2001 1:00 PM
To: interchange-users@interchange.redhat.com
Subject: RE: [ic] Setting up SMTP, order e-mail sent to me but not to
'customer' BUG?


No. , its not DNS, the customer e-mail is the same e-mail address I'm using
now...which is on the same server, and has the same IP, and is also the
primary domain name for the server.

The error.log reads the following:  (Please notice the odd message).  In
Util.pm no matter what you set it to it still tries to load the function for
sendmail.  I'm not using sendmail because for some reason it's not working
with the virtual server environment which is the following.  For example my
interchange is located at:
/usr/home/gigabyte/usr/local/etc/httpd/vhosts/fashionfantasies.net/interchan
ge
/usr/home/gigabyte is my root directory for my virtual server.

/ is the viaverio root directory
we both have copies of sendmail
when I start sendmail from the command line I have to type
virtual /usr/sbin/sendmail or /usr/lib/sendmail or /bin/sendmail
(/bin/sendmail though is just a ln -s to /usr/lib/sendmail) I've tried all
in the interchange.cfg I've also tried all the viaverio sendmails, I've also
tried even putting the virtual tag in there, no luck.
yet all these programs are located at /usr/home/gigabyte/  ... and the paths
above
if I don't type the virtual I get a sendmail error telling me it could not
find the sendmail.cf file in the /etc directory.  Which it is there and
perfect condition.  It results because its trying to find it on viaverios
side. The viaverio sendmails will start from the command line without this,
but they wont start from the cgi bin.  Mine will start from the cgi-bin  in
programs like formmail and such but with Interchange its just not working.

But that aside, in the Util.pm and Interpolate.pm files I noted how it sends
mail.  It does do a check to see what your sendmailprogram directive says.
But it tries to send the customer e-mail via sendmail no matter what you
specify in the sendmailprogram directive.  See the below portion of the
error.log file.  If you look at the code in the perl files it will say if
!ok{ code  error.log etc.. but above that it SEND: Sendmail { still was
trying to send it via sendmail not Net:SMTP...

Christine

168.105.116.15 x8he8DV4:168.105.116.15 - [09/December/2001:12:32:33 +0000]
ff2 /cgi-bin/ff2/process.html Unable to send mail using $none
> To 'christine@secureservers.net'
> From '"Fashion Fantasies Customer Service" <orders@fashionfantasies.net>'
> With extra headers ''
> With reply-to ''
> With subject 'Thank you for your order #TEST0025!'
> And body:
>
> Dear Fashion Fantasies customer,
>
> Thank you for your order #TEST0025. It is being electronically processed.
>
>             Name: Christine Chaney
>
>    Email address: chris@secureservers.net
>
>          Address: Hale Aloha Ilima
>                   2575 Dole Street #339A
> City, State, Zip: Honolulu, HI  96822
>          Country: US
>
>   Payment Method: Credit Card (visa)
>  Shipping Method: UPS Ground Commercial
>
>    Daytime Phone: 957-1790
>    Evening Phone:
>
>
>
> Quan  Item No.    Description                            Price
Extension
> ---- ----------- ------------------------------- -------------- ----------
------
>   1   os28113     The Claw Hand Rake                    $14.99
$14.99
>
>
>                                                  SUBTOTAL
$14.99
>                                                  SALES TAX
$0.00
>                                                  SHIPPING
$6.19
>
>                                                  ORDER TOTAL
$21.18
>
>
>
> Should you have a question about your order, or about other Fashion
Fantasies
> products, please reply to this message and let us help.
>
> Always reference your order number when calling for a status.
> Or you can check status via this URL:
>
>
http://www.fashionfantasies.net/cgi-bin/ff2/process?mv_session_id=x8he8DV4&m
v_pc=575&mv_username=U00010&mv_password=96822&mv_c$
>
> Remember, you can always visit our site at:
>
>     http://www.fashionfantasies.net/ff2
>
> Regards and thanks for your business!
>
> Fashion Fantasies
> 2575 Dole Street #339
> Anywhere, VA 20190
>
>
> FAX:
>


-----Original Message-----
From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
AddAction New Media
Sent: Sunday, December 09, 2001 4:37 AM
To: interchange-users@interchange.redhat.com
Subject: RE: [ic] Setting up SMTP, order e-mail sent to me but not to
'customer' BUG?


Are your DNS records setup correctly? You might receive the "store" e-mail
because it is the same server, but the "customer" e-mail might be misguided.
Check your mail log.

Anton

-----Original Message-----
From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
Christine Chaney
Sent: Sunday, December 09, 2001 3:20 AM
To: interchange-users@interchange.redhat.com
Subject: [ic] Setting up SMTP, order e-mail sent to me but not to
'customer' BUG?



BTW, in response to previous posts (2 problems: e-mail log out etc..) I am
not running on a red hat system...I am using a Solaris system hosted through
viaverio (formerly iserver).  As such the first e-mail problem I have tried
everything to uncover why sendmail will not work, and rooted out every
conceivable cause.  None was found, so I'm thinking that it's just the
virtual server environment.

After the fact I have set up SMTP and am now recieving orders to my orders
box.  My customers box doesn't get any e-mails.

After finding no documentation on how to deactivate sendmail.  If you don't
put anything it defaults.  I looked into the Util.pm (interchange/lib/Vend)
file and I understand enough about whats happening, but don't know how to
fix it or workaround it.

Search for SendMailProgram
you'll find this line:

my $using = $Vend::Cfg->{SendMailProgram};

Following this line you'll see a check to see if SendMailProgram=none or
Net::SMTP

Following this I set my Sendmailprogram variable in interchange.cfg to none
, also tried Net::SMTP

Doing this I got the orders to seller e-mails working.

Why aren't the e-mails to customer working?

I noticed in the code in Util.pm following, still tried to send the
customers message via sendmail thinking the path to sendmail was Net::SMTP
or none instead of setting up a function to send it instead via SMTP.  While
the orders to seller code didn't.

Bug?

Can anyone offer any help?

Christine

_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users


_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users

_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users