Home

   Home

   Download


Help

   FAQ

   Installation

   Message Board

   Importing Data File
   Into GoldMine
   Into Act


Other

   Testimonies

   Custom Programming

   PHP Version


Other Favorites

   Hire a clean comedian

   Bible Search Engine

   Bible in a Year

   Parallel Bible

   The Richer Life










 





[ Message Board Home ]    [ Post Reply ]    [ Log In ]    [ Sign Up ]



  Subject: SMPT = localhost ??
  Posted: 03/24/2004 at 2:42:08 pm
  By: kael

How do we write the SMPT info in the bizmail.pl script when our hosting provider tells us to use "localhost"??

Sorry newbie here.

Thanks



  Subject: Re: SMPT = localhost ??
  Posted: 03/24/2004 at 7:27:58 pm
  By: Seth Knorr

If this is the case, then in bizmail.pl configure as follows:

$smtp_server = "localhost";



Seth



  Subject: Re: SMPT = localhost ??
  Posted: 03/25/2004 at 10:22:36 am
  By: kael

Yep - tried that and still no email is returned to us.

I double checked the email to in the script and it does read info\@mjaimpressions.com

Any other ideas?



  Subject: Re: SMPT = localhost ??
  Posted: 03/25/2004 at 2:03:39 pm
  By: Seth Knorr

Where is the HTML form located at?

I will test it from there.

Seth



  Subject: Re: SMPT = localhost ??
  Posted: 03/26/2004 at 1:17:20 am
  By: kael

Any luck with this



  Subject: Re: SMPT = localhost ??
  Posted: 03/26/2004 at 1:18:29 am
  By: kael

Our form is at http://www.mjaimpressions.com/clients/mine-marketing/contactus.html



  Subject: Re: SMPT = localhost ??
  Posted: 03/26/2004 at 5:55:48 am
  By: Seth Knorr

I did test your form with several email address's.

Everything looked like it was working but I never did get the auto-response email back. I realy don't know what to tell except, that your HOST'S SMTP server is probably not working or setup correctly.

Seth



  Subject: Re: SMPT = localhost ?? - new info
  Posted: 03/26/2004 at 10:23:51 am
  By: kael

Hi Seth,

After our ISP came back and told us that it's not the SMPT, they've told us the following..

==============After careful analysis, we have determined that the issues you are experiencing are related to the code your site is using. It turns out that I was wrong about the mail getting to the server properly... The script is sending a "to" address of:

<"Michael+Allen+of+Mining+Marketing"+

Note the invalid format... The first < needs to not be there.

Unfortunately, technical support is unable to assist customers with non-server issues such as site development and programming.
===============

Where abouts in the script would this type of information be stored??? I can't find it.

Thanks for your help



  Subject: Re: SMPT = localhost ??
  Posted: 03/26/2004 at 10:46:51 am
  By: Seth Knorr

In bizmail.pl IN VERSION 2.0:
You will find on Line 532:

$mail_sendto = "\"$reply_from_name\" <$FINAL_sendto>";


THIS HOWEVER IS THE CORRECT FORMAT. Any way this is not the problem you are having anyway. IT IS A SMTP problem. Because when you send the form results it does not USE a from name, it just sends them to your email you have configured as the sendto. So either:

a. you have a in-valid email for the sendto.

b. their SMTP setting are not working.

I would have to go with option (b) because as I stated I tested the form and everything worked fine, minus getting the results back. The only REAL REASON for this could be either

A. Server mis-configuration
B. Spam Filters
C. SMTP NOT PROPERLY SETUP

To test this though, I would check with them if they have any scripts they install for form processing. Then see from there (if they work) what SMTP server you are using. If they still can't help you, the only advice I can give you from here other than that, is to find a host that works.

Seth



  Subject: Re: SMPT = localhost ??
  Posted: 03/28/2004 at 1:10:55 pm
  By: kael




  Subject: Re: SMPT = localhost ??
  Posted: 03/28/2004 at 1:12:10 pm
  By: kael

Hi Seth,

Thanks for all your help. It's frustration becuase the hosting provider swears everything is correc to there end. I've gone through and through the script and found somethign of interest.

I noticed it says the path to the scripts should be..

Make sure the path to perl is correct.
(THIS IS LOCATED ON THE VERY FIRST LINE OF THE bizmail.pl script.)
By default it is set to: #!/usr/bin/perl

but we have ours loaded in a cg0bin folder.

Does this make a difference?

