This topic is locked

Email replay to author of posted ad

10/12/2008 1:12:46 AM
PHPRunner General questions
L
Lorenbond author

I'm using 4.2 build (379) Classified template
From a post in the main list I have a link to Main_view.php where in that record veiw I have a link to Reply_add.php
When Reply_add.php is called it displays the following fields
Email

FullName

Subject
I need help with code used to populate these fields with the author of the posted ad and the code used to send the email.
Thanks in advance, Loren Bond

C
caro 10/13/2008

I'm using 4.2 build (379) Classified template

From a post in the main list I have a link to Main_view.php where in that record veiw I have a link to Reply_add.php
When Reply_add.php is called it displays the following fields
Email

FullName

Subject
I need help with code used to populate these fields with the author of the posted ad and the code used to send the email.
Thanks in advance, Loren Bond


If You do not resolve the Problem there is one other Way to answer to contact Your Visitors:

Configure PHPRunner to SENT E-MAIL AFTER THE RECORD WAS ADDED.

You can than replay to Your Visitors from Your e-mail Client, where Records arrive.

However in the EVENT for SENDING E-MAIL AFTER THE RECORD WAS ADDED, there must be the Code in this Way:

$email="Your e-mail";

$message="";

$subject="subject";
foreach($values as $field=>$value)

$message.= $field." : ".$value."\r\n";
$headers = "From: <".$values["email"].">" . "\r\n";
mail($email, $subject, $message, $headers);
In this Way You will receive the mail where it will be sufficient just to click at "Replay" Button to Address the Sender.
Regards,

Caro