Jump to content

Recommended Posts

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.......

Link to comment
https://forums.phpfreaks.com/topic/108425-curl-example-needed/
Share on other sites

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;
?>

Link to comment
https://forums.phpfreaks.com/topic/108425-curl-example-needed/#findComment-555857
Share on other sites

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...

Link to comment
https://forums.phpfreaks.com/topic/108425-curl-example-needed/#findComment-555896
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.