Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with email

Status
Not open for further replies.

carranz

Technical User
Nov 17, 2006
40
US

i have a problem:
this script seems to work fine but when I try to send email to someone outside the server accounts it stops at the .send command

If I use an account that exist on the email server then it works fine.

How can I get it to work for any receiving party like
yahoo, hotmail, gmail

<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "someserver"
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "admin@exchange.bo.com"
.To = "slin@gmail.com
.Subject = "ECA Access Request Form"
.TextBody = sMessage
.HTMLBody = "hello"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing

%>
 
Is it possible that your mail server is configured to forbid message relays?
 
Yeah and if the server relay is closed you should be able to add the servers IP address to the mail server to allow only mail coming from that IP to be relayed but if you have a router it will possibly be the address of the router.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top