473,791 Members | 3,122 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 1254
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
1320
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
4562
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
27852
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
1814
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
3259
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
1531
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
6510
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
2144
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
6556
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
10419
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
10147
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
9987
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
7531
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
6770
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
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4100
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
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2910
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.