The box I'm trying this on is not directly on the domain on as the SMTP =
server, but it is trusted by that server. In addition, I had to request =
that box be added to the list of the SMTP server to be allowed to relay =
through it. I will look into this and see if it affects my situation.
Thanks,
--=20
James Lankford
[quoted text, click to view] "Nauzad Kapadia" <nauzadk@yahoo.com> wrote in message =
news:uP6mqAbqDHA.3844@tk2msftngp13.phx.gbl...
i too faced a similar problem once.
it turned out that my mail server required that the sender be on the =
same domain as the smtp server.=20
eg: if my smtp server is "mail.abc.com"... then the sender has to be =
someone@abc.com.
just see if this applies to you as well.
regards,
Nauzad Kapadia
[quoted text, click to view] "James Lankford" <dragonzfang@hotmail.com> wrote in message =
news:vr6798f1dm04f7@corp.supernews.com...
Hello group:
I have reached the end of my rope with this error. I have pretty =
much tried every suggestion I've found thus far and I
get this error no matter what I do. I did try using the CDOSYS test =
from Microsoft as a test for the smtpserver, and it'll send that way.
Here's my existing code:
Public Sub SendMail()
Dim myMailMsg As New Mail.MailMessage()
With myMailMsg
.To =3D "<Send to address">
.From =3D <"Send From Address">
.Subject =3D "Test message"
.Body =3D "This is a test."
.BodyFormat =3D Mail.MailFormat.Text
End With
=20
Mail.SmtpMail.SmtpServer =3D "<smtp server>"
Mail.SmtpMail.Send(myMailMsg)
End Sub
For my SmtpServer, I've used localhost, smarthost, the actual value =
of our corporate smtp server address - nothing changes. I always get =
that
error message.
I have modifed the machine.config file, given the ASP.NET user =
process admin (temp) access, assigned the machine id of 127.0.0.1 to the =
Access tab for the relay settings, and every other suggestion I've found =
- nothing at all seems to make any change. I'm using Windows Server =
2003.
Can someone please help me? I don't know what else to do.
Thanks,