473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

send email fails

I want to send an email from a windows aplication using my yahoo account.
I got some help before but still it's not working.
The code is:
MailMessage msg;
MailAddress msender, receiver;

SmtpClient client;

msender = new MailAddress(tfrom.Text); // pa***@yahoo.com

receiver = new MailAddress(tto.Text);

msg = new MailMessage(msender,receiver);

msg.Subject = tsubject.Text;

msg.Body = @"this is a test";

client = new SmtpClient("smtp.mail.yahoo.com");

client.Credentials = new NetworkCredential("Pablo","mypassword");

try

{

client.Send(msg);

}

catch (Exception e1)

{

MessageBox.Show(e1.Message);

}

................

......................

It looks like the problem is with NetworkCredential, any help is very
apreciated.

TIA
Aug 8 '06 #1
0 913

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dhruv | last post by:
1. I'm trying to get the notifications working on the scheduled jobs. I want to email me when the job fails. I created an operator (dmalhotr) and given me as the email address. Here is the...
1
by: mfreeman | last post by:
I have a VB.NET 2005 Windows application that worked fine when I ran it a month ago, and now it is throwing an exception ("The remote server returned an error: (500) Internal Server Error.") and I...
1
by: terry_wall | last post by:
I am trying to add a cmdButton to an Access form. I would like to click the button, look up an email address in a database table, and execute Outlook with that email address ready to send an...
7
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
7
by: cj | last post by:
Has anyone figured out a way with VB2005 to send a numeric message to a pager using a common 56kb modem?
16
by: bgreer5050 | last post by:
I have a form with the following fields: UserEmail Subject Body When the form is submitted, the email is processed fine. When I try to add another field to the mm.body (mm.Body = Body.Text...
7
by: John Straumann | last post by:
Hi all: I am trying to write some code to send an email from an Assembly file, and found some examples on MSDN. However when I run the program (I am using a console app for testing), the email...
4
by: Samnang | last post by:
Hi, I have a list of email address of my customers, I would like to build an application that can send product promotion to them in regular once a week. I'm afraid that my email will deliver as...
4
by: gurufordy | last post by:
Hello. Trying to use the ASP.net user functionality but it keeps failing on me. I have created a login and registration page for my site. When you fill in the registration form it should send a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.