I have two method's I am using. One uses CDONTS, it does not give me an
error, but the message does not arrive either. That script is (I use
"c:\cscript cdonts.vbs" to run it):
Set mailer = CreateObject("CDONTS.NewMail")
strSubject = "Text for subject"
strMessage = "Text for Message"
strFrom = "[EMAIL PROTECTED]"
strTo = "[EMAIL PROTECTED]"
mailer.Send strFrom, strTo, strSubject, strBody
The second method is via jmail. It gives an error message. "C:\cscript
testingemail.vbs" returns "c:\testingemail.vbs(7,1) jmail.message: The
message was undeliverable. All servers failed to receive the message"
Set objEmail = CreateObject("Jmail.Message")
objEmail.From = "[EMAIL PROTECTED]"
objEmail.AddRecipient ("[EMAIL PROTECTED]")
objEmail.Subject = "Testing"
If Not objEmail.Send("web1-2450.gxs.org") Then
MsgBox "Failed"
Else
MsgBox "Success"
End If
Set objEmail = Nothing
Note: I don't have much experience with CDONTS or jmail, but jmail is a 3rd
party .dll with a few more features than CDONTS. CDONTS is integrated into
NT/2000 (i think).
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of T. Bradley Dean
Sent: Thursday, March 29, 2001 5:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [IMail Forum] Sending email programmatically
What happens when you try to send email? Do you get an error message?
T. Bradley Dean
(800) 793-8171 Ext. 336
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Shane Greer
Sent: Thursday, March 29, 2001 2:30 PM
To: IMail Newsgroup
Subject: [IMail Forum] Sending email programmatically
Imail version 6.04
We're having problems sending emails through script code. The code worked
fine in the past, but people were using our servers to spam, so we changed
to the "No Relay" setting. Now, we can't use script to send messages and
none of our ASP pages will send emails. We swapped back to "Relay for all",
but it didn't help. Not sure if this has anything to do with relay or not.
We are using "jmail" and "CDONTS" to send email via script. I tried the
scripts on my local machine, which does not use IMail and they worked fine.
I uploaded them to our server and they don't work. But, I can send email
through the IMail client interface. Any ideas why the script email method
has stopped working all of a sudden? Any help would be much appreciated.
-Shane
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/