Forums

From email didn't work [solved] now upload problem

oschikhof 04 Apr, 2008
In the first tab of your form you can fill in the sender's adress.
It is default set to [email]admin@example.com[/email]. I have changed this into the address that I want it to be, but when I submit the form, the sender is unknown and there is no e-mailaddress to reply to.

I have searched on this forum if I am the only one with this problem, but I haven't found a solution. Anyone an idea what to do now?

Thanx!

P.S. I have used the debug modus and this is the result:

From: [] <--- stays empty????
To: [email]xxxx@xxxxx.xx[/email], [email]xxx.xxxxx@xxxxxx.com[/email]
Subject: <--- stays empty????

Post edited by: oschikhof, at: 2008/04/03 21:44

Post edited by: oschikhof, at: 2008/04/03 21:44

========================================================
I also filled in the specials and that is what caused the problem..


Sorry!!<br><br>Post edited by: oschikhof, at: 2008/04/03 21:59
GreyHead 04 Apr, 2008
Hi oschikhof,

Yes, if you put field names in the Special Fields tab they will (mostly) overwrite the values in the General tab - and it's up to you to make sure that the fields return 'good' values' for emails etc.

Bob
oschikhof 04 Apr, 2008
It was a bit confusing for me but I found the testform that you can install by using restoreform and that helped me out well!

There's only a small point left..I have already searched on this forum and partly found a solution.
Emailaddress validation wasn't working. Then I found in a topic that changing prototype into mootools would do the trick.
It did, until I deliberately filled in the word "test" as an e-mailaddress..
First it said, not a valid address, but when I clicked on submit again, it was sended anyway.

Is there also a possibility by blocking this as long as for example in this case, the emailaddress is still not valid.

Believe it or not but I see people filling in their name only instead of an emailaddress and then they complain that the form doesn't work๐Ÿ˜Ÿ

Best regards!

Owen<br><br>Post edited by: oschikhof, at: 2008/04/04 19:01
Max_admin 05 Apr, 2008
Hi Owen,

So you say that other validation rules work fine but the emailaddress rule doesn't work alone ? Can I see this form online some where ? there must be something wrong, you may have a space beside the field name in the validation tab or some file got corrupted but this can't happen!!๐Ÿ™‚

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
oschikhof 20 May, 2008
Yeah you were right, did something wrong out there..
It got solved anyway!

Something that I ran into today, file uploading...
Strange thing is, if I send a file and it's not really big, then it's being sent with mail (like it should) but for example a file of 1 Mb, is not being sent by mail.
It is uploaded, I find it in the upload directory, permission are ok (thanx to another post in this forum).

Anyone an idea how to solve this?
I first got some blank screens etc, so I already changed the session handling to none (also other topic) and I extended the execution time. It helped with other problems, but no "large" files were included.

I haven't found the border yet, but for example file 14kb -> mail, file 600 kb -> uploaddir and not in mail.

Untill so far it always has been something simple, hopefully this time it's me again๐Ÿ™‚
GreyHead 20 May, 2008
Hi oschikhof,

That sounds like some kind of site or mailserver limit. Best check with your isp.

Bob
oschikhof 20 May, 2008
Hi Bob,

The php.ini can be overruled on some points, so I already changed the upload limit from 2M to 10M...
Still a file from 2M gives me the following problem.

During the upload, I get a blank screen, the file has been uploaded to the upload directory, but (probably because of the blank screen), no e-mail at all...also no thank you page.
Something's going wrong during the submitting..
I also changed the execution time that you mentioned in another topic as a solution. It's has been upgraded from 30 to 120.

Unfortunately due to the blank screen I still don't know what the problem is and if the file will now be attached to the e-mail..

Any idea? Maybe other php settings?
Here's a link to the info file:
http://www.korporaal.nl/info.php

Thanx!

Owen
oschikhof 20 May, 2008
In addition to my previous message...
A file of 430 kb worked perfectly, a file of 650 kb gives a blank screen....

What the @$^$%@^ can this be???? :blink:

I have used the debug function which sends me information on a white screen (instead of the debuginformation in the site template)..

This is displayed:

_POST: Array ( [geslacht] => heer [naam] => .........
(more form fields........> 
[hobbies] => [salaris] => [vragen] => [submit] => Verzenden ) 
Case 2: Use template
E-mail: 'Yes' custom


Something missing here as well????
GreyHead 21 May, 2008
Hi aschikhof,

Yes, there should be a an 'Email sent' or 'Email not sent' message after that which suggests that the crash is between those two lines. But that includes sending the email - so doesn't really help much.

Try setting error reporting to Maximum and see if you get any more helpful messages.

Bob
Max_admin 22 May, 2008
Hi oschikhof,

This is strange, lets do some hack to help us track the problem, open chronocontact.php, find this line :
$email_sent = JUtility::sendMail($from, $fromname, $recipient, 
$subject, $html_message, true, $ccemails, $bccemails, 
$attachments, $replyto_email, $replyto_name );
add this line before it :
if ( $debug) { echo "We are about to email<br />"; }
now the debug shows you what ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Artem 25 May, 2008
I have the same problem, but in Chrono Forms V2.3.9 J1.0. I do not in the line chornocontact.php $ email_sent = JUtility: sendMailface-meh-blank
oschikhof 26 May, 2008
Hi, the following has been displayed:

_POST: Array ( [geslacht] => heer [naam] => ......[vragen] => test upload [submit] => Verzenden )
Case 2: Use template
E-mail: 'Yes' custom
We are about to email


You're code is displayed, the page is still blank with this text only...
Very strange still...hope you have something new for me now, which gets us a step ahead :-)

Greetz Owen
oschikhof 01 Jun, 2008
Nobody there to help me out?
GreyHead 02 Jun, 2008
Hi oschikhof,

I have no idea what the problem might be๐Ÿ˜Ÿ Max may be able to help but I think he's been busy elsewhere.

Bob
oschikhof 19 Jun, 2008
Pleazzzz anyone who has a clue what my problem causes? It's so frustrating that somewhere betwee, 400 and 600kb the form just stops to include the attachment.
It's still uploaded to the website but the people who have to work with the form are not really into these things so they complain that downloading the attachments is too complicated for them.

They just want to have it included in their mail..
GreyHead 19 Jun, 2008
Hi oschikhof,

I have still no idea what might cause this. Can't you just add a download link in the email and remove the attachment entirely?

Bob
oschikhof 20 Jun, 2008
Hi Bob,

Any idea how I can do that? Including the downloadlink?

Greetz Owen
GreyHead 20 Jun, 2008
Hi Owen,

If you use an email template then you can include a link like:
<a href='<?php echo $attachments['field_name']; ?>'>Click here to download</a>
where 'field_name' is the name of the file upload form field.

You could also add it to the standard results email by having a empty hidden field like
<input type="hidden" name="file_link" value="" />
and setting the value in the 'OnSubmit before' box:
<?php
$_POST['file_link'] = 
    "<a href='".$attachments['field_name']."' 
    >Click here to download</a>";
?>
Note: not tested so may be buggy!

There is more about uploaded file info in a new FAQ here.

Bob
This topic is locked and no more replies can be posted.