Click here to Skip to main content
15,895,084 members
Articles / Web Development / ASP.NET

sending email using localhost

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
24 Dec 2012CPOL 0  
Assuming your users can type, all you have to do is execute the line:toAddress = new MailAddress(myTextbox.Text);before you create the new MailMessage.[edit]Typo - forgot to change fixed string to use textbox content.[/edit]

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 24-Dec-12 21:15 Available OriginalGriff
Updates in content. 76 changes had been made.
1 No 24-Dec-12 9:05 Available OriginalGriff

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions