PDA

View Full Version : cgiemail question



GofBorg
19-Mar-2012, 21:51
I've had a working cgiemail setup for going on years now, but after updating
my website recently I am having problems with the first field in the form
getting dropped out resulting in the form successfully being generated but
not being delivered.

Here is the generated code for a dropped field:

<code>

<table border="0" cellspacing="0" cellpadding="0" width="535">
<tr valign="top" align="left">
<td width="15" height="18"><img
src="../assets/images/autogen/clearpixel.gif" width="15" height="1"
border="0" alt=""></td>
<td></td>
</tr>
<tr valign="top" align="left">
<td height="22"></td>
<td width="520"><input type="text"
id="FormsEditField13" name="Company" size="65" maxlength="65" style="width:
516px; white-space: pre;"></td>
</tr>
</table>
</td>
</tr>
</table>

</code>

Here is the generated code for a working field.

<code>
<table border="0" cellspacing="0" cellpadding="0" width="433">
<tr valign="top" align="left">
<td width="17" height="16"><img
src="../assets/images/autogen/clearpixel.gif" width="17" height="1"
border="0" alt=""></td>
<td></td>
</tr>
<tr valign="top" align="left">
<td height="22"></td>
<td width="416"><input type="text"
id="FormsEditField2" name="Industry" size="52" maxlength="52" style="width:
412px; white-space: pre;"></td>
</tr>
</table>

</code>

And here is the form template:

To: info@notreal.com
Subject: Inquiry

[Company]
[Industry]
[State]
[City]
[Volume]
[Line]
[Contact]
[How]
[Keywords]

The Company= field is being dropped (see below, abc is test data) yet
resulting in a success page:


The following email message was sent.
To: info@notreal.com
Subject: Inquiry

abc <-----------Problem is here should be Company=abc
Industry=abc
State=abc
City=abc
Volume=abc
Line=abc
Contact=Name:abc
Address1:abc
Address2:abc
Address3:abc
Phone:abc
E-Mail:abc
Website:abc
Twitter:abc
Facebook:abc
Notes:abc
How=Google
Keywords=abc
Submit=Submit

cgiemail 1.6

My understanding from reading on cgiemail if all fields are not populated
it will state that the email is sent, but it really isn't. The cgiemail at
the web host is a compiled binary and I have spoken with them and their
answer is "We don't support scripts." (Even though it is provided in their
hosting cgi-bin directory.) ; )

Any ideas?

Simon Flood
19-Mar-2012, 22:29
On 19/03/2012 20:51, GofBorg wrote:

> I've had a working cgiemail setup for going on years now, but after updating
> my website recently I am having problems with the first field in the form
> getting dropped out resulting in the form successfully being generated but
> not being delivered.
>
> Here is the generated code for a dropped field:
>
> <code>
>
> <table border="0" cellspacing="0" cellpadding="0" width="535">
> <tr valign="top" align="left">
> <td width="15" height="18"><img
> src="../assets/images/autogen/clearpixel.gif" width="15" height="1"
> border="0" alt=""></td>
> <td></td>
> </tr>
> <tr valign="top" align="left">
> <td height="22"></td>
> <td width="520"><input type="text"
> id="FormsEditField13" name="Company" size="65" maxlength="65" style="width:
> 516px; white-space: pre;"></td>
> </tr>
> </table>
> </td>
> </tr>
> </table>
>
> </code>
>
> Here is the generated code for a working field.
>
> <code>
> <table border="0" cellspacing="0" cellpadding="0" width="433">
> <tr valign="top" align="left">
> <td width="17" height="16"><img
> src="../assets/images/autogen/clearpixel.gif" width="17" height="1"
> border="0" alt=""></td>
> <td></td>
> </tr>
> <tr valign="top" align="left">
> <td height="22"></td>
> <td width="416"><input type="text"
> id="FormsEditField2" name="Industry" size="52" maxlength="52" style="width:
> 412px; white-space: pre;"></td>
> </tr>
> </table>
>
> </code>
>
> And here is the form template:
>
> To: info@notreal.com
> Subject: Inquiry
>
> [Company]
> [Industry]
> [State]
> [City]
> [Volume]
> [Line]
> [Contact]
> [How]
> [Keywords]
>
> The Company= field is being dropped (see below, abc is test data) yet
> resulting in a success page:
>
>
> The following email message was sent.
> To: info@notreal.com
> Subject: Inquiry
>
> abc <-----------Problem is here should be Company=abc
> Industry=abc
> State=abc
> City=abc
> Volume=abc
> Line=abc
> Contact=Name:abc
> Address1:abc
> Address2:abc
> Address3:abc
> Phone:abc
> E-Mail:abc
> Website:abc
> Twitter:abc
> Facebook:abc
> Notes:abc
> How=Google
> Keywords=abc
> Submit=Submit
>
> cgiemail 1.6
>
> My understanding from reading on cgiemail if all fields are not populated
> it will state that the email is sent, but it really isn't. The cgiemail at
> the web host is a compiled binary and I have spoken with them and their
> answer is "We don't support scripts." (Even though it is provided in their
> hosting cgi-bin directory.) ; )
>
> Any ideas?

