send email from windows aplication..

  • Thread starter Thread starter fanor
  • Start date Start date
F

fanor

I have a windows aplication and i would like to send email.

Does anyone one know what is the yahoo server???

TIA

PD: my aplication is in VS 2005 and c#.
 
Hi,

To send mail you need System.Web.Mail.SmtpMail

What do you mean by the yahoo server?
 
I have my account in yahoo and i wnat to use that acoount to send emails.
In order to do that i need to know the name of yahoo's email server.
 
You need to use an SMTP server to be able to send an email. You can not
use yahoo or hotmail servers to send emails from your windows
applications. They do not reveal their server's details

You can contact your network team for the SMTP details or if you have a
web host, you can the smtp server details from them or your ISP..
 
You need to use an SMTP server to be able to send an email. You can not
use yahoo or hotmail servers to send emails from your windows
applications. They do not reveal their server's details

You can use yahoo to send email if the account has been configured to allow
it. The code below is written in Vulcan.NET but you shouldn't have any
trouble converting it to whatever language you're using.


USING System.Net
USING System.Net.Mail

FUNCTION Start() AS VOID
LOCAL msg AS MailMessage
LOCAL client AS SmtpClient
LOCAL subject, body AS STRING
LOCAL receiver, sender AS MailAddress

receiver := MailAddress{ "(e-mail address removed)" , "Someone's Name" }
sender := MailAddress{ "(e-mail address removed)" , "Sender Name" }

subject := "Using the SMTP client"
body := "Hello"

msg := MailMessage{ sender, receiver }
msg:Subject := subject
msg:Body := body

client := SmtpClient{ "smtp.mail.yahoo.com" }
client:Credentials := NetworkCredential{ "username", "password" }

client:Send( msg )

RETURN
 
Exactly my point.. if you know the smtp details.. I thought Yahoo or
Hotmail, by default does not reveal their server info.. may be the POP3
service they provide does? I never used it .. so can not comment on it
 
Back
Top