I am trying to send mail from web page in asp.net 2.0/VB 2005:
Dim Poruka As New System.Web.Mail .MailMessage
myMessage.From = "ma*******@gmai l.com"
myMessage.To = "ma*******@hotm ail.com"
myMessage.Subje ct = "Automatic sending mail"
myMessage.Body = "Success!"
Mail.SmtpMail.S end(myMessage)
There is no error message! Only message that recomended is
System.Net.Mail .MailMessage instead System.Web.Mail .MailMessage.
Compiling is ok, but messages is not sent. I changed myMessage.To adresses,
but nothing! How to fix it?
Thanks 5 2172
Hi,
I do not think your smtp server is sending the message. You might
want to connect to a smtp server to send them
Dim client As New SmtpClient("mai l.YourServer.co m")
client.Credenti als = New Net.NetworkCred ential("UserNam e",
"YourPasswo rd")
Dim mm As New MailMessage("ma *******@gmail.c om",
"ma*******@gmai l.com")
mm.Subject = "Automatic sending mail"
mm.Body = "Success!"
Try
client.Send(mm)
Catch ex As Exception
' handle the error
End Try
Ken
-------------------
"Zile" <bo******@yahoo .comwrote in message
news:ej******** **@sunce.iskon. hr...
>I am trying to send mail from web page in asp.net 2.0/VB 2005:
Dim Poruka As New System.Web.Mail .MailMessage
myMessage.From = "ma*******@gmai l.com"
myMessage.To = "ma*******@hotm ail.com"
myMessage.Subje ct = "Automatic sending mail"
myMessage.Body = "Success!"
Mail.SmtpMail.S end(myMessage)
There is no error message! Only message that recomended is
System.Net.Mail .MailMessage instead System.Web.Mail .MailMessage.
Compiling is ok, but messages is not sent. I changed myMessage.To
adresses, but nothing! How to fix it?
Thanks
Again! Compile is ok, but mail is not comming. What can be problem? I am
running this aspx page on my local server on my computer it is not on web
hosting account. Is this can be a problem? Which smtp server I must to put,
from my web hosting account or from my outlook express if I am running aspx
on my computer?
"Zile" <bo******@yahoo .comwrote in message
news:ej******** **@sunce.iskon. hr...
Which smtp server I must to put, from my web hosting account or from my
outlook express if I am running aspx on my computer?
Whichever one allows you to send emails from your local computer.
E.g. my hosting service is hostinguk.net, and they allow web applications
deployed on their servers to send outgoing email using their SMTP queue on
relay.hostinguk .net.
However, this will not work from my local machine because that SMTP queue
will not recognise it as part of its internal network, otherwise they'd be
inundated with spammers relaying email through their servers...
Therefore, when I'm developing and testing from home, I need to use my ISP's
SMTP queue, which is smtp.blueyonder .co.uk - at this point, the email can be
sent because that SMTP queue recognises my machine as valid on their network
because it has been assigned an IP address from their DHCP pool.
Couple of things:
1) you must have access to a smtp server that can relay mail on your
behalf.
2) Said smtp server must be configured to allow relay of email
If you have established this you can modify your code as follows:
myMessage.From = "ma*******@gmai l.com"
myMessage.To = "ma*******@hotm ail.com"
myMessage.Subje ct = "Automatic sending mail"
myMessage.Body = "Success!"
'Replace mail.server.com with your smtp server
SmtpMail.SmtpSe rver = "mail.server.co m"
SmtpMail.Send(M essage)
On Fri, 17 Nov 2006 12:27:07 +0100, "Zile" <bo******@yahoo .comwrote:
>I am trying to send mail from web page in asp.net 2.0/VB 2005:
Dim Poruka As New System.Web.Mail .MailMessage
myMessage.From = "ma*******@gmai l.com"
myMessage.To = "ma*******@hotm ail.com"
myMessage.Subje ct = "Automatic sending mail"
myMessage.Body = "Success!"
Mail.SmtpMail.S end(myMessage)
There is no error message! Only message that recomended is System.Net.Mai l.MailMessage instead System.Web.Mail .MailMessage. Compiling is ok, but messages is not sent. I changed myMessage.To adresses, but nothing! How to fix it?
Thanks
--
Bits.Bytes. http://bytes.thinkersroom.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mr. x |
last post by:
Hello,
I am sending emails with Hebrew contents.
When receiving emails - I cannot see the Hebrew characters (it is not
outlook express configuration, because when receiving emails from friends -
I see hebrew, it is just sending by myself using *.aspx scripts).
In web.config I have the following :
<configuration>
<system.web>
|
by: VB Programmer |
last post by:
I have an ASPX page where I send out emails through my mail server
mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends
PERFECTLY. When I try sending an email to any other address
(non-MyDomain.com address) I get the following error:
The server rejected one or more recipient addresses. The server response
was: 550 You must check your mail from this IP or SMTP Auth before sending
to BSmith@Juno.com
Here's the FULL...
|
by: Lau |
last post by:
I need to send 1000 emails from an asp.net website.
Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP
server.
But the large amount of emails results in a timeout. My server administrator
told me to write the emails to the “pickup directory” instead. I know that
JMail can do this in ASP, but how do you do this in asp.net?
--
--------------------
|
by: Eduardo Rosa |
last post by:
Somebody knows how I queue email using .Net?
thanks a lot
|
by: Eric Sheu |
last post by:
Greetings,
I have been searching the web like mad for a solution to my SMTP problem. I
am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a
web site I have created to the members of my organization. I think my problem
is incorrectly setting the settings on my server or an authentication
problem. Here is the code I have written to send a test message:
-----Code Begins: Sensitive Information Replaced by -----...
| |
by: armando perez |
last post by:
Hi, this is my first time here, but I was looking for something that
may help me, and still, I haven't found something to use.
I'm using a website made in .NET with C#, when I'm running my site from
my PC, everything seems right, but when I publish the website, and send
it to my real website, everything works but the mail sending.
I have red some groups and topics, and everywhere I can found:
- Use the following syntax:
<system.net>
|
by: Zile |
last post by:
I am trying to send mail from web page in asp.net 2.0/VB 2005:
Dim Poruka As New System.Web.Mail.MailMessage
myMessage.From = "matematic@gmail.com"
myMessage.To = "matematic@hotmail.com"
myMessage.Subject = "Automatic sending mail"
myMessage.Body = "Success!"
Mail.SmtpMail.Send(myMessage)
|
by: satnamsarai |
last post by:
Using System.Net.Mail: Sometimes I get error 'failure sending mail.
Unable to write data to the transport connection: An existing
connection was forcibly closed by the remote host.' Not sure how to
fix this error.
I am able to send messages sometimes both other times randomly
following error appear
EXCEPTION:
|
by: ThatThatGuy |
last post by:
Hello reader,,
This might be a very simple question, but what to just say about it, i'm facing it
Actually i'm developing a web App and i want email feature in that....
I'm sending mail from my development machine i.e localhost
This is the setting in web.config
<system.net>
<mailSettings>
|
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
|
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,...
| |
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 projectplanning, coding, testing, and deploymentwithout 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: 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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |