Email does not send.

828LES 11 Aug, 2008
Hi, my form seems to work, redirects to right place on submit, but does not send email. Do I have to setup anything in the form to make this happen?

I have the To, From, Subject, From Name set and have tried various email addresses.

Can anyone help?
GreyHead 11 Aug, 2008
Hi 828LES,

There is a buggy version of chronocontact.php around that fails like this if you use a ReDirect URL. Remove the ReDirect URL and check that everything works OK - if it does then search the forums here for 'chronocontact.php' and you should easily find the fixed version.

Bob
828LES 11 Aug, 2008
Thanks for the answer, GreyHead.

I tried the new chronocontact.php, but got a "could not instantiate email" message.

It doesn't send email if I leave out the redirect either.

With the new chronocontact.php, it gives the could not instantiate error, and with the old chronocontact.php it just returns the blank page, but no email is sent either way.

Could I be doing something else wrong?
GreyHead 11 Aug, 2008
Hi 828les,

The "could not instantiate email" message suggest that you don't have mail set up properly for your site. Check the Global Configuration | Server |Mail Settings block and make sure this is configured correctly for your site. There are three different options - some only work on some sites, just which depends on your ISP.

Bob
828LES 11 Aug, 2008
Hi again, and thanks again GreyHead...

I tried all three email options in Global Configuration, but to no avail.

My regular joomla contact form is sending email fine, and the debug msg tells me email has been sent, using 'sendmail' option, but it still doesn't appear. I've checked junk mail and tried different To: addresses.
Max_admin 11 Aug, 2008
Hi 828les,

Which Chronoforms version do you have installed ? and please tell me whats the result with its own chronocontact.php file comes with it!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
828LES 11 Aug, 2008
Hi Max,

I have v3.0 for Joomla 1.5

The result with the original chronocontact.php is that no email is sent, but the data is stored and can be viewed.

Here is the result with debug on:

_POST: Array ( [Name] => test 9 [Email] => [email]me@example.com[/email] [Comment] => This is test 9. [Submit] => Submit )
Case 1: Use table layout
E-mail: 'Yes' custom
Email sent
E-mail message
From: []
To:
Subject:

Name test 9
Email [email]me@example.com[/email]
Comment This is test 9.
Submit Submit
Reset
Max_admin 12 Aug, 2008
Hi 828les,

indeed no clues for this, did you try different receiver emails ? it says "Email sent", this means joomla managed to send the email, check your junk ? try to use SMTP email ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 12 Aug, 2008
Hi 828les,

It does say email sent but the To address is empty which is probably why nothing is being sent. What do you have in the Email Address(es): box on the General tab?

Bob
Max_admin 12 Aug, 2008
Hi Bob,

he has V3.0, no email addresses in the general tab, I think I didn't prepare the DEBUG code well, fixing many things in BETA 2

Regards,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
828LES 12 Aug, 2008
I finally got this working this morning, but am not sure why, other than maybe I finally got the right combinations of to and from emails, and the right global configuration for send email.

I kept trying different emails for the To: block of the 'Setup Emails' tab. Sometimes it would show the 'email properties' box and sometimes it wouldn't. Now it seems to show consistently and the 'enabled' option remains 'yes'. It is working with two email addresses that wouldn't work previously.

Thanks for all your help, Max and GreyHead.

I will go buy the license.
randy270 21 Aug, 2008
It's unfortunate that the solution for this problem remains something of a mystery, because I'm having exactly the same issue.

If I set the Global Configuration Mailer to sendmail, I do get the same debugging message that the email is sent, but nothing shows up on the other end. The file is uploaded, however. We just don't receive any notification.

_POST: Array ( [firstname] => first [lastname] => last [email] => [email]myemail@domain.net[/email] [file] => file.jpg [submit] => Submit )
Case 1: Use table layout
E-mail: 'Yes' custom
Email sent

If I switch it to PHP Mailer, it won't mail at all. I get an error message. Same for SMTP.
GreyHead 21 Aug, 2008
Hi randy270,

The last couple of posts were a little different as they were with the 3.0 beta.

We do know that mailing works well with 2.5 provided that everything is set up correctly. Please check FAQ 36 and make sure in particular that you can send email from your Joomal installation. You may need to check with your ISP what the correct config settings are.

