473,811 Members | 3,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to send emails via aspx

i have made a command button and on the click event of
the button following code is mentioned:

im mailnew As New MailMessage()
mailnew.From = "fi************ *****@mobilink. net"
mailnew.To = "fa******@mobil ink.net"
mailnew.Cc = "fi************ *****@mobilink. net"
mailNew.Subject = "New Record Entered
Successfully"
mailNew.Body = "Data successfully entered by user
farhan.w"
SmtpMail.Send(m ailNew)

now when i click the command button nothing happens,
neither i rcv any emails. We are using exchange server
and proper rights are being assigned to the user sending
this email "financialadjus tments" is the user authorized
please help
Nov 19 '05 #1
7 1777
You're not specifying an smtp server.

If you don't do that, the default smtpserver is localhost.

When I use "localhost" for an smtp server, mail is never sent.

When I specify an smtp server by name, mail gets sent.

Are you using your own smtp server ?

Or are you specifying an smtp server to which
you have a right to access, or a smart host ?

The format to specify your smtp server is :

SmtpMail.SmtpSe rver = "mail.whatever. com"
( any valid mail server name )


Juan T. Llibre
ASP.NET MVP
===========
"farhan wajahat" <fa******@mobil ink.net> wrote in message
news:18******** *************** *****@phx.gbl.. .
i have made a command button and on the click event of
the button following code is mentioned:

im mailnew As New MailMessage()
mailnew.From = "fi************ *****@mobilink. net"
mailnew.To = "fa******@mobil ink.net"
mailnew.Cc = "fi************ *****@mobilink. net"
mailNew.Subject = "New Record Entered
Successfully"
mailNew.Body = "Data successfully entered by user
farhan.w"
SmtpMail.Send(m ailNew)

now when i click the command button nothing happens,
neither i rcv any emails. We are using exchange server
and proper rights are being assigned to the user sending
this email "financialadjus tments" is the user authorized
please help

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.794 / Virus Database: 538 - Release Date: 10/11/2004
Nov 19 '05 #2
i am specifying the mail server now in the same code as
per mentioned but i am still unable to send any mail.
What could be the issue?
-----Original Message-----
You're not specifying an smtp server.

If you don't do that, the default smtpserver is localhost.
When I use "localhost" for an smtp server, mail is never sent.
When I specify an smtp server by name, mail gets sent.

Are you using your own smtp server ?

Or are you specifying an smtp server to which
you have a right to access, or a smart host ?

The format to specify your smtp server is :

SmtpMail.SmtpS erver = "mail.whatever. com"
( any valid mail server name )


Juan T. Llibre
ASP.NET MVP
===========
"farhan wajahat" <fa******@mobil ink.net> wrote in messagenews:18******* *************** ******@phx.gbl. ..
i have made a command button and on the click event of
the button following code is mentioned:

im mailnew As New MailMessage()
mailnew.From = "fi************ *****@mobilink. net" mailnew.To = "fa******@mobil ink.net"
mailnew.Cc = "fi************ *****@mobilink. net"
mailNew.Subject = "New Record Entered
Successfully"
mailNew.Body = "Data successfully entered by user farhan.w"
SmtpMail.Send(m ailNew)

now when i click the command button nothing happens,
neither i rcv any emails. We are using exchange server
and proper rights are being assigned to the user sending this email "financialadjus tments" is the user authorized please help

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system

(http://www.grisoft.com).Version: 6.0.794 / Virus Database: 538 - Release Date: 10/11/2004

.

Nov 19 '05 #3
yes i have smtp server to which i have rights to access
what to do now? i am specifying the server name i.e
xyz.abc.net but the mail is not sent
-----Original Message-----
You're not specifying an smtp server.

If you don't do that, the default smtpserver is localhost.
When I use "localhost" for an smtp server, mail is never sent.
When I specify an smtp server by name, mail gets sent.

Are you using your own smtp server ?

Or are you specifying an smtp server to which
you have a right to access, or a smart host ?

The format to specify your smtp server is :

SmtpMail.SmtpS erver = "mail.whatever. com"
( any valid mail server name )


Juan T. Llibre
ASP.NET MVP
===========
"farhan wajahat" <fa******@mobil ink.net> wrote in messagenews:18******* *************** ******@phx.gbl. ..
i have made a command button and on the click event of
the button following code is mentioned:

im mailnew As New MailMessage()
mailnew.From = "fi************ *****@mobilink. net" mailnew.To = "fa******@mobil ink.net"
mailnew.Cc = "fi************ *****@mobilink. net"
mailNew.Subject = "New Record Entered
Successfully"
mailNew.Body = "Data successfully entered by user farhan.w"
SmtpMail.Send(m ailNew)

now when i click the command button nothing happens,
neither i rcv any emails. We are using exchange server
and proper rights are being assigned to the user sending this email "financialadjus tments" is the user authorized please help

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system

(http://www.grisoft.com).Version: 6.0.794 / Virus Database: 538 - Release Date: 10/11/2004

.

Nov 19 '05 #4
Post your complete code
( without your smtp server name )
and I'll check it out locally.

Juan T. Llibre
ASP.NET MVP
===========
"farhan wajahat" <fa******@mobil ink.net> wrote in message
news:0f******** *************** *****@phx.gbl.. .
i am specifying the mail server now in the same code as
per mentioned but i am still unable to send any mail.
What could be the issue?
-----Original Message-----
You're not specifying an smtp server.

If you don't do that, the default smtpserver is

localhost.

When I use "localhost" for an smtp server, mail is never

sent.

When I specify an smtp server by name, mail gets sent.

Are you using your own smtp server ?

Or are you specifying an smtp server to which
you have a right to access, or a smart host ?

The format to specify your smtp server is :

SmtpMail.Smtp Server = "mail.whatever. com"
( any valid mail server name )


Juan T. Llibre
ASP.NET MVP
===========
"farhan wajahat" <fa******@mobil ink.net> wrote in

message
news:18****** *************** *******@phx.gbl ...
i have made a command button and on the click event of
the button following code is mentioned:

im mailnew As New MailMessage()
mailnew.From = "fi************ *****@mobilink. net" mailnew.To = "fa******@mobil ink.net"
mailnew.Cc = "fi************ *****@mobilink. net"
mailNew.Subject = "New Record Entered
Successfully"
mailNew.Body = "Data successfully entered by user farhan.w"
SmtpMail.Send(m ailNew)

now when i click the command button nothing happens,
neither i rcv any emails. We are using exchange server
and proper rights are being assigned to the user sending this email "financialadjus tments" is the user authorized please help

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system

(http://www.grisoft.com).
Version: 6.0.794 / Virus Database: 538 - Release Date:

10/11/2004


.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.794 / Virus Database: 538 - Release Date: 10/11/2004
Nov 19 '05 #5
On Mon, 10 Jan 2005 00:25:04 -0800, "farhan wajahat" <fa******@mobil ink.net>
wrote:
i have made a command button and on the click event of
the button following code is mentioned:

im mailnew As New MailMessage()
mailnew.From = "fi************ *****@mobilink. net"
mailnew.To = "fa******@mobil ink.net"
mailnew.Cc = "fi************ *****@mobilink. net"
mailNew.Subject = "New Record Entered
Successfully "
mailNew.Body = "Data successfully entered by user
farhan.w"
SmtpMail.Send(m ailNew)

now when i click the command button nothing happens,
neither i rcv any emails. We are using exchange server
and proper rights are being assigned to the user sending
this email "financialadjus tments" is the user authorized
please help


First question is, is the mail appearing in your SMTP queue?

Jim

Nov 19 '05 #6

i have made a command button and on the click event of
the button following code is mentioned:

im mailnew As New MailMessage()
mailnew.From = "fi************ *****@mobilink. net"
mailnew.To = "fa******@mobil ink.net"
mailnew.Cc = "fi************ *****@mobilink. net"
mailNew.Subject = "New Record Entered
Successfully"
mailNew.Body = "Data successfully entered by user
farhan.w"
SmtpMail.Send(m ailNew)

now when i click the command button nothing happens,
neither i rcv any emails. We are using exchange server
and proper rights are being assigned to the user sending
this email "financialadjus tments" is the user authorized
please hel


User submitted from AEWNET (http://www.aewnet.com/)
Nov 19 '05 #7
Where do you assign the SmtpServer to use for sending the email?

"Guest" <Guest@aew_nosp am.com> wrote in message
news:uo******** ******@TK2MSFTN GP09.phx.gbl...

i have made a command button and on the click event of
the button following code is mentioned:

im mailnew As New MailMessage()
mailnew.From = "fi************ *****@mobilink. net"
mailnew.To = "fa******@mobil ink.net"
mailnew.Cc = "fi************ *****@mobilink. net"
mailNew.Subject = "New Record Entered
Successfully"
mailNew.Body = "Data successfully entered by user
farhan.w"
SmtpMail.Send(m ailNew)

now when i click the command button nothing happens,
neither i rcv any emails. We are using exchange server
and proper rights are being assigned to the user sending
this email "financialadjus tments" is the user authorized
please help


User submitted from AEWNET (http://www.aewnet.com/)

Nov 19 '05 #8

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

Similar topics

4
4816
by: Thom McGrath | last post by:
I'm writing a simple mailing list program, and I would like to know what the suggested method of sending a large number of emails to a list of addresses. (sounds like spam, no?) It's perfectly legit, it's just an opt-in mailing. I have a feeling that using a 'while' loop with repeated calls to mail() is not the best practice. Is there something better I should be doing?
40
11924
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the following import win32com.client
2
1540
by: Stanley Cheung | last post by:
Hi all, I am developing the application for send emailing list, actually, i can perform to send a email 1 by 1 and do it on aspx page. I have a enquiry that how can the application change to background task instead of user need to wait and wait until all email sent. Also, when user waiting to complete the emailing list, the page is blank and nothing, can we put a layout when user waiting a request.
4
1445
by: Duy Nguyen | last post by:
how can I send mails from asp.net pages?
4
7302
by: roni | last post by:
i dont like to use ocx controlx. is there new dll for vb.net that do the job ? or newer code, to send email throught outlook express.
3
5413
by: Frank | last post by:
I am attempting to develop a solution where I handle bounced e-mails. I wish to field all bounced emails in a custom email account such a bounced@mycompany.com From the aricle at http://www.systemwebmail.com/faq/2.7.aspx, I gather I could use: mail.Headers.Add( "Reply-To", "alternate_email@mycompany.com" ); When I test this from a test web app, I don't seem to field a bounced email
4
7689
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. But sometimes even when I'm just sending one e-mail the web page takes a minutes or so to post. Can anyone tell me why it is so slow, or how to fix the problem? To address this I am thinking of just creating a queue table to write the emails...
0
1685
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, My company will be hosting a webcast, and I need to send out 2000 individual emails to people who signed up (for login information...). I created an smtp app that I can loop through which uses smtp and our Exchange mail server. The smtp app works fine. I tested it on 10 test emails and called Client.Send 10 times. The emails went through (I emailed myself). My question is if anyone knows if Exchange server would be bogged...
4
4555
by: =?Utf-8?B?dHZpbg==?= | last post by:
Hi everyone, can someone help me please. can i use hotmail e-mail to send emails in asp.net(vb code)? or should i pay for new email, so i can use smtp? thanks for your help
0
10647
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...
0
10386
jinu1996
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...
1
10398
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
10133
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
9204
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
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
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
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
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.