Hi EveryBody:
I use the PasswordRecover y Class to recover the user password, as we know
there is
some setting that must be done to config the mail, I but the following code
into my web config file :
<system.net>
<mailSettings >
<smtp from ="hu*******@yah oo.com">
<network host="127.0.0.1 " port="25" />
</smtp>
</mailSettings>
</system.net>
also the code that I use it in to my application is as followe:
imports System.net.mail
Dim smtpserver As New SmtpClient
smtpserver.Host = "127.0.0.1"
Dim MyMail As MailMessage = New MailMessage()
MyMail.BodyEnco ding = Encoding.UTF8
MyMail.IsBodyHt ml = True
MyMail.Body = "Dear User your password is: "
smtpserver.Send ("hu*******@yah oo.com", "hu***********@ gmail.com", "Password
Recovery", MyMail.Body)
But I still did not recive the messge.
Can Some body tell me if there is a problem in my code or any redirection
will be appreciated
regrad's
husam 2 4593
do you have SMTP configured on your local web server your using?
Check the 'bad mail' folder on your server and see if you have any files in
there. If so then your email isn't being sent due most likely by not having
your SMTP server configured. Do you have an actualy SMTP server you can test
against instead of 127.0.0.1 (localhost)?
"Husam" <Hu***@discussi ons.microsoft.c omwrote in message
news:EA******** *************** ***********@mic rosoft.com...
Hi EveryBody:
I use the PasswordRecover y Class to recover the user password, as we know
there is
some setting that must be done to config the mail, I but the following
code
into my web config file :
<system.net>
<mailSettings >
<smtp from ="hu*******@yah oo.com">
<network host="127.0.0.1 " port="25" />
</smtp>
</mailSettings>
</system.net>
also the code that I use it in to my application is as followe:
imports System.net.mail
Dim smtpserver As New SmtpClient
smtpserver.Host = "127.0.0.1"
Dim MyMail As MailMessage = New MailMessage()
MyMail.BodyEnco ding = Encoding.UTF8
MyMail.IsBodyHt ml = True
MyMail.Body = "Dear User your password is: "
smtpserver.Send ("hu*******@yah oo.com", "hu***********@ gmail.com",
"Password
Recovery", MyMail.Body)
But I still did not recive the messge.
Can Some body tell me if there is a problem in my code or any redirection
will be appreciated
regrad's
husam
Re:
!How can I send an e-mail by PasswordRecover y class
Please compare your code to the sample code provided at : http://msdn2.microsoft.com/en-us/lib...35(vs.80).aspx http://msdn2.microsoft.com/en-us/lib...drecovery.aspx
Notice the web.config entries which you are, apparently, missing.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Husam" <Hu***@discussi ons.microsoft.c omwrote in message
news:EA******** *************** ***********@mic rosoft.com...
Hi EveryBody:
I use the PasswordRecover y Class to recover the user password, as we know
there is
some setting that must be done to config the mail, I but the following code
into my web config file :
<system.net>
<mailSettings >
<smtp from ="hu*******@yah oo.com">
<network host="127.0.0.1 " port="25" />
</smtp>
</mailSettings>
</system.net>
also the code that I use it in to my application is as followe:
imports System.net.mail
Dim smtpserver As New SmtpClient
smtpserver.Host = "127.0.0.1"
Dim MyMail As MailMessage = New MailMessage()
MyMail.BodyEnco ding = Encoding.UTF8
MyMail.IsBodyHt ml = True
MyMail.Body = "Dear User your password is: "
smtpserver.Send ("hu*******@yah oo.com", "hu***********@ gmail.com", "Password
Recovery", MyMail.Body)
But I still did not recive the messge.
Can Some body tell me if there is a problem in my code or any redirection
will be appreciated
regrad's
husam
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tom Brown |
last post by:
Hi,
I have what seems to be a simple problem. But I can not for the life of me
find a way to send an integer over a socket. The send method will only accept
strings. Here is what I am trying to do:
testmessage = 'test message'
msglen = len(testmessage)
sock.send(msglen)
sock.send(testmessage)
|
by: Etienne Charland |
last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA,
but the same problem applies for RDC or PC Anywhere). Now, I want to send
keys to the remote application from a local app. I tried sending keys in VB
with SendKeys, as well as using keybd_event API, but I'm not able to send
any keys. It works very well for any local applications, but I can't pass
the keys remotely. Is there any way to do it?
Thanks!
Etienne
|
by: Pete Loveall |
last post by:
I have a server application that monitors a private local queue for
messages. The message sent to it has a label and a response queue defined.
It works correctly when the queue is accessed via another program.
However, when I attempt to Send a message from an ASP.NET VB page, I get
"One or more of the passed properties are invalid." I have tried different
combinations of the non-transactional Send() with no success. My
Windows\Temp...
|
by: Kitchen Bin |
last post by:
Hi.
I am trying to use Sockets to do multiple Send and Receives via HTTP
(not simultaneously). A first pair of Send/Receives works fine and
sure enough I receive HTML back, but the next Send/Receive pair (even
if identically the same as the first pair) returns no data.
eg. The following simplified code will receive some bytes:
s.Send(ByteGet, ByteGet.Length, SocketFlags.None);
bytes = s.Receive(RecvBytes, RecvBytes.Length, 0); //...
|
by: zhimin |
last post by:
Hi,
I'm writing a program to send large file(100m) through dotnet using
TCPListener & TCPClient, I'm sending the file with a ask and response loop:
1. Client send a flag 1 to server indicate it has data send to server.
2. Client send the buffer block size.
3. Client send the actual buffer to the server.
4. Server send a flag 1 to client indicating that the buffer has been
successfully receeived.
5. The next loop until all data of the...
| |
by: GrantS |
last post by:
I need to use a sendkeys key combination to automate the "accept
files" that a remote user wants to send to me via Windows messenger. I
am using automation to work with Windows Messenger client in a
Winforms C# application.
I have tried a number of code segment combinations for ALT T
combination without success. The combinations might be correct but it
might be failing for some other reason.
My Attempts:
|
by: Sara |
last post by:
HI,
I want to code a program to detect GSM mobile (any kind) which connected
through serial port to computer and then be able to send SMS through
this mobile phone to other mobile phones, could anyone help me and guide
me, I wrote a program which could open COM port but still couldn't
detect mobile phone and send SMS through it. I searched internet and I
didn't find right answer to my question.
please if anyone could guide me.
the...
|
by: Hasan O |
last post by:
hi , I have a problem with socket.send
mesajlar = Encoding.ASCII.GetBytes("UGIR");
socketResultValue = socket.Send(mesajlar,0,mesajlar.Length,
SocketFlags.None);
socketResultValue =
socket.Receive(mesajlar,0,mesajlar.Length,SocketFlags.None);
|
by: ultr |
last post by:
Hello,
I have read that send() may not send whole message and returns the
nuber of bytes sent, so that we can handle the rest of the message. Is
it true, because i have tested sending even 1MB long message by the
Internet connection and it was sent in one message - send() returned
length of whole message?
And the second question: If we really need to send the rest of the
message, what should i do if client disconnects while sending...
|
by: Xionbox |
last post by:
Hello everybody,
The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup".
I created a server running on localhost:1200 (telnet localhost 1200 proves that it is up and running) and I coded a client which is supposed to connect to that server and send it data.
The odd part is that the client connects to the server (via connect()) without any problem, but three lines later, it...
|
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...
| |
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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...
|
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();...
| |
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
|
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...
| |