redarrow Posted June 2, 2008 Share Posted June 2, 2008 advance thank you..... i have built a database mailing system, the client got a normal msn account, i want to be able to select the current email address from a user and let the admin post back but within there msn account... can some one post an example with the curl php function and imap function to acheve this pleae cheers.... any links that a user has setup my goal please give a example....... thank you........ so a user posts a message to the database the message will have the user's email address so if i want the admin to send a email to the client but using his current msn email account.. please help.... ps...... i am not asking to use the php mail function to acheve this i want a curl function or imap function that let the admin use there name and password and send from a msn account....... Quote Link to comment https://forums.phpfreaks.com/topic/108425-curl-example-needed/ Share on other sites More sharing options...
redarrow Posted June 2, 2008 Author Share Posted June 2, 2008 below ia a example, This will let you into your yahoo account using curl function.. i want the same to let me into msn.com and use the mail account to post a email...... how? <?php $url ="http://login.yahoo.com/config/login?.src=ym&.intl=us&.partner=&.done=http%3A%2F%2Fmail.yahoo.com%2F"; $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt ($ch, CURLOPT_COOKIEJAR, '/temp/cookie.txt'); curl_setopt ($ch, CURLOPT_POSTFIELDS, "login=emailid&passwd=password&&submit=Sign In"); ob_start(); curl_exec ($ch); ob_end_clean(); curl_close ($ch); unset($ch); $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_COOKIEFILE, "/temp/cookie.txt"); curl_setopt($ch, CURLOPT_URL,"http://us.f515.mail.yahoo.com/ym/login?"); $result = curl_exec ($ch); curl_close ($ch); echo $result; ?> Quote Link to comment https://forums.phpfreaks.com/topic/108425-curl-example-needed/#findComment-555857 Share on other sites More sharing options...
.josh Posted June 2, 2008 Share Posted June 2, 2008 I think you should probably be looking at msn messenger's documentation.... Quote Link to comment https://forums.phpfreaks.com/topic/108425-curl-example-needed/#findComment-555865 Share on other sites More sharing options...
redarrow Posted June 2, 2008 Author Share Posted June 2, 2008 where do i get the documention please ive tried hard at this but no joy please help......... Quote Link to comment https://forums.phpfreaks.com/topic/108425-curl-example-needed/#findComment-555876 Share on other sites More sharing options...
.josh Posted June 2, 2008 Share Posted June 2, 2008 are you seriously asking me to go find some 3rd party's documentation for you? You would think after 5600 posts you would have learned how things go around here. Quote Link to comment https://forums.phpfreaks.com/topic/108425-curl-example-needed/#findComment-555888 Share on other sites More sharing options...
redarrow Posted June 2, 2008 Author Share Posted June 2, 2008 i got the forum off msn http://forums.fanatic.net.nz/index.php?s=fba22e15bc5d0410e7545a64f2174ad5&showforum=107 i no how to get the info from google but i need the relevent url info that what i find hard... like the url there using in the current posted yahoo code.... you right to point out that i am being quit lazy but i am well stuck... Quote Link to comment https://forums.phpfreaks.com/topic/108425-curl-example-needed/#findComment-555896 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.