rempires Posted November 7, 2007 Share Posted November 7, 2007 soo here we go, again anyway, i'm trying to use th php mial function, i tried setting up postcast server and failed miserably... so i went the route of Microsoft's iis (ya, i'm a failure). so anyway i at first got that lovely like 550.XX... error so i went and set up a relay through the local host(127.0.1). know when i try to send the mail it gives no error message or anything, but the place is end it to never receives it . i'm mainly trying yahoo, but i thought maybe there blocking me, so is ent it to a server antoehr one of my sites is osted on, and tht ever receive it eater. BTW: i'm running WAMP + iis server smtp mail on windows XP pro(64bit) $email = $row[0]; $message = "I'm just a lonely test message, that won't work......"; $from = "From: Destination Chicago <[email protected]>"; mail ($email, "Password Reset", $message, $from); thanks, john Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/ Share on other sites More sharing options...
Daukan Posted November 7, 2007 Share Posted November 7, 2007 Did you set your sendmail values in the php.ini file? Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386271 Share on other sites More sharing options...
rempires Posted November 7, 2007 Author Share Posted November 7, 2007 [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [email protected] i wan't sure what sendmail_from was sposed to be i was wondering if maybe it'sbecuase i'm rnning a 64bit os? Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386279 Share on other sites More sharing options...
Daukan Posted November 7, 2007 Share Posted November 7, 2007 SMTP has to point to a mail server. Use the one your isp gave you. Mine looks something like this SMTP = mail.optonline.net Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386280 Share on other sites More sharing options...
rempires Posted November 7, 2007 Author Share Posted November 7, 2007 even when i specify that it doesn't work [mail function] ; For Win32 only. SMTP = smtp.mail.yahoo.com ; For Win32 only. sendmail_from = *ME*@yahoo.com Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386287 Share on other sites More sharing options...
Daukan Posted November 7, 2007 Share Posted November 7, 2007 I didn't know yahoo was also a internet service provider try removing the smtp SMTP = mail.yahoo.com You should be generating an error anyway put error_reporting(E_ALL); at the top of your script Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386289 Share on other sites More sharing options...
rempires Posted November 7, 2007 Author Share Posted November 7, 2007 Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.mail.yahoo.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\passwordRetrieval.php on line 126 hello, i found this on yahoo website Outgoing (SMTP) Server: smtp.mail.yahoo.com (Use SSL, port: 465, use authentication) is there anyway i can do that? Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386295 Share on other sites More sharing options...
Daukan Posted November 7, 2007 Share Posted November 7, 2007 Try changing the port then smtp_port = 465 SMTP = smtp.mail.yahoo.com Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386303 Share on other sites More sharing options...
rempires Posted November 7, 2007 Author Share Posted November 7, 2007 Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.mail.yahoo.com" port 465, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\passwordRetrieval.php on line 126 since the yaoo page said to use authentication, is there a way do you know if i can send my yahoo log in data this way, to authenticate me Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386305 Share on other sites More sharing options...
Daukan Posted November 7, 2007 Share Posted November 7, 2007 I think that is for ssl. Is Yahoo your ISP or just for mail? Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386309 Share on other sites More sharing options...
rempires Posted November 7, 2007 Author Share Posted November 7, 2007 isp and email, they offer dsl service around here, well technically at&t does but it's merged with yahoo... kinda screwy... but yahoo are the servers i connect to to get online. Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386311 Share on other sites More sharing options...
Daukan Posted November 7, 2007 Share Posted November 7, 2007 I would ask your isp how to do it or you could use pear or phpMailer which is a pretty good. I don't think it is possible to send authentication with php's mail function Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386319 Share on other sites More sharing options...
rempires Posted November 7, 2007 Author Share Posted November 7, 2007 ya, i set up phpmailer a few in ago i get this error using port 25 Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.mail.yahoo.com:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\wamp\www\includes\class.smtp.php on line 105 so i decided to change to 465 like yahoo says There has been a mail error sending to [email protected] ... i think i'm gonna try using the smtp server thatgmail offers and see if that woks any better, since have an account there Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386320 Share on other sites More sharing options...
rempires Posted November 7, 2007 Author Share Posted November 7, 2007 sigh so i'm trying to use phpmailer to do this know and i get an error generated by the php mailer Warning: fputs(): supplied argument is not a valid stream resource in C:\wamp\www\includes\class.smtp.php on line 146 Warning: fgets(): supplied argument is not a valid stream resource in C:\wamp\www\includes\class.smtp.php on line 1024 There has been a mail error sending to [email protected] this only happens when i turn authentication on, which i guess makes sense, but i do populate the vars $mail->SMTPAuth = "true"; $mail->Username = "my username"; $mail->Password = "my pasword"; $mail->Port = 465; ... any idea what would be causing this error, as this appears to be on my servers side? Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386336 Share on other sites More sharing options...
Daukan Posted November 7, 2007 Share Posted November 7, 2007 can you send mail using an email client like outlook or thunderbird? Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386355 Share on other sites More sharing options...
rempires Posted November 7, 2007 Author Share Posted November 7, 2007 yup, i just tested sing outlook smtp.mail.yahoo.com pop.mail.yahoo.com usign username, password port 465 and an ssl connetion i think the ssl connection is what's stopping me from doing this i php, is the a way i could make php do this ssl? Link to comment https://forums.phpfreaks.com/topic/76300-another-mail-question/#findComment-386376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.