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 <administrator@destinationC.com>"; mail ($email, "Password Reset", $message, $from); thanks, john Quote Link to comment 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? Quote Link to comment 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 = you@yourdomain.uni.cc i wan't sure what sendmail_from was sposed to be i was wondering if maybe it'sbecuase i'm rnning a 64bit os? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 me@yahoo.com ... i think i'm gonna try using the smtp server thatgmail offers and see if that woks any better, since have an account there Quote Link to comment 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 me@yahoo.com 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? Quote Link to comment 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? Quote Link to comment 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? Quote Link to comment 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.