473,785 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Configuring SMTP Server

15 New Member
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 1692
Plater
7,872 Recognized Expert Expert
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
Paridevi
15 New Member
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 = "Acknowledgemen t"

MailMessage msg = new MailMessage()
msg.To = "devi@rediffmai l.com" ' To Address
msg.From = "muthu@rediffma il.com" ' From Address
msg.Subject = "Test mail" ' Subject of the mail
msg.Body = "Hi How are you?" ' Type your message
msg.Priority = MailPriority.Hi gh ' Set the mail priority
msg.BodyFormat = MailFormat.Html ' MailFormat Html or Plain Text
SmtpMail.SmtpSe rver = MailServer ' Set the Mail server
try
{
SmtpMail.Send(m sg)
}
catch (Exception e)
{
lblErrorMsg.Tex t = "an error occured in sending the mail! pls
check your id"
}
Feb 13 '08 #3
Paridevi
15 New Member
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
srikanth reddy
22 New Member
hai paridevi....... .......



Note:- Button Click Code


Import System.web(net) .mail;

dim obj as new mailmessage;

obj.to=textbox1 .Text;
obj.from=textbo x2.Text;
obj.subject=tex tbox3.Text;
obj.priority=ma ilpriority.high ;
obj.bodyformat= mailformat.html ;
obj.message=tex tbox4.Text;
smtpmail.smtpse rver="192.168.0 .201" ; note:- server Address

smtpmail.send(o bj);
Feb 14 '08 #5
Paridevi
15 New Member
hai paridevi....... .......



Note:- Button Click Code


Import System.web(net) .mail;

dim obj as new mailmessage;

obj.to=textbox1 .Text;
obj.from=textbo x2.Text;
obj.subject=tex tbox3.Text;
obj.priority=ma ilpriority.high ;
obj.bodyformat= mailformat.html ;
obj.message=tex tbox4.Text;
smtpmail.smtpse rver="192.168.0 .201" ; note:- server Address

smtpmail.send(o bj);
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
3703
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 i need to configure sendmail_from. I have changed this (in php.ini) to be to my email address and the smtp server is set to be my university's smtp server (which i hope should work). But it still comes up with the error. The actual error is:
7
9311
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 out where I've to write user and password data nor the place where I've to write the SSL data which Gmail waits for...
34
18271
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 "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
2
7502
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 existing connection was forcibly closed by the remote host." This is what I have in my config: <system.net> <mailSettings>
5
5090
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 same application from other machine the email process is not working. so, do I have to configure and install SMTP in all client machine to get it working!? or should it be enough just to set it in the server machine?
1
2618
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 Linux gains increasing acceptance in corporate datacenters and
0
1571
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, Shalini
5
1514
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 my linux local server . how can this be done? am confused
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9491
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10104
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.