473,382 Members | 1,386 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,382 software developers and data experts.

Configuring SMTP Server

Hai ,
i Want to know how to configure SMTP Server with localhost to test sendmail within localhost.pls any one help me how to configure this.thanks in advance
Feb 12 '08 #1
5 1654
Plater
7,872 Expert 4TB
Does your pc that it will run on have an SMTP server installed that it can respond to the .NET SMTPClient stuff?
What are you trying to configure? And where?
Feb 12 '08 #2
Does your pc that it will run on have an SMTP server installed that it can respond to the .NET SMTPClient stuff?
What are you trying to configure? And where?
i am using vb .net 2003. i want to send email in my project.i am having my client smtpserver name. i have no idea about how to install SMTPServer and how to configure the client SMPTServer name in my code to send mail. please help me. this is very urgent.i attach my code hear;

Dim MailServer as string
dim strSubject as string
strSubject = "Acknowledgement"

MailMessage msg = new MailMessage()
msg.To = "devi@rediffmail.com" ' To Address
msg.From = "muthu@rediffmail.com" ' From Address
msg.Subject = "Test mail" ' Subject of the mail
msg.Body = "Hi How are you?" ' Type your message
msg.Priority = MailPriority.High ' Set the mail priority
msg.BodyFormat = MailFormat.Html ' MailFormat Html or Plain Text
SmtpMail.SmtpServer = MailServer ' Set the Mail server
try
{
SmtpMail.Send(msg)
}
catch (Exception e)
{
lblErrorMsg.Text = "an error occured in sending the mail! pls
check your id"
}
Feb 13 '08 #3
Try to use this trick on your dev environment - How to check email works without using SMTP.

Does this code work in .Net 2003 + .net Framework 1.1 .please reply me soon.
Thanks in advance

regards
pari
Feb 14 '08 #4
hai paridevi..............



Note:- Button Click Code


Import System.web(net).mail;

dim obj as new mailmessage;

obj.to=textbox1.Text;
obj.from=textbox2.Text;
obj.subject=textbox3.Text;
obj.priority=mailpriority.high;
obj.bodyformat=mailformat.html;
obj.message=textbox4.Text;
smtpmail.smtpserver="192.168.0.201" ; note:- server Address

smtpmail.send(obj);
Feb 14 '08 #5
hai paridevi..............



Note:- Button Click Code


Import System.web(net).mail;

dim obj as new mailmessage;

obj.to=textbox1.Text;
obj.from=textbox2.Text;
obj.subject=textbox3.Text;
obj.priority=mailpriority.high;
obj.bodyformat=mailformat.html;
obj.message=textbox4.Text;
smtpmail.smtpserver="192.168.0.201" ; note:- server Address

smtpmail.send(obj);
i tried this code, how can i check that mail has been sent of not using localhost ip address.please tell me.
Feb 15 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: chris.huh | last post by:
This may not be the best place to put this but i have set up apache as a testing server on my local machine. Whenever i try to use a formmail.php script i downloaded is always come sup saying that...
7
by: julian_m | last post by:
Is there any way to set up the php.ini file, in order to be able to use gmail to send mails from a local machine? I've tryied with SMTP = smtp.gmail.com smtp_port = 25 but I can't figure...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
2
by: daokfella | last post by:
I'm having trouble using localhost to test the e-mail functions in my application. I keep getting the following error when sending mail: "Unable to read data from the transport connection: An...
5
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi, I'm using this code for sending emails and its working fine because I had configured SMTP in my machine in IIS. now I'm using machine as a server for this application. but when running the...
1
by: rada.lambretha | last post by:
Configuring Linux as a Firewall * Making installation choices * Introducing iptables * Using iptables commands * Simplifying things with firewall GUIs * Adding proxy functionality As...
0
by: shalureddy | last post by:
Hi , I have installed Forefront security for Share point srever.To configure E-mail notifications I need to configure SMTP server. Can any one tell me how to configure SMTP server. Thanks, ...
5
by: matiruv | last post by:
i am new in php.the thing is am using wamp server on my windows server 2003 but i do not want to install a mailserver.what i want 2 do is i want to connect to a mail server that is already setup on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.