Re: how to send email to extranet
- From: "£¤£¤£¤" <eagle@xxxxxxxxxxx>
- Date: Tue, 25 Mar 2008 15:24:53 +0800
It works well to send email to intranet email-box.
If I try to send email to a extranet email-box,the script will issue the
following information when it executes the last line " objEmail.send "
------ information---------
(null): The server rejected one or more recipient addresses. The server
response was: 554 Relay rejected for policy reasons.
####################VBS code#############
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "name@xxxxxxxxxx"
objEmail.To = "extranet@xxxxxxxxxx"
objEmail.Subject = "Server down"
objEmail.Textbody = "No longer accessible over the network."
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"192.168.0.1" 'this is mail server IP.
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
.
- Follow-Ups:
- Re: how to send email to extranet
- From: Pegasus \(MVP\)
- Re: how to send email to extranet
- References:
- how to send email to extranet
- From: £¤£¤£¤
- Re: how to send email to extranet
- From: Pegasus \(MVP\)
- how to send email to extranet
- Prev by Date: Re: How to display the status bar at the bottom of the HTA window?
- Next by Date: Re: how to send email to extranet
- Previous by thread: Re: how to send email to extranet
- Next by thread: Re: how to send email to extranet
- Index(es):
Relevant Pages
|