By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

send email from windows aplication..

P: n/a
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#.
Aug 4 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi,

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

What do you mean by the yahoo server?
On Fri, 04 Aug 2006 03:56:08 +0200, fanor <xf*****@hotmail.comwrote:
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#.



--
Happy Coding!
Morten Wennevik [C# MVP]
Aug 4 '06 #2

P: n/a
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.
"Morten Wennevik" <Mo************@hotmail.comwrote in message
news:op***************@tr024.bouvet.no...
Hi,

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

What do you mean by the yahoo server?
On Fri, 04 Aug 2006 03:56:08 +0200, fanor <xf*****@hotmail.comwrote:
>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#.


--
Happy Coding!
Morten Wennevik [C# MVP]

Aug 4 '06 #3

P: n/a
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..

Fanor wrote:
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.
"Morten Wennevik" <Mo************@hotmail.comwrote in message
news:op***************@tr024.bouvet.no...
Hi,

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

What do you mean by the yahoo server?
On Fri, 04 Aug 2006 03:56:08 +0200, fanor <xf*****@hotmail.comwrote:
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#.



--
Happy Coding!
Morten Wennevik [C# MVP]
Aug 5 '06 #4

P: n/a
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{ "so******@somewhere.com.au" , "Someone's Name" }
sender := MailAddress{ "se****@here.com.au" , "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

--
Paul
----

VO/Vulcan.NET Development Team Member
http://www.vulcandotnet.com.au

Aug 5 '06 #5

P: n/a
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

Paul Piko wrote:
You can use yahoo to send email if the account has been configured to allow
it.
Aug 5 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.