Thanks



  Subject: Re: SMPT = localhost ??
  Posted: 03/28/2004 at 1:56:29 pm
  By: kael

Also, curious, what are the permission CHMOD for the CGI-LIB.pl file and the Bizmail.pl file?



  Subject: Re: SMPT = localhost ??
  Posted: 03/28/2004 at 2:21:15 pm
  By: kael

Hi Seth,

Another quick question, regarding the script, we are using a windows server, yet I noticed the windows script referes to Unix settings. For example, within the windows script we downloaded, the instructions refer to UNix permissions, such as 777, 755, etc. Maybe this is causing the problem, but the script installed should definatley be the windows version. Can you shed some light on this.

Thanks.



  Subject: Re: SMPT = localhost ??
  Posted: 03/29/2004 at 9:10:45 am
  By: Seth Knorr

OK, firstly it is not a permissions or a path to perl problem, If it where you would get an internal server error. You however are not getting an internal server error you are just not getting your mail.

The only posible problems that it could be are the ones I posted on the previous post.

YES, I KNOW HOW IT FEELS. I also have had problems with hosting companies. They think they got it right but they don't.....

All I can tell you is that there is a SMTP problem. I would check with them and see if they have sendmail available. And if so let me know.

Seth




  Subject: Re: SMPT = localhost ??
  Posted: 03/29/2004 at 1:59:08 pm
  By: kael

Thanks for all your help with this Seth. Yes, it does get frustrating and confusing with one person says one thing, and the other another.

FYI we've refered the hosting provider tech support to this thread to see if it helps.

This is thier latest response:
---------
It's definitely the bizmail.pl script -- I'm basing this assumption off of what the mail server is logging, as it's throwing an "invalid from address" error when the bizmail.pl script is called -- It will then ignore all further SMTP commands, and fail to send anything at all.

I looked at the script for a while, and I was not able to locate anything on a cursory glance that would indicate where this was coming from.
-----------

Can you say FRUSTRATED - YES! Damn, in hindsight we should have gone with a $#@$#% Unix server!

We even re-downloaded the windows script and reset it up and still no emails come through.

In any regards, question unlrelated > sort of > why is it in the windows script we download there is reference to permission settings for Unix servers (the CHMOD)??

Thanks Seth



  Subject: Re: SMPT = localhost ??
  Posted: 03/29/2004 at 3:00:26 pm
  By: Seth Knorr

1. YES, I DO HAVE TO RE-WRITE THE WINDOWS README. YES CHMOD IS A LINUX ONLY TERM. However one reason it is there is because.

a. Unix techs that run Windows servers know what this means.
b. If you are in Cute ftp or some other ftp programs you can right click and left click to CHMOD and it will show you the UNIZ CHMOD permission equivalent even if you are on a windows server. This is help full for when you have a windows tech say, I set the permissions, BUT NOT REALY, and then you can check it there.

One other little tid bit. You may want to change the email that is comming from. (IT IS NICE THEY FINALY POSTED WHAT THE REAL PROBLEM IS)
Curently it is set to come from name="email" field in bizmail.pl

if you go to line 849, YOU WILL SEE:

$smtp->datasend("From: $formdata{'email'}\n");

IF ON THIS LINE YOU REPLACE:
$formdata{'email'}

WITH AN EMAIL ADDRESS, OTHER THAN THE ONE GETTING THE RESULTS, WITH THAT EMAIL ADDRESS BEING PROVIDED BY YOUR HOST, THAT SHOULD WORK.

But who knows it sounds like your host has some pretty tight security settings.

Seth



  Subject: Re: SMPT = localhost ??
  Posted: 03/30/2004 at 5:05:19 am
  By: mysticmcj

Hosting provider here... I'm curious as to why this isn't working as well. First of all, we have turned on extended logging in the mail server so we can look at what's actually going on. Im sure you all know precisely how "extended" windows SMTP service logging is...

Anyways, I was seeing this in the FROM line, before the SMTP server started throwing errors:

