Forums

Don't get form email...contact email works fine?

spmckee 22 Jun, 2008
Greetings,

I have Chronoforms setup on a 1.0.15 install and I can't seem to get around this issue. I can send an email via the contact for and from the "email this article" links just fine but when I submit a cronoforms I don't get anything. When I enable bug testing it just says "email not sent".

Any ideas?

Thanks,
SP
spmckee 22 Jun, 2008
Here's the Debug report:

_POST: Array ( [name] => Sean-Paul McKee [email] => myemail@yahoo.com [submit] => Submit )
Case 1: Use table layout
E-mail: 'Yes' custom
Email not sent
GreyHead 23 Jun, 2008
Hi SP,

That looks fine as far as it goes. What is in the rest of the DeBug report, there should be a 'copy' of the results email as well. Does this show up? If so what is in it please?

Bob
spmckee 23 Jun, 2008
Bob,

Thanks for your reply. Here is the rest of the debug report:

E-mail message

From: []
To: myemail@yahoo.com,
Subject:
Name 	Sean-Paul
Email 	myemail@yahoo.com
submit 	Submit


Submitted by 67.50.255.146
GreyHead 24 Jun, 2008
Hi spmckee,

There's no From name or address in there so Joomla won't send the email. Please check that both the From & ReplyTo names and emails are complete in the General tab.

Bob
spmckee 24 Jun, 2008
Bob,

Thanks again for your help. I seem to have those filled in, at least I think it is correct. Please see the image for reference.

Thanks,
Sean-Paul
spmckee 24 Jun, 2008
Sorry, image was too big at first.
GreyHead 25 Jun, 2008
Hi spmckee,

It looks as though you may have the same address in the To & From fields - quite likely Yahoo will kill this as an incorrect message. Please try with a different address in Email to box.

Bob
spmckee 25 Jun, 2008
Bob,

I changed the email address but I am still getting the "email not sent" message in the debugger. Here is the result:

_POST: Array ( [name] => sdfkdshkljh [email] => myemail@solidstatic.com [submit] => Submit )
Case 1: Use table layout
E-mail: 'Yes' custom
Email not sent
E-mail message

From: []
To: myemail@sean-paul.com,
Subject:
Name 	sdfkdshkljh
Email 	myemail@solidstatic.com
submit 	Submit


Submitted by 71.182.82.58


What's really odd is that, even though I have entered an address in the "from" field it shows it as blank in the debugger. Could this be a bug or some other issue?

Thanks again for your attention on this!

-SP
spmckee 25 Jun, 2008
Well, I got it working.

The issue ended up being in the "Special Fields" tab. The first field reads:"Email field name must be a field name:" -BUT- if you rollover the tool tip it reads "...This field value must be a valid email address". So I was putting in an email address and it was breaking.

Thanks for all your help in getting me there Bob!
-SP
GreyHead 25 Jun, 2008
Hi spmckee,

Ah, yes it's the field **value** that has to be a valid address - the tooltip is really a hint to make sure it's validated.

Bob
rocky 26 Jun, 2008
I've build chron form in Joomla 1.5 but responder doesn't receive email. I've the faqs and installed debug. One of the results =

Parse error: syntax error, unexpected ',' in /home/urdv/domains/urdv.nl/public_html/voedingsonderzoek/components/com_chronocontact/chronocontact.php(565) : eval()'d code on line 37

Anyone an idea what to do.

cfbak has been attached.

Thanks in advance

Rocky
GreyHead 26 Jun, 2008
Hi rocky,

There's a glitch in your php here
<?php 
$recipient = $_POST[e_mail]; 
$html_message = "<p>Thank your for your entry in the UV</p>"; 
$subject = "Subject for the email"; 
// next line is broken
$from, $fromname, $recipient, $subject, $html_message ,true ;
?>
Bob
rocky 26 Jun, 2008
Thanks Bob and sorry, same error and still no email to responder.

Parse error: syntax error, unexpected ',' in /home/urdv/domains/urdv.nl/public_html/voedingsonderzoek/components/com_chronocontact/chronocontact.php(565) : eval()'d code on line 42

fyi, 2nd line is line 42:

// next line is broken
$from, $fromname, $recipient, $subject, $html_message ,true ;
?>

Perhaps another suggestion?

Regards

Rocky
GreyHead 27 Jun, 2008
Hi Rocky,

That line is garbage PHP - and it's causing the error.

You need to correct the PHP so that it does whatever it's supposed to.

Bob
rocky 27 Jun, 2008
Thanks again, with some (php)help from others my form works perfect now.

Final request: If responders receive an autoreply, sender is the email adress off my joomla basic server/configuration.

In the general page of my form (from Email) I have used another email address.

What have I to change so that responder will receive email of the address that is listed in the general page.

Thanks for your help and don't forget to enjoy your weekend!

Rocky
GreyHead 28 Jun, 2008
Hi Rocky,

You can change the ReplyTo address for your form in the General Tab, this will over-ride the setting in your server configuration.

Please be careful with this, email addresses here that your ISP does not recognise may stop emails being sent.

Bob
rocky 28 Jun, 2008
Sorry, Bob. But no.
I already had changed/configured that but still the basic emailadress is the sender. And even if I set 'no' on 'Email the results ?', I get those emails.

So I think it should be in 'on submit code'?

rgrds

R
GreyHead 29 Jun, 2008
Hi rocky,

Sorry, I didn't reqd back far enough. You are sending your own emails with the PHP code you posted earlier so you need to set the ReplyTo address in the same place.

Bob
rocky 30 Jun, 2008
I am afraid that I not clear enough Bob. See attachment. Using this form generates to mails:
1. one to admin conform data in general page = Okay
2. second one sends mail to responder. I want to use here the email adress [email]voedingsonderzoek@urdv.nl[/email] as sender, but when the mail arrives in the mailbox of responder it is [email]urdv@urdv.nl[/email] (server basis mail) who has sent it.

I think still something missing in the script??

rgrds
GreyHead 01 Jul, 2008
Hi Rocky,

If you use the PHP mail() funtion then you need to add the 'headers' parameter to do this (see the PHP manual).

But it's easier to use the Joomla sendMail function
$email_sent = JUtility::sendMail( $from, $fromname, $recipient, $subject, $html_message, 
true, $ccemails, $bccemails, $attachments, 
$replyto_email, $replyto_name );
and set values for the 'from' and 'replyto' variables.

Bob
rocky 01 Jul, 2008
That's the one, Bob.
Great and thansk for your help again!

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