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

sendusing in smtp why?

Hi,
I got Error "The "SendUsing" configuration value is invalid." while
using following code.
MailMessage sendinfo= new MailMessage();
sendinfo.BodyFormat=MailFormat.Html;
sendinfo.Body="bodyvalue";
sendinfo.To="emailadd@mydomain";
sendinfo.From="emailadd@mydomain";
sendinfo.Subject="Preview Newsletter";
SmtpMail.Send(sendinfo);

Therefore, I added a line.
SmtpMail.SmtpServer="localhost";
It then gave me error "The server rejected one or more recipient
addresses server response was: 550 5.7.1 Unable to relay for
myemailaddress"

I saw a few message threads saying that the email address has to be in
same domain to get this to run and it already is.

I have tested this code in 2 servers. It works at one even without
even the smtpserver specifiation and it doesn't work on the other
server no matter what I try. I have tried several methods
e.g.CDO.Message() and non seem to work on this server. It has to be
something with configuration. I dont understand. I have spent a lot of
time on it.
Any suggestion will be great.
Thanks
Dee
Nov 15 '05 #1
0 1169

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

Similar topics

0
by: Brian Morris | last post by:
I'm new to .NET and just trying a few things out, like emailing. I created a form in Visual Studio .Net to input some information for generating an email and I'm getting the following error when it...
1
by: CK | last post by:
Hi All, I have this problem when try to send a mail by Using CDO.Message. I got the info from the web, said it may the problem where, the IIS SMTP setup incorrectly. My question is How i can know...
0
by: FabFreddy | last post by:
Hi, I get an "SendUsing" error with the code below. It appears when I send the email! Can anybody tell me what the problem is? Thx Dim mail As New MailMessage Mail.To = info@<domaintosent>
5
by: fm | last post by:
We are documenting and configuring our email solution. Our applications will be created with ASP.NET running on Windows 2003 servers using Framework 1.1 To minimize the administrative effort...
5
by: lds | last post by:
I am getting the following error: The "SendUsing" configuration value is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the...
0
by: craigwfl | last post by:
This is really a lame error. I've spent two days scouring the internet for a proper solution to my problem. My issue is that I have an ASP.NET website using a VB.NET COM object to send emails (code...
1
by: samarthkumar84 | last post by:
Hi I had used following code for sending e-mail but facing this problem. I want to send this e-mail in ASP.NET using VB.NET code. I am attaching both code an output. CODE Imports...
10
by: dancer | last post by:
Using ASP.Net and Framework 1.1.4322 File works fine on my computer. On my host server, I get this message. The "SendUsing" configuration value is invalid. Description: An unhandled exception...
5
by: jimhill10 | last post by:
I have a perl script that creates an email attachment file from POST data on a web page. This works just fine. I want to customize the email body to contain all of the text data from the file...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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.