I get that error all the time when using JMail. Do the iMail logs show anything?
Now I use Mabry's email control. It works great with iMail for me. I use it in VB and ASP.
T. Bradley Dean (800) 793-8171 Ext. 336 Bradley.Dean@InfoDish.com
-----Original Message----- From: IMail_Forum-owner@list.ipswitch.com [mailto:IMail_Forum-owner@list.ipswitch.com]On Behalf Of Shane Greer Sent: Thursday, March 29, 2001 3:01 PM To: IMail_Forum@list.ipswitch.com Subject: RE: [IMail Forum] Sending email programmatically
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 = "shane@web1-2450.gxs.org" strTo = "shane@gxs.net"
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 = "shane@web1-2450.gxs.org" objEmail.AddRecipient ("shane@gxs.net") 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: IMail_Forum-owner@list.ipswitch.com [mailto:IMail_Forum-owner@list.ipswitch.com]On Behalf Of T. Bradley Dean Sent: Thursday, March 29, 2001 5:39 PM To: IMail_Forum@list.ipswitch.com 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 Bradley.Dean@InfoDish.com
-----Original Message----- From: IMail_Forum-owner@list.ipswitch.com [mailto:IMail_Forum-owner@list.ipswitch.com]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