Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need some help .. sombody?

    the problem is this
    i wanna send the results from a php line to my e-mail


    Code:
     @$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

  • #2
    Regular Coder
    Join Date
    Oct 2006
    Location
    Bristol
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts
    use the php mail() function. In your case it would be:
    Code:
    $message = user:'.$login.' password:'.$pass."  none\n";
    
    mail('youremail@youremail.com', 'My Subject', $message);
    Hope this helps
    Alex

  • #3
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Alex! View Post
    use the php mail() function. In your case it would be:
    Code:
    $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);
    Last edited by jully6969; 01-24-2007 at 10:08 AM.

  • #4
    Regular Coder
    Join Date
    Oct 2006
    Location
    Bristol
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts
    use
    Code:
    $message = "user:'.$login.' password:'.$pass.'";
    Alex

  • #5
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Why not just use
    PHP Code:
      $message "user:".$login." password:".$pass."  none\n"mail('youremail@youremail.com''My Subject'$message


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •