473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sending Automatic Email

I have an online app via webforms. When the user completes the final step...I would like the app to automatically send an email to a specific individual. I'm using the following code:

Imports System.Web.Mail
....
Dim Mail As New MailMessage
Mail.To = "be*******@hemingwaysoftware.com"
Mail.Subject = "Howdy"
Mail.From = "be*******@cox.com"
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(Mail)

I get this Error Message:
The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for be*******@hemingwaysoftware.com

Any ideas how to fix this?

Thanks
Nov 20 '05 #1
2 1629
I would check to make sure in IIS under Default SMTP Virtual
Server->Properites->Access->Relay that you have added 127.0.0.1 to that
list. (I don't believe this was necessary with Win2K Pro, but is with XP
Pro)

HTH,
Greg

"Arne Beruldsen" <Ar***********@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
I have an online app via webforms. When the user completes the final
step...I would like the app to automatically send an email to a specific
individual. I'm using the following code:

Imports System.Web.Mail
...
Dim Mail As New MailMessage
Mail.To = "be*******@hemingwaysoftware.com"
Mail.Subject = "Howdy"
Mail.From = "be*******@cox.com"
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(Mail)

I get this Error Message:
The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for be*******@hemingwaysoftware.com

Any ideas how to fix this?

Thanks

Nov 20 '05 #2
That worked...thanks. BUT...the email sits in the Queue. How do I get it to send?

"Greg Burns" wrote:
I would check to make sure in IIS under Default SMTP Virtual
Server->Properites->Access->Relay that you have added 127.0.0.1 to that
list. (I don't believe this was necessary with Win2K Pro, but is with XP
Pro)

HTH,
Greg

"Arne Beruldsen" <Ar***********@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
I have an online app via webforms. When the user completes the final
step...I would like the app to automatically send an email to a specific
individual. I'm using the following code:

Imports System.Web.Mail
...
Dim Mail As New MailMessage
Mail.To = "be*******@hemingwaysoftware.com"
Mail.Subject = "Howdy"
Mail.From = "be*******@cox.com"
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(Mail)

I get this Error Message:
The server rejected one or more recipient addresses. The server response
was: 550 5.7.1 Unable to relay for be*******@hemingwaysoftware.com

Any ideas how to fix this?

Thanks


Nov 20 '05 #3

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

Similar topics

1
by: Devonish | last post by:
I am composing an email with Access VB and then sending it from within Access. Everything works correctly (the email actually goes!) but Outlook ask some irritating questions that the user is...
5
by: cashdeskmac | last post by:
I am writing a web application will will be hosted on a few peoples laptops as a local application. It will send e-mails once the user connects to the internet. How can I set up the "Mail.From"...
5
by: Jai | last post by:
Hi, I am in a problem of sending mass emails(newsletter) to my website members. Actually my problem is this: I want to send newsletter to my website members. But I had given a facility for...
5
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"...
14
by: John | last post by:
Hi How does one send email from within a vb.net app? Thanks Regards
0
by: krouxsa | last post by:
Hi There people... Please help me with this query. I want to send 1 email to multiple email addresses stored in a database. Will it be possible? I'm using SQL Server 2005 and already set up...
0
by: =?Utf-8?B?Q2hhdGVsYWluZQ==?= | last post by:
My system is XP Home Edition SP2. I don't know the version of OE 6 that I have currently, but I receive automatic updates, the most recent OE 6 update about a week ago. Tonight, I tried to send...
3
by: sphinney | last post by:
I've written (actually modified from another post) the following code to automatically send an email message from within Access. Public Function SendEmail(TOstr As String, SUBJECTstr As String,...
0
by: trram1972 | last post by:
Hi, One error has come while trying to send email automatically using the code snippet - Createdispatch failed w/error. This error is coming only when we are trying to call inside a function....
5
by: wktarin | last post by:
Hi. I'm a relative newcomer to the world of php, and I keep bumping into a problem with a mail () form. I need to send an automatic email to two addresses, but I can't seem to get it to work. One...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
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...
0
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...
0
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,...

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.