C
|
cgphp 9/27/2011 |
In the "Before record added" event, check if for the field_1 an email address exists in the Table_B using a custom query. If so, send an email message to that address. $rs = CustomQuery("SELECT email_field_name FROM TABLE_2 WHERE id_field_name=".$values['field_1_name']." AND email_field_name IS NOT NULL LIMIT 1"); |
![]() |
ladykathleen author 9/30/2011 |
In the "Before record added" event, check if for the field_1 an email address exists in the Table_B using a custom query. If so, send an email message to that address. $rs = CustomQuery("SELECT email_field_name FROM TABLE_2 WHERE id_field_name=".$values['field_1_name']." AND email_field_name IS NOT NULL LIMIT 1");
|
![]() |
ladykathleen author 9/30/2011 |
It seems that php does not like the CustomQuery |
C
|
cgphp 9/30/2011 |
I thought that the field values was numeric. Insert quotes around the field value. Here it is the fixed code: $rs = CustomQuery("SELECT email_field_name FROM TABLE_2 WHERE id_field_name='".$values['field_1_name']."' AND email_field_name IS NOT NULL LIMIT 1"); |
![]() |
ladykathleen author 9/30/2011 |
I thought that the field values was numeric. Insert quotes around the field value. Here it is the fixed code: $rs = CustomQuery("SELECT email_field_name FROM TABLE_2 WHERE id_field_name='".$values['field_1_name']."' AND email_field_name IS NOT NULL LIMIT 1");
|
C
|
cgphp 9/30/2011 |
Be sure the SMTP directive in the php.ini file is correctly set. [mail function] |
![]() |
ladykathleen author 9/30/2011 |
Be sure the SMTP directive in the php.ini file is correctly set. [mail function]
|
![]() |
ladykathleen author 9/30/2011 |
That is mostly likely my problem on that.. Thanks again..
|
C
|
cgphp 10/1/2011 |
On other platforms, PHP should use the locally available sendmail or sendmail drop-in just fine. |
![]() |
ladykathleen author 10/4/2011 |
On other platforms, PHP should use the locally available sendmail or sendmail drop-in just fine.
|
![]() |
Sergey Kornilov admin 10/5/2011 |
As a first step - make sure simple email works. Create a test PHP file name test.php and run it in browser <?php
|
![]() |
ladykathleen author 10/5/2011 |
As a first step - make sure simple email works. Create a test PHP file name test.php and run it in browser <?php
|
C
|
cgphp 10/5/2011 |
Check if the query result is empty. Try to echo the record before the if statement: echo $record['email']; |
![]() |
ladykathleen author 10/5/2011 |
Check if the query result is empty. Try to echo the record before the if statement: echo $record['email'];
|
![]() |
ladykathleen author 10/5/2011 |
OK I think I figured out what is wrong.. |
![]() |
ladykathleen author 10/5/2011 |
Ok I changed this $rs = CustomQuery("SELECT email FROM jobsjob2 WHERE Title='".$values['JobApplyingfor']."' AND email IS NOT NULL LIMIT 1"); |
![]() |
ladykathleen author 10/5/2011 |
OK I worked out this so far |