Bob
randy270 22 Aug, 2008
I've tested the email function within Joomla using the Mass Mail function, and that works fine. The email was sent and received. But I've combed and combed this Chronoform for something that was not quite right, and I can't find a thing. Files upload but the email is not getting sent despite the debugging function telling me otherwise.

Then I created another very simple form without the upload, and that didn't work either.

I have the Global Configuration set to use sendmail and the application does exist on my host's server.

And yes, I've checked FAQ 36. Nothing seems to be missing.

I did get this to work for another site uploaded and installed at another host, but those forms don't have upload functions. So, I know that this works, but not with this installation. It'd help if there were some log file I could read to see how the process unfolds.

😟
Max_admin 22 Aug, 2008
Hi randy,

Can I see screenshots of your general tab and special fields tab ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
randy270 25 Aug, 2008
Not to speak too soon, but amazingly enough, for some reason it all just started to work at some point -- not unlike the previous poster -- sort of.

I get the notification at one address, a test address I set up with Yahoo, but notification won't come to the other address I listed. I suspect it's a spam filter thing, except that it's a gmail address that will at least show me the spam before I delete it.

Another question: Can I configure this so that the uploaded file is NOT emailed as well? Emailing the attachment kind of defeats the purpose of this feature for me.

Anyway, here's the screen shots:

[attachment=1]gentab.jpg[/attachment]

[attachment=0]specialfields.jpg[/attachment]
Max_admin 25 Aug, 2008
Hi Randy,

Clear the Email field at the special fields tab!

to disable attachments, add
$attachments = NULL;
just before the mail function line in your chronocontact.php, if you can't find the line then tell me your Joomla version and I will writ the line for you here!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
randy270 25 Aug, 2008
Max,

Thanks. Yeah, I'm going to need you to either tell me which line number to apply that code or to write the line for me.

I'm using Joomla v. 1.5.4
Max_admin 26 Aug, 2008
$email_sent = JUtility::sendMail($from, $fromname, $recipients, $subject, $email_body, $mode, $ccemails, $bccemails, $attachments, $replyto_email, $replyto_name );
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
randy270 26 Aug, 2008
So it should read:

$email_sent = JUtility::sendMail($from, $fromname, $recipients, $subject, $email_body, $mode, $ccemails, $bccemails, $attachments = NULL, $replyto_email, $replyto_name );

Correct?
Max_admin 26 Aug, 2008
No, dont change the line itself, just add $attachments = NULL; over it!
$attachments = NULL;
$email_sent = JUtility::sendMail($from, $fromname, $recipients, $subject, $email_body, $mode, $ccemails, $bccemails, $attachments, $replyto_email, $replyto_name );
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
serta 26 Aug, 2008
I had the same problem. I would get the "Could not instantiate mail function" error when I would try to send an email from chrono forms. My email would work fine otherwise, for example when I created a new account they would be sent an email successfully.

I was using version 3...I tried beta 1 and beta 2. When I used version 2.5 the mail works but I am not interested in 2.5 because the functionality doesn't compare to version 3. Hopefully they will get this fixed soon.
randy270 27 Aug, 2008

No, dont change the line itself, just add $attachments = NULL; over it!

$attachments = NULL;
$email_sent = JUtility::sendMail($from, $fromname, $recipients, $subject, $email_body, $mode, $ccemails, $bccemails, $attachments, $replyto_email, $replyto_name );



Max, the line of code you sent me is somewhat different than what is in the original file. Note that your line has two extra elements not in the original line ($email_body, and $mode,) and is missing an element found in the original line ($html_message, true,). I restored this last element and the results page returns, but the email that gets sent is empty of both text (bad) and attachment (good). File does get uploaded.

It seems that if I don't include $email_body, $mode,, the upload and email function works and writing $attachments = NULL; does stop the attachments.

In the last test I sent out, I finally noticed another odd anomaly. I have the results emailed to three addresses, a Yahoo address, a Gmail address, and my company address. The company address for whatever reason gets sent out to /html@art270.com, when it should be randy-at-art270.com. So, to mix things up, I moved that address to last, and I changed the From Email: field to another company address. That seems to have fixed the /html@art270.com problem.

