473,327 Members | 2,074 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,327 software developers and data experts.

Send Mail on local machine

Hello,

I am using the following to send mail. It works on my web server, but not
on my personal machine (which is running ASP.Net). I tried setting
SmtpMail.SmtpServer to "", but get the following error:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration
value is invalid.

I then tried using: SmtpMail.SmtpServer to "localhost", and got the
following: System.Runtime.InteropServices.COMException: The server rejected
one or more recipient addresses. The server response was: 550 5.7.1 Unable
to relay for my******@lu.com

Any help with this would be appreciated.

Sub SendMail()
Dim objMM as New MailMessage()
objMM.To = my******@lu.com
objMM.From = tbxHandle.Text & "@lucent.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "ASP.Net CI Confirimation Test"
objMM.Body = tbxHandle.Text & " has submitted form"
SmtpMail.SmtpServer = ""
SmtpMail.Send(objMM)
End Sub

--
Thanks in advance,

Steven
Nov 18 '05 #1
2 2192
is SMTP setup and running on your local pc?
Otherwise, set it to the server name in the SmtpServer value

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Steven K" <sk****@troop.com> wrote in message
news:O$*************@TK2MSFTNGP11.phx.gbl...
Hello,

I am using the following to send mail. It works on my web server, but not
on my personal machine (which is running ASP.Net). I tried setting
SmtpMail.SmtpServer to "", but get the following error:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration
value is invalid.

I then tried using: SmtpMail.SmtpServer to "localhost", and got the
following: System.Runtime.InteropServices.COMException: The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable
to relay for my******@lu.com

Any help with this would be appreciated.

Sub SendMail()
Dim objMM as New MailMessage()
objMM.To = my******@lu.com
objMM.From = tbxHandle.Text & "@lucent.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "ASP.Net CI Confirimation Test"
objMM.Body = tbxHandle.Text & " has submitted form"
SmtpMail.SmtpServer = ""
SmtpMail.Send(objMM)
End Sub

--
Thanks in advance,

Steven

Nov 18 '05 #2
I have same problem on my local PC.
Can send from Windows App but not from aspx.cs. Here I get same error.
What needs to be done to SMTP setting and how?

Thanks
------------------------
"Curt_C [MVP]" wrote:
is SMTP setup and running on your local pc?
Otherwise, set it to the server name in the SmtpServer value

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Steven K" <sk****@troop.com> wrote in message
news:O$*************@TK2MSFTNGP11.phx.gbl...
Hello,

I am using the following to send mail. It works on my web server, but not
on my personal machine (which is running ASP.Net). I tried setting
SmtpMail.SmtpServer to "", but get the following error:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration
value is invalid.

I then tried using: SmtpMail.SmtpServer to "localhost", and got the
following: System.Runtime.InteropServices.COMException: The server

rejected
one or more recipient addresses. The server response was: 550 5.7.1 Unable
to relay for my******@lu.com

Any help with this would be appreciated.

Sub SendMail()
Dim objMM as New MailMessage()
objMM.To = my******@lu.com
objMM.From = tbxHandle.Text & "@lucent.com"
objMM.BodyFormat = MailFormat.Text
objMM.Priority = MailPriority.Normal
objMM.Subject = "ASP.Net CI Confirimation Test"
objMM.Body = tbxHandle.Text & " has submitted form"
SmtpMail.SmtpServer = ""
SmtpMail.Send(objMM)
End Sub

--
Thanks in advance,

Steven


Nov 18 '05 #3

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

Similar topics

8
by: dccarson | last post by:
Here is a snippet of code which does not send to all recipients. However, it also does not inform me of this error. My suspicion is that this only fails for users with longer usernames. The two I...
5
by: Abhishek Srivastava | last post by:
Hello All, I wrote the follownig program using System; using System.Web.Mail; public class MailHelper { public static void SendMail(string mailId, string author, string email,
1
by: Steven K | last post by:
Hello, I am using the following to send mail. It works on my web server, but not on my personal machine (which is running ASP.Net). I tried setting SmtpMail.SmtpServer to "", but get the...
5
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address...
6
by: JIM.H. | last post by:
Hello, I am using SmtpMail.Send() and I get the following message The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for myMail@hotmail.com...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
11
by: fdu.xiaojf | last post by:
Hi, I just want to send a very simple email from within python. I think the standard module of smtpd in python can do this, but I haven't found documents about how to use it after googleing....
2
by: xx75vulcan | last post by:
Howdy, I have successfully setup my php.ini file on a web server to communicate with my Microsoft Exchange Mail server, and can test the ability to send mail using the mail() function to...
3
by: sachin shah | last post by:
hi all my query is how can i send mail by using sql server, i think by unsing xp_sendmail store procedure we can do this but my problem is what paramater to be pass to this store procedure if i...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.