[email protected] 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 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. Link to comment https://forums.phpfreaks.com/topic/35492-how-to-send-email/#findComment-167923 Share on other sites More sharing options...
[email protected] 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="[email protected]";$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 = "[email protected]";mail ("$to","$subject","$info","$from");[/code]but i dont know how to insert that line in the mail sender 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] Link to comment https://forums.phpfreaks.com/topic/35492-how-to-send-email/#findComment-167929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.