["Michael+Allen+of+Mining+Marketing"+[info@mjaimpressions.com]

Keep in mind that the brackets are actually angular brackets -- i changed them here in case they get confused as HTML tags, don't know how restrictive this form is.

This indicates to me that somehow the from address isn't quite sending properly.

I have looked through the script quite a bit -- I consider my self a bit of a PERL guru (and I'm also a UNIX guy myself) and I was unable to determine where this is coming from.

We do have others using SMTP on this server with success, but mostly via using CDONTS in ASP, or via FrontPage garbage, so I am not able to see what's going on at the SMTP level. If I'm not mistaken, CDONTS actually just drops the message directly in the mail queue, bypassing SMTP (well, at least initially)

I'm sure it's not permissions.

It's running ActiveState Perl 5.6.1.

I'll post more logs in a few. Any info that we can provide as a host, just let us know.



  Subject: Re: SMPT = localhost ??
  Posted: 03/30/2004 at 5:09:39 am
  By: mysticmcj

2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 EHLO - +localhost.localdomain 250 0 195 26
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 MAIL - +FROM:<********@hotmail.com> 250 0 44 31
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 RCPT - +TO:<"MiningMarketing"+<info@mjaimpressions.com> 501 0 27 52
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 DATA - - 554 0 0 4
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 to: - +"MiningMarketing"+<info@mjaimpressions.com> 500 0 32 47
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 from: - + 500 0 32 6
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 subject: - +BizMail+Contact+Form+-+Mining-Marketing+Web+Inquiry 500 0 32 60
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 content-type: - +text/plain 500 0 32 24
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 the - +form+below+was+submitted+by+*******@hotmail.com++++Ip+address:++XX.XX.0.30+++March+30,+2004+at+4:19AM 500 0 32 105
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 ------------------------------------------------------------------------- - - 500 0 32 73
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 plain_mesfile: - +plain.mes 500 0 32 24
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 firstname: - +Xxxxx 500 0 32 16
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 email: - +******@hotmail.com 500 0 32 26
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 tel: - +2121 500 0 32 9
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 003-source: - +Word+of+Mouth 500 0 32 25
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 inquiry: - +2121342asd 500 0 32 19
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 submit: - +Submit+Your+Inquiry 500 0 32 27
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 . - - 500 0 32 1
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 QUIT - localhost.localdomain 240 62 70 4
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 EHLO - +localhost.localdomain 250 0 195 26
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 MAIL - +FROM:<"MiningMarketing"+<info@mjaimpressions.com> 501 0 27 54
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 RCPT - +TO:<*****@hotmail.com> 503 0 33 29
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 DATA - - 503 0 0 4
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 to: - +*****@hotmail.com 500 0 32 23
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 from: - +"MiningMarketing"+<info@mjaimpressions.com> 500 0 32 49
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 subject: - +RE:+Steve,+your+inquiry+to+Mining-Marketing.com. 500 0 32 57
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 content-type: - +text/plain 500 0 32 24
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 . - - 500 0 32 1
2004-03-30 09:19:22 127.0.0.1 localhost.localdomain SMTPSVC1 WEB73 127.0.0.1 0 QUIT - localhost.localdomain 240 0 70 4



  Subject: Re: SMPT = localhost ??
  Posted: 03/30/2004 at 5:11:51 am
  By: mysticmcj

look at all the 503's -- those are invalid syntax errors from the SMTP server.

The 501 is SMTP complaining about the address -- either from or to.



  Subject: Re: SMPT = localhost ??
  Posted: 03/30/2004 at 5:19:03 am
  By: mysticmcj

err, rather the 500's are syntax errors - the 503's are "invalid sequence" errors.



  Subject: Re: SMPT = localhost ??
  Posted: 03/30/2004 at 6:23:31 am
  By: Seth Knorr

Here is probably the problem.

IN bizmail.pl ON LINE 532 YOU WILL SEE:

$mail_sendto = "\"$reply_from_name\" <$FINAL_sendto>";

REPLACE WITH $mail_sendto as the email you want to receive the mail:

$mail_sendto = "you\@yourdomain.com";

BE SURE TO INCLUDE THE \ BEFORE THE @

The actual problem is for what ever rason your server is changing all variables with space in the script, -OR- spaces in from email address to + signs.

This is why you have a configuration problem. If this is on the email client end, this would probably mean that you would not be able to get mail from just about any email client, due to the fact that almost all clients format there from and to email:

TO: "TO NAME" <to@you.com>
FROM: "FROM NAME" <from@me.com>

However some where this is getting translated to:

TO: "TO+NAME"+<to@you.com>
FROM: "FROM+NAME"+<from@me.com>

WHICH WILL OBVIOUSLY NOT WORK, BECAUSE THE + SIGN BETWEEN " AND <

If you have any further questions let me know.

Seth



  Subject: Re: SMPT = localhost ??
  Posted: 03/31/2004 at 12:53:25 am
  By: mysticmcj

That's a quirk of IIS logging -- It changes any spaces to a "+" simply for logging purposes, as it uses a space as a field seperator. I was able to verify this with my own tests.

The problem that stuck out in my mind was this:

<"MiningMarketing"+<info@mjaimpressions.com>

Note the < < > -- one of these doesn't belong. Specifically the first one.

However, it also appears that IIS smtp doesn't like specifying anything more than an email address when the MAIL FROM is spoken to SMTP. For example, you could do the following:

helo localhost
mail From: <test@testdomain.com>
rcpt To: <someone@elsewhere.com>
data
From: "Test account" <test@testdomain.com>
To: "Someone Else" <someone@elsewhere.com>
Subject: test message

This is a test!



but you couldn't do this

helo localhost
mail From: "Test Account" <test@testdomain.com>

it would break at that point.

The latter syntax DOES seem to work on Postfix, running on our unix boxes.

However, while it works, it doesn't appear to be RFC compliant - I was unable to find any reference to this particular syntax in the SMTP RFC, located at http://www.ietf.org/rfc/rfc0821.txt. Either that, or the Microsoft SMTP component in Win2k3 is just broken.

Regardless of the cause, changing the code to do a MAIL FROM: <email@address.com> and then specifying the From: "REAL NAME" <email@address.com> in the headers would get past this limitation, and still display properly in email clients -- nothing to lose, multi-platform compatability to gain.



  Subject: Re: SMPT = localhost ??
  Posted: 03/31/2004 at 6:08:36 am
  By: Seth Knorr

One final thought...

The format of the from:
<"MiningMarketing"+<info@mjaimpressions.com>

You are correct in saying that the begining < sign is malformated, and there should not be on.

However, just for future ref. for you, That < is not added by the script. It formats it correctly. It seems that for whatever reason your system adds that as well.

It almost looks like it is configured only to accept the email, and since the vaild format for an email only is
<email@domain.com>
It first sees the " and thinks it needs a < but then when it hits the space it then thinks it is an invalid email and dies. That is the only thing I can think of.

Seth



  Subject: Re: SMPT = localhost ??
  Posted: 03/31/2004 at 11:15:53 pm
  By: kael

Thanks for all your help with this guys.

Hosting Provider? I re-tried the script and still not working. Any luck with this yet? We're desperate to get a working contact form going today! Fingers crossed you found out what's happening.

Thanks Host provider, looking forward to your reply.



  Subject: Re: SMPT = localhost ??
  Posted: 03/31/2004 at 11:21:10 pm
  By: kael

Host provider, can you explain your reply in more detail that we can work with to understand where we need to do the get this script working to send email to the info@mja.....com email address?

Thanks



  Subject: Re: SMPT = localhost ??
  Posted: 04/01/2004 at 12:16:38 am
  By: mysticmcj

Even so...

i don't think that first '<' is really the problem, i think you are right, it's probably added by the SMTP server.

The syntax of the "Mail From:" in general is the bigger issue. If we can get that to say simply the email address, as opposed to email address + full name, we will be good.

There's not a whole lot we can do to configure this on our end. Microsoft SMTP is not the most flexible application.

Do you know of anyone else using this script on a windows box with MS SMTP?



  Subject: Re: SMPT = localhost ??
  Posted: 04/02/2004 at 6:47:23 am
  By: Biscuits

Dear Seth

PLEASE don't give up because of probs caused by different systems / ISP's / Mail progs, etc

I have been using PC's since '75 & I have experienced these probs & more, especially in the last 10 yrs ( since the net became very popular ) BUT we just have to deal with it as programmers until we get a standard.

You're doing GREAT.

Tony



  Subject: Re: SMPT = localhost ??
  Posted: 04/02/2004 at 7:19:04 am
  By: Biscuits

Hi there kael

I suggest you try a different host.
Have you tried the script else-where ?
Just checked it on a freebie in OZ.
Might make the difference !!!

Tony



  Subject: Re: SMPT = localhost ??
  Posted: 04/02/2004 at 2:53:35 pm
  By: Seth Knorr

Tony, I definately won't give up. Actualy almost everything I program and make available is stuff I am using myself, and out of need. I create everything however on Linux, and am not a fan nor use Windows, because all the problems you run into, plus the major security Issues. But I try, to help Windows users when they can be helped.....

Seth



Reply To This Topic

Subject
Message  
Username
Password
Due to unrelated post's, you must have an
account to post a message. To Sign Up click here.




Copyright 2000-2010 Seth M. Knorr,
BizMailForm.com Forms Processor, All Rights Reserved