If the code of both broken and working fields areas above then the thing I
notice with the broken field is </table> is repeated twice.

HTH.
--
Simon
Novell/SUSE/NetIQ Knowledge Partner

GofBorg
20-Mar-2012, 18:23
I chopped off a bit of the Company table that's why there is the extra
/table. Thanks for looking.

GofBorg
20-Mar-2012, 20:41
Okay, I found the issue with the field getting dropped,
it was a page encoding issue...needed to be set in my
app in a little dropdown window.

Still not getting the submitted form via email, but that
seems to be another issue. Making progress anyway!

GofBorg
20-Mar-2012, 20:48
Can't tell you how much I hate hosted websites!!!
They %%@$^!$@!$ change the #%@^@$%%@#% configurations
so %#@%^@#%#@% much that you never know %@#%@#%!%
is going ON. Just spent the last %%@#%^@%$^@!$$!$@#$@$@!$@!
2 days chasing a problem that should NOT HAPPEN!!!!!!!
IF you change the %#$!@^@%!@$*(%(!@#U$%*&!$ provider of your
script mail relays at least have the %$#@$%^@$%#@$!@$!@$!@$
decency to INFORM YOUR CUSTOMERS!!!!!!!

Jim Henderson
20-Mar-2012, 21:58
On Tue, 20 Mar 2012 19:48:57 +0000, GofBorg wrote:

> Can't tell you how much I hate hosted websites!!!
> They %%@$^!$@!$ change the #%@^@$%%@#% configurations so %#@%^@#%#@%
> much that you never know %@#%@#%!%
> is going ON. Just spent the last %%@#%^@%$^@!$$!$@#$@$@!$@!
> 2 days chasing a problem that should NOT HAPPEN!!!!!!!
> IF you change the %#$!@^@%!@$*(%(!@#U$%*&!$ provider of your script mail
> relays at least have the %$#@$%^@$%#@$!@$!@$!@$ decency to INFORM YOUR
> CUSTOMERS!!!!!!!

8/10

Would've been a perfect 10 rant if you'd not run it through spellcheck
first. ;)

Jim



--
Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10
Novell Knowledge Partner

GofBorg
21-Mar-2012, 16:27
:)

JayZie
26-Jun-2012, 17:50
On 3/20/2012 3:48 PM, GofBorg wrote:
> Can't tell you how much I hate hosted websites!!!
> They %%@$^!$@!$ change the #%@^@$%%@#% configurations
> so %#@%^@#%#@% much that you never know %@#%@#%!%
> is going ON. Just spent the last %%@#%^@%$^@!$$!$@#$@$@!$@!
> 2 days chasing a problem that should NOT HAPPEN!!!!!!!
> IF you change the %#$!@^@%!@$*(%(!@#U$%*&!$ provider of your
> script mail relays at least have the %$#@$%^@$%#@$!@$!@$!@$
> decency to INFORM YOUR CUSTOMERS!!!!!!!
>

I give it a 6.

GofBorg
26-Jun-2012, 20:55
>
> I give it a 6.

LOL. Playing catch up are we?

JayZie
26-Jun-2012, 21:41
On 6/26/2012 3:55 PM, GofBorg wrote:
>>
>> I give it a 6.
>
> LOL. Playing catch up are we?
>

Yessir we are... You know me... I have to add my 2cents on RANTS no
matter how old :-D