Email not sending

kdesilva 08 Dec, 2008
I don't know why .. I have a green form for the setup emails, and everything else is checked off the list. I get no errors when I go through the form, but I get no emails either!
GreyHead 08 Dec, 2008
Hi kdesilva,

Please turn DeBug on in the form General Tab and show us the output you get when you submit your form.

And while you are in the General Tab check that Send Emails is set to 'Yes' (or 'On', I forget which).

There's also a FAQ that talks about some common email problems.

Bob
kdesilva 08 Dec, 2008
emails set to yes,

turned debug on, but it just submitted and went to the redirect page...
GreyHead 08 Dec, 2008
Hi kdesilva,

Sorry, please remove the redirect url temporarily so that you can see the debug code.

Bob
kdesilva 08 Dec, 2008
I took off the redirect ... here's the output

* Form passed first SPAM check OK
* Form passed the submissions limit (if enabled) OK
* Form passed the Image verification (if enabled) OK
* Form passed the server side validation (if enabled) OK
* Form passed the plugins step (if enabled) OK
* Emails data loaded OK
* Form passed all before email code evaluation OK
* Debug End

_POST: Array ( [text_0] => test [text_1] => [email]test5@test5.com[/email] [text_2] => 33333 [select_3] => em5 [text_5] => test [chrono_verification] => alhtb [undefined] => Submit [3c896fe070b8c3cf3e242aee3b9f704e] => 1 )

GreyHead 08 Dec, 2008
Hi kdesilva,

Please check the 'Email the Results?' setting in the General Tab; and look at the Emails column in the Forms Manager - what do you see there?

Bob
kdesilva 08 Dec, 2008
I have some onsubmit code in there as I wanted the email to be sent to a different person depending on the field chosen under "interests"
kdesilva 08 Dec, 2008
Email the Results set to "Yes"
GreyHead 08 Dec, 2008
Hi kdesilva,

If you set up a simple test form with no OnSubmit code, is the email sent OK?

If so then probably your OnSubmit code needs debugging.

Bob
kdesilva 08 Dec, 2008
it's very simple code .. the form HTML is

<div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Name</label><input class="cf_inputbox required" maxlength="150" size="30" id="text_0" name="text_0" type="text"></div><div class="clear"> </div></div><div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Email</label><input class="cf_inputbox validate-email" maxlength="150" size="30" id="text_1" name="text_1" type="text"></div><div class="clear"> </div></div><div  class="form_item"><div class="form_element cf_textbox"><label class="cf_label">Phone</label><input class="cf_inputbox validate-number" maxlength="150" size="30" id="text_2" name="text_2" type="text"></div><div class="clear"> </div></div><div  class="form_item"><div class="form_element cf_dropdown"><label class="cf_label">Interested in:</label><select class="cf_inputbox validate-selection" id="select_3" size="1" name="select_3"><option value="em1">Civil & Structural Engineering</option><option value="em2">Mechanical Engineering</option><option value="em3">Building & Quantity Surveying</option><option value="em4">Valuation</option><option value="em5">Land Surveying</option></select></div><div class="clear"> </div></div><div  class="form_item"><div class="form_element cf_textarea"><label class="cf_label">Comments</label><textarea class="cf_inputbox" rows="3" id="text_5" cols="30" name="text_5"></textarea></div><div class="clear"> </div></div>

<div  class="form_item"><div class="form_element cf_captcha"><label class="cf_label">Verification</label><span>{imageverification}</span></div><div class="clear"> </div></div><div class="form_item"><div class="form_element cf_button"><input value="Submit" name="undefined" type="submit"></div><div class="clear"> </div></div>


And the OnSubmit code is:

<?php
    $emailslist = array('em1'=>'wlang@wal.bm', 'em2'=>'rmason@wal.bm', 'em3'=>'plowry@wal.bm', 'em4'=>'plowry@wal.bm', 'em5'=>'kevin.desilva@gmail.com');
    $emails[0]->to = $emailslist[$_POST['recipients']];
    ?>


Do you see anything I don't?
kdesilva 08 Dec, 2008
I had it working before, but for some reason now it's just stopped?
kdesilva 09 Dec, 2008
I made a new form and debugged it and got this

* Form passed first SPAM check OK
* Form passed the submissions limit (if enabled) OK
* Form passed the Image verification (if enabled) OK
* Form passed the server side validation (if enabled) OK
* Form passed the plugins step (if enabled) OK
* Emails data loaded OK
* Form passed all before email code evaluation OK
* Debug End

_POST: Array ( [text_0] => test [email_1] => [email]test@test.com[/email] [text_1] => 2222 [recipients] => em6 [text_3] => teet [chrono_verification] => pufih [undefined] => Submit [c4d9d450f7c827ba163b6aac09136e64] => 1 )

Max_admin 09 Dec, 2008
Hi kdesilva,

in your debug you have: [recipients] => em6 but your array above doesn't have a value for the key em6 !!?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kdesilva 09 Dec, 2008
That's only for the second form where I made an extra item in the select box for testing purposes ..
Max_admin 09 Dec, 2008
you add it in the onsubmit before email ? try to use a static email first, like:

$emails[0]->to = "you@email.com";
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.