Emergency

S

Shawn Zheng

Help:
I have two problems in ASP.NET:
1. SmtpMail.Send did not work. I have tried both remote and local SMTP
servers. the codes are :
MailMessage Message = new MailMessage();
Message.To = txtEmail.Text;
Message.From = emailaddress;
Message.Subject = "subject";
Message.BodyFormat = MailFormat.Html;

Message.Body = "<HTML><BODY>" + strMessage+ "</BODY></HTML>";

SmtpMail.SmtpServer = smtpserver;
SmtpMail.Send(Message);

Message = null;

where emailaddress is a string defined somewhere. smtpserver is a string
predefined as either "(local)" or Email server of my internet provider.

2. SqlConnection to SQL 2000 server in Windows 2003 server is rejected. I
have tried two type of connections, trusted and standard. the following are
the connection strings that I have tried:
"Initial Catalog=databasename;Data Source=sqlServerInstanceName; Integrated
Security=SSPI;user id=sa"
and
"Initial Catalog=databasename;Data Source=sqlServerInstanceName; "
I have add serverMachine\ASPNET to SQL 2000 login and added to the database
user. I also granted permissions to this account.

Shawn
 
C

Cor Ligthert

Shawn,

With SMTP it is in I think more than 60% of the cases the problem the SMTP
server.

Are you sure the adress you provided there is right and it is not behind a
firewall that protects this kind of use.

This is by the way the largest resource of faqs about smtp mail

http://www.systemwebmail.net/

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SMTP-mailserver - how? 6
Mail Send Problems 1
Mail Send Problem 4
e-mail not going to "inbox" rather going to the "Junk Mail" box 1
SMTPMAIL 3
MessageBox Question 7
CDO.Message Error 3
**Bug with MailMessage** 2

Top