473,727 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting up mail

Hi,

I am using System.Net.Mail .SmtpClient to send mail.

I used localhost as the host but this did not work.

For my app to work on a installed PC do I have specify the
SMTP server of the PC????

Do I need to have a config setting for this or can I
somehow use something like localhost.??

rotsey

Apr 4 '07 #1
1 1247
To send email, you need to send it to an SMTP server. That means that you
must assign an SMTP server to the SmtpClient. As SMTP server is similar to a
web server in that it listens to an SMTP port on a given IP address and
responds to SMTP requests. So, as long as the machine has an SMTP server,
you can refer to the machine's IP address or host name.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Rotsey" <ma***********@ RemoveThis.optu snet.com.auwrot e in message
news:eU******** ******@TK2MSFTN GP03.phx.gbl...
Hi,

I am using System.Net.Mail .SmtpClient to send mail.

I used localhost as the host but this did not work.

For my app to work on a installed PC do I have specify the
SMTP server of the PC????

Do I need to have a config setting for this or can I
somehow use something like localhost.??

rotsey

Apr 4 '07 #2

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

Similar topics

1
1315
by: Maligaya Park | last post by:
How do you setup SQL Mail? I tried following the procedures on the online manual but I do not understand what "On the instance of SQL Server, start the mail client using the newly created mail profile." means. What is the mail client? I have already setup the mail profile but when I go to SQL Mail on Services and try setting it up, the profile I created is not showing on the pull down list. I appreciate any assistance. Thanks.
8
4556
by: dave | last post by:
I am sending an email from an asp.net application. I have set the from address a b@b.com but would like the name of this user to show up as Big Bob. How can i tell .net email object that when the user gets the email i want the from person to be Big Bob. In exchange the display name for this user is Bob Brown. Currently users see Bob Brown as the from name field. Is this possible?
5
27843
by: dixie | last post by:
I want to be able to set the font size and font type for text in a text box on a report using VBA. I wan't to be able to control it from a setting in a table. The problem is that I don't know the syntax for setting either font type or font size for a text box on a report. Does anyone know? Help. Please! dixie
0
1811
by: Jan Pakinski | last post by:
Hi all, I'm writing a email sending program using c# and i found the mail priority setting is not working no matter what i have set. There is no "red exclamation mark(for high priority mail)" in outlook even i've set the priority using the following code: objMailMessage.Priority = System.Web.Mail.MailPriority.High
15
3253
by: tshad | last post by:
I am trying to put an persons email address in a response I am sending another person. I can get it to work by doing the following: message.Body = resumeTop & vbCrLf & vbCrLf & "For Applicant: " & session("firstName") & " " & session("lastName") & vbCrLf & "Email: mailto:" & session("email") & vbCrLf & vbCrLf & resumeBottom When the email gets to the person, the email link works. The problem is
8
1529
by: Howard | last post by:
Using visual studio 2005 I am sending an email using a vaiable Dim mail As New MailMessage() and then later setting the recipient address by mail.To = name@domain.co.uk This works fine. However the compiler tells me that New MailMessage() is now obsolete and that instead I should use
1
6500
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
1
2142
by: vssp | last post by:
hai friends I want mail server setting in my php appliacation no need to change the php ini file I got some sample code like this $mail_ini=ini_set(SMTP,"mail.ebscon.com"); $mail_ini=ini_set(smtp_port,25); This code working on only Windows machine only. But I am using linux machine Any option without change the phpini file to setting the mail server configuration ?
6
6554
by: Hemant Shah | last post by:
Folks, I am having hard time figuring out the problem I have with setting up new DB2 instance. This is 22nd instance I am creating on the server and I have never encounterd this problem. My server and client (2 different systems) are running AIX 5.3 and DB2 8.2. On server I have created instance as follows: # ./db2icrt -a client -p 60085 -u db2fenc1 -s ese db2inst22
0
8891
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
8752
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
9406
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
9185
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
9120
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...
0
8103
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
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();...
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2158
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.