Hi,
I need to login integration with yahoo api, I need to get log in user's informations like Name and Email...
I need example here,It's urgent .. please help
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raja ARank #4,480 · 341 reputationPosted Jan 27, 2016, 12:23 AM EST
Prem Anandh JRank #8,962 · 213 reputationPosted Jan 27, 2016, 12:57 AM EST
Raja ARank #4,480 · 341 reputationPosted Jan 27, 2016, 1:27 AM EST
Prem Anandh JRank #8,962 · 213 reputationPosted Jan 27, 2016, 1:45 AM EST
Raja ARank #4,480 · 341 reputationPosted Jan 27, 2016, 2:33 AM EST
Prem Anandh JRank #8,962 · 213 reputationPosted Jan 27, 2016, 12:02 AM EST
using System.Net; using System.Net.Mail; string smtpAddress = "smtp.mail.yahoo.com"; int portNumber = 587; bool enableSSL = true; string emailFrom = "[email protected]"; string password = "mypass"; string emailTo = "[email protected]"; string subject = "Hello"; string body = "Hi, am sending mail from apllication..."; using (MailMessage mail = new MailMessage()) { mail.From = new MailAddress(emailFrom); mail.To.Add(emailTo); mail.Subject = subject; mail.Body = body; mail.IsBodyHtml = true; mail.Attachments.Add(new Attachment("C:\\readonly.txt")); mail.Attachments.Add(new Attachment("C:\\welcome.zip")); using (SmtpClient smtp = new SmtpClient(smtpAddress, portNumber)) { smtp.Credentials = new NetworkCredential(emailFrom, password); smtp.EnableSsl = enableSSL; smtp.Send(mail); } }