This topic is locked

Sent email to Table Owner from the Add Page

11/1/2014 2:56:22 PM
PHPRunner General questions
S
simonedan author

Sorry, Image Links where false.I've corrected them:
This is the the Personal Card Table:


with the Booking Link in the Top of it.

While clicking on the Booking Link the Booking Table Form is opend:


Afterreccord added Event is set to sent a email to Adm:


and Adm receives the email:


It would be very usefull that the Tabeleowner(Personal Card Owner), receives the same email.

Obviously a Event code, different than that one as above(aimed to sent email to Adm)should be added.

How this Event code should look like and which one of the following Events should be used:

Sergey Kornilov admin 11/4/2014

I guess you can use something like

$email=$values["EmailFieldName"];



or

$email="ffffff@gmail.com,".$values["EmailFieldName"];
S
simonedan author 11/7/2014



I guess you can use something like

$email=$values["EmailFieldName"];



or

$email="ffffff@gmail.com,".$values["EmailFieldName"];



Thanks, Sergej, I will try it and place here the Result.

I guess only the first one of Your 2 Solutions can be the correct one.The second one not, as far as I understand, while it specified the single email.The email should be sent to any Table Owner, while Booking his Profile.

The should be absolutely the same Function as sending email while in "Send Reply" from the Classified View Page.

I wanted, in fact, to copy and paste that code from "Send Reply" Classified Event, but the problem was, that in the Classified Template this email results as send, but the Classified Owner dos not receives that mail at all.To copy e code that dos not works dos not make sense.
You did not specify in which of Events to insert the code.I will try to insert it Before record added.

Sergey Kornilov admin 11/8/2014

Use the same event you already been using. According your screenshots you use use AfterAdd event. It will work the same way in BeforeAdd event.

S
simonedan author 11/13/2014



Use the same event you already been using. According your screenshots you use use AfterAdd event. It will work the same way in BeforeAdd event.


Thanks, Sergey

Must say I have some thoughts this will solve the Problem.

With the actual Event Code as AfterAdd Email is sent to the Site Administrator(is not the Table Owner).If I insert the same Code as BeforeAdd, You mean the Email will be sent to the Table Owner, not to Administrator any more ?

May be I am not clever to explain what I want(to sent email to the Table Owner).

Repeat once again the Feature should be absolutely the same one as that of sending email to Classified Owner in "Send Reply" from the Classified Template View Page:

Sergey Kornilov admin 11/13/2014

Unfortunately it makes very little sense to me. If you have a valid support contract post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.
Probably it will be easier to decipher once I can see your project and database.