This topic is locked

Nobody

8/12/2008 5:25:36 PM
PHPRunner General questions
C
caro author

I have edited the event "After the Page added" in order to sent to my e-mail Address a e-mail with all Data from the Form.

I receive such e-mail with all Data from the Form, but all Data results to be sent by "nobody", what makes

a big Confusion and I can non destingueish therefor different Senders.

Is there any Way to impose by events Code or anything els to receive such e-mails with Form Data instead from "nobody" , from

the Senders e-mail Address.

In this Way I could answer to the Sender simply by clicking at "Replay" Botton.

I am using PHPR 4.2.379

Thanks,

Danielecar

J
Jane 8/13/2008
C
caro author 8/16/2008

Hi,

please check following thread:

http://www.asprunner.com/forums/index.php?showtopic=8137


Thanks Jane

However I could not take use of Your Addvise to solve the Problem, mosteprobabile because I am not capable of inserting or editing PHP Code, or insert it in the right Place.
I use the FORM:

Visit My Website

to colect the Data from Visitors from my Web Site

I have configured After Add event to send me the e-mail with full Data from the Form, like this:
//** Send email with new data ****
$email="info@hostessmanagement.eu";

$message="";

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

$message.= $field." : ".$value."\r\n";
mail($email, $subject, $message);
This is the Example what I receive as e-mail:
nobody

to me
show details 20:18 (23 hours ago)
Reply
nome : Marta

cognome : Herdegenová

email : marticka.h@seznam.cz

periodo di lavoro : 1 mesic

italiano : aj - aktivne, fj, nj - pasivne

nazionalita : ceska

anno nascita : 1986

altezza : 170

peso : 65

seno : 92-65-95

mese foto : unor

anno foto : 2008

luogo : Praha

inizio lavoro : 18.8.2008

esperienze di lavoro : ano

cellulare : 777 310 054

telefono :

comento :

approvo le condizioni di lavoro : ano

ID : 4284

Rep
The Problem is the FROM Field-that in e-mail results always as: nobody.

This makes a big confusion at controlling my incoming e-mail box and further in Replaying from my e-mail Client , to Visitors that has supplied the Data using the Form at my Web Site created with PHPRunner(4.2.379).
Can You help me to solve this Problem???

J
Jane 8/18/2008

Try to use following code:

$email="info@hostessmanagement.eu";

$message="";

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

$message.= $field." : ".$value."\r\n";
// Additional headers

$headers = 'From: Anybody <test@example.com>' . "\r\n";
// Mail it

mail($email, $subject, $message, $headers);

C
caro author 8/20/2008

Try to use following code:



Thanks Jane
However this is what I receive as e-mail:
from Anybody <test@example.com>

to hostessmanagement@gmail.com

date 20 August 2008 18:51

subject From: Anybody <test@example.com>

mailed-by opus21.register.it
hide details 18:51 (18 minutes ago)
Reply
email : Hell.Angel.in.Black@seznam.cz

nome : dsfdd

cognome : dfdfd

periodo di lavoro : dfd

italiano : dd

nazionalita : kjuk

anno nascita : iopp

altezza : à ò
That what I need is instead of :

from Anybody <test@example.com>
to receive:

from e-mail:

from: Hell.Angel.in.Black@seznam.cz
Concider that each Time the from e-mail Address is different .
Can You please give me the exact Code I should write instead of the above one, in the event Function AFTER RECORD ADDED??
Thanks,

Danielecar

J
Jane 8/21/2008

Hi,
here is a sample:

...

// Additional headers

$headers = 'From: <".$values["email"].">' . "\r\n";
// Mail it

mail($email, $subject, $message, $headers);

C
caro author 8/21/2008

Hi,

here is a sample:


Thanks Jane, however this is the the Code:
$email="info.immagine@gmail.com";

$message="";

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

$message.= $field." : ".$value."\r\n";
// Additional headers

$headers = 'From: <".$values["email"].">' . "\r\n";
// Mail it

mail($email, $subject, $message, $headers);
and this is what I receive in my e-mail:
from ".$values["email"]."@opus16.register.it

to info.immagine@gmail.com

date 21 August 2008 13:21

subject Modulo IT

mailed-by opus16.register.it
hide details 13:21 (39 minutes ago)
email : verdi@alis.it

nome : ,m,

cognome : uj

disponibilita :

ingaggio :

ingaggio x localita mare :

approvo le condizioni di lavoro : hytt

nazionalita : tt

anno nascita : h

altezza : hg
INSTEAD OF :

from ".$values["email"]."@opus16.register.it
I would like to receive:
from: verdi@alis.it
which is just one of hundreds of users sending the Form Data.This means the sender e-mail Address is variable and is one of

many Form Data requested and mandatory to be fulfilled by sender.
Can You please try to generate a Code producing the e-mail Result as I would like to receive??
Thanks,

Danielcar

J
Jane 8/21/2008

Sorry for my fault.

Here is the correct code:

...

// Additional headers

$headers = "From: <".$values["email"].">" . "\r\n";

...

C
caro author 8/22/2008

Sorry for my fault.

Here is the correct code:


Hi, Jane
That is it!!!

Thanks a lott.

Danielecaro