15,663,225 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Python questions
View Javascript questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by manoharnch (Top 37 by date)
manoharnch
4-Jan-12 9:07am
View
no sir, for text flds
manoharnch
4-Jan-12 6:51am
View
string Body = "User Name :" + Txt_Name.Text + Environment.NewLine + ", " + Environment.NewLine + "Contact No :" + Txt_Contact.Text + Environment.NewLine + ", " + Environment.NewLine + "Email :" + Txt_Email.Text + ", " + "Address :" + "'" + Txt_Address.Text + "'";
But i am not getting mail in this format
Raj
asf
asdf
asdf
it is in asdf, asdf, asdf, asdf
manoharnch
4-Jan-12 6:46am
View
string Body = "User Name :" + Txt_Name.Text+", " + "Contact No :" + Txt_Contact.Text + ", " + "Email :" + Txt_Email.Text + ", " + "Address :" +"'"+ Txt_Address.Text+"'";
manoharnch
4-Jan-12 6:46am
View
I tried it but not working
manoharnch
4-Jan-12 6:45am
View
i need it in c#
manoharnch
4-Jan-12 6:45am
View
I need it in c#
manoharnch
28-Dec-11 4:56am
View
if i remove it i am getting this errors:
Error 1 'MailMessage' is an ambiguous reference between 'System.Web.Mail.MailMessage' and 'System.Net.Mail.MailMessage' F:\web sites\help php\contactus.aspx.cs 22 9 F:\web sites\help php\
Warning 2 'System.Web.Mail.MailMessage' is obsolete: 'The recommended alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?linkid=14202' F:\web sites\help php\contactus.aspx.cs 22 9 F:\web sites\help php\
Error 3 'MailMessage' is an ambiguous reference between 'System.Web.Mail.MailMessage' and 'System.Net.Mail.MailMessage' F:\web sites\help php\contactus.aspx.cs 22 32 F:\web sites\help php\
Warning 4 'System.Web.Mail.MailMessage' is obsolete: 'The recommended alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?linkid=14202' F:\web sites\help php\contactus.aspx.cs 22 32 F:\web sites\help php\
Error 5 'string' does not contain a definition for 'Add' F:\web sites\help php\contactus.aspx.cs 23 17 F:\web sites\help php\
Error 6 The name 'to' does not exist in the current context F:\web sites\help php\contactus.aspx.cs 23 21 F:\web sites\help php\
Error 7 The name 'from' does not exist in the current context F:\web sites\help php\contactus.aspx.cs 24 37 F:\web sites\help php\
Error 8 The name 'subject' does not exist in the current context F:\web sites\help php\contactus.aspx.cs 25 24 F:\web sites\help php\
Error 9 The name 'body' does not exist in the current context F:\web sites\help php\contactus.aspx.cs 26 21 F:\web sites\help php\
Error 10 'System.Web.Mail.MailMessage' does not contain a definition for 'IsBodyHtml' F:\web sites\help php\contactus.aspx.cs 27 14 F:\web sites\help php\
Error 11 The name 'yourid' does not exist in the current context F:\web sites\help php\contactus.aspx.cs 31 61 F:\web sites\help php\
Error 12 The name 'yourpassword' does not exist in the current context F:\web sites\help php\contactus.aspx.cs 31 69 F:\web sites\help php\
Error 13 The best overloaded method match for 'System.Net.Mail.SmtpClient.Send(System.Net.Mail.MailMessage)' has some invalid arguments F:\web sites\help php\contactus.aspx.cs 32 9 F:\web sites\help php\
Error 14 Argument '1': cannot convert from 'System.Web.Mail.MailMessage' to 'System.Net.Mail.MailMessage' F:\web sites\help php\contactus.aspx.cs 32 19 F:\web sites\help php\
manoharnch
28-Dec-11 4:42am
View
yes sir i have done it in my code i have edited my email id and password, but i am getting this error :
1. A using namespace directive can only be applied to namespace; 'System.Net.MailMessage' is a type not a name space
manoharnch
28-Dec-11 4:30am
View
yes i have done it, thanks
manoharnch
28-Dec-11 4:26am
View
We have 15 projects to work out, we dint have any office to so searching for people to work
manoharnch
28-Dec-11 4:21am
View
it is not for advertising also if advertising i can provide u company name etc right ?
manoharnch
28-Dec-11 4:20am
View
100000000000% it is not spam
manoharnch
28-Dec-11 4:20am
View
this is not spam if you can do work tell me
manoharnch
28-Dec-11 4:15am
View
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="contactus.aspx.cs" Inherits="contactus" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Height="22px" Text="Label" Width="51px">Name
<asp:TextBox ID="to" runat="server"><br />
<br />
<asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" />
manoharnch
28-Dec-11 4:13am
View
Its not SPAM its true
manoharnch
28-Dec-11 4:12am
View
still it is not working sravani garu
manoharnch
28-Dec-11 4:08am
View
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Mail;
public partial class contactus : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MailMessage mail = new MailMessage();
mail.To.Add(to);
mail.From = new MailAddress(from);
mail.Subject = "subject";
mail.Body = "hi how are you";
mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587); // add port 587
smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new System.Net.NetworkCredential("manohar.nch@gmail.com", "000999");
smtp.Send(mail);
}
}
please update this one
manoharnch
2-Dec-11 2:15am
View
Deleted
Reason for my vote of 1
not good
manoharnch
23-Sep-11 7:31am
View
Already we have done this, we need the extinction in browser popup dropdown.
manoharnch
15-Sep-11 3:51am
View
Great sir...... whr r u from
manoharnch
15-Sep-11 3:11am
View
thank u sir, but i am new to this php and html i am in to c#...
can u plz give me the code how to add this in html page ?
";
$to = "<to.yahoo.com>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$host = "ssl://smtp.gmail.com";
$port = "465";
$username = "<myaccount.gmail.com>";
$password = "password";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");
}
?> <!-- end of php tag-->
manoharnch
8-Sep-11 3:37am
View
close(); method is not working sir.
i need to show user to form1 opened do u want to close the form1 YES NO
if YES form1 should close and form2 should open.
manoharnch
8-Sep-11 3:32am
View
yes, all 1 to 25 forms are in main MDIFORM. form1 also in MDIFORM
manoharnch
7-Sep-11 2:02am
View
When we click on submit, it is opening MSOUTLOOK
manoharnch
7-Sep-11 2:01am
View
I tried it, but it is not working....
manoharnch
26-Aug-11 3:21am
View
Yes i can hear MP3 FILE and all, but not this one
manoharnch
11-Aug-11 4:08am
View
Yes i already taken datetimepicker and hided it, when the user clicks on textbox the user can see the calender, but i am not getting the selected date in textbox.
manoharnch
9-Aug-11 5:40am
View
How to change the form color, apart from BLUE. ?
manoharnch
9-Aug-11 5:35am
View
Thanx sir, it is working...
manoharnch
8-Aug-11 6:51am
View
yes sir i used it, i had two forms in form one i put a button to open form 2, form 2 is opening but is in top left corner of desktop.
manoharnch
8-Aug-11 6:49am
View
I want to open in same window but they are opening in different pleases like when i open form1 it will in in center of desktop, form2 in leftcorner of desktop like that, so i want to open all in one place
manoharnch
3-Aug-11 6:28am
View
Grate how u done it ?
manoharnch
3-Aug-11 5:40am
View
U sent me the same url....
manoharnch
3-Aug-11 4:13am
View
Good sir but the text is selecting
manoharnch
3-Aug-11 4:07am
View
Can u give me the code plz.....
manoharnch
3-Aug-11 4:06am
View
Godaddy
manoharnch
3-Aug-11 4:04am
View
But we cont type the text again......
Ex: enter your name
He cont enter the name. :(
Show More