But for whatever reason, I'm not getting the results email sent to my address at randy-at-art270.com. I guess I have to blame that on the mail server, because the other test addresses are receiving the results message just fine, albeit over 15 minutes later.
GreyHead 27 Aug, 2008
Hi radny270,

Just for clarity - the code in CF 2.5 is
$email_sent = JUtility::sendMail($from, $fromname, $recipient, 
$subject, $html_message, true, $ccemails, $bccemails, $attachments, 
$replyto_email, $replyto_name );

and in CF 3.0 it is
$email_sent = JUtility::sendMail($from, $fromname, $recipients, 
$subject, $email_body, $mode, $ccemails, $bccemails, $attachments, 
$replyto_email, $replyto_name);


Bob
randy270 29 Aug, 2008
So, just to update my situation and to share my growing knowledge of Chronocontact and all-things-Joomla, I discovered why I wasn't receiving email notifications to my company's address. We're using Google Apps to handle all email sent to our domain, and there is an issue with attempts to send mail generated by forms on our domain to ourselves. This issue is addressed here:

http://www.google.com/support/a/bin/answer.py?answer=55299

We contacted our web host, and they reconfigured our mail server to properly obey the MX record for the domain. Problem fixed.

Another issue:

The email notifications aren't listing the file that gets uploaded. The email shows the name and email address, but not the file. What's missing?

Thanks.
Max_admin 29 Aug, 2008
this needs a hack to get the file name, look at it here in the forums, we fixed that in V3.


good luck!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
randy270 29 Aug, 2008
Can you suggest a search term to find this solution or point me to the posting itself? Sorry to be such a bother.

Or, if the full version of V3 is imminent, I might be able to wait for that. Thanks!
Max_admin 29 Aug, 2008
Hi randy,

well, BETA 2 is not too bad, only few glitches which will not affect the normal usage and remember you can upgrade easily to any V3 later!🙂

you should search for $_FILE I think!

Regards,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
randy270 02 Sep, 2008
Max,

When I search for $_FILE the system strips the non-alpha characters and reads it as file. I tried placing quotes around it, but that doesn't work either.

Randy
Max_admin 02 Sep, 2008
Hi Randy,

find this line in chronocontact.php:

$uploadedfile = handle_uploaded_files($original_name, $filename);


add under it :

$_POST[$allowed_s2[0]] = $filename;


cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
randy270 02 Sep, 2008
Beee-yooooo-tee-ful!!!

Works great. Thanks!!
Max_admin 02 Sep, 2008
No problems!🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
luykmhm 05 Sep, 2008
Hello there

I' m working with version 3 beta2 and joomla 1.5.6. I get the message: could not instantiate mail function. The email is not been send out. The email function within joomla however works ok (i tested mass mail). The parameters to, subject, from name, from email are filled. I have a green light in the email tab. What is the problem??

Best regards
Marcel
Max_admin 05 Sep, 2008
Hi Marcel,

maybe they are filled but with wrong values, show me what they are filled with in a PM!

Cheers

MAx
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
luykmhm 05 Sep, 2008
Max

I' ve send you an PM with my emailsettings and a debug example. Hope you find the problem

Best regards
Marcel
luykmhm 06 Sep, 2008
Hi Max

a new PM is send to you with the emailsettings and some debuginformation

Best regards
Marcel
Y2J 07 Sep, 2008
Hello There,

I am new to Joomla and this advanced form system, and I would really love to get working in my site, I am using Joomla 1.5.6 And CF 3.0 beta 2 , and tried many things already users posted here but with no luck.

Right now I get the following Message error with My message sent confirmation that I made.

Kindly pay a look

Dear {text_2}

Your order has been successfully submitted, 

Fatal error: Call to a member function on a non-object in /home/earscom/public_html/hosting/components/com_chronocontact/chronocontact.php(578) : eval()'d code on line 10


No Message is received and I am not able to set E-mail Enabled to Yes in E-Mail Properties. Any advice ?!

My Configuration:

Email does not send. image 1

Email does not send. image 2

Big Edit:

It's Working now.
Everyone you should read the 3rd PDF file in the tutorial section. Thank you so much
luykmhm 07 Sep, 2008
Hi max

there is new info in your PM.

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

VPS & Email Hosting 20% discount
hostinger