473,805 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending mail with JMail question

Hi:

I'm trying to send a message using JMail with the following ASP code
(using ADO to connect to MS Access database). :
_______________ _______________ ______________

Set objRS1 = strConnect1.Exe cute(strSQL1)

Dim msg, varRecipient

Set msg = Server.CreateOb ject("JMail.Mes sage")
msg.logging = true

msg.From = varEmail
msg.FromName = varName

While Not objRS1.EOF
msg.addRecipien t objRS1.Fields(" StudentEmail")
objRS1.MoveNext
Wend

msg.Subject = varSubject
msg.Body = varMessage

msg.Send ("mail.myemails erver.com")
Set msg = nothing

_______________ _______________ ___

The code gives an error saying the server did not receive the message,
or sometimes it goes through but the email is not sent. I did a
response.write in the loop just to test it was getting the email
addresses all right from the database and it was. Any idea what is
wrong? BTW, I am not spamming, this is a newsletter for people who
signed up for said newsletter.
Jul 19 '05 #1
0 1314

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4028
by: Kingdom | last post by:
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this page working and it's working just fine, no problems with this page. However I then would like this data e-mailed using jmail (my host insists on this method) and that is the function of the sendEMail2.asp page. This is failing and only giving...
4
4385
by: Kingdom | last post by:
Having a problem with a jmail email script and cannot seem to solve this error any sugestions welcome. Error shows in browser as Microsoft VBScript runtime error '800a01f4' Variable is undefined: 'JMail'
10
4992
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are working with we put these mailshots in the bcc field of the mails. This can sometimes cause a problem as we are getting alot of mails bounced back. I would like to write a script to have these emails sent out individually using the to: field of the...
4
2977
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text email by creating a text file, with content following certain format, and saving that file into the correct '..\mailroot\pickup' folder, and it is working fine
2
2363
by: Ron | last post by:
Does anyone know of a free distributable mail package that is capable of sending simple mail messages from a web form? The reason I ask is because the server I am using doesn't have CDO enabled, and I don't want to use JMail. Thanks for your help, Ron
12
2405
by: the other john | last post by:
I'm having trouble with spammers getting through my mail script. I've heard of FormMail for php but I need a solution for ASP. Any suggestions? I don't know how to stop these guys from using my forms to spam. Thanks! John
8
5029
by: Mangler | last post by:
I am new to Jmail/ASP and either need some help or someone to tell me I am stupid... I got Jmail to work fine. My problem is I need to send an email based on somthing a customer submitted. When we receive the submission in our system an auto-receipt email will be sent. What I need to have happen (and cant figure out) is that email to include what was received not just a on liner saying it was received. The information is pulled from...
6
2644
by: prash.marne | last post by:
hi all , this is a very simple problem but i need some help, My situation is : i have a form which opens in a pop-up window , in which user will insert his email-id & name , there are two buttons submit & cancle .
4
8947
by: cgrudzinski | last post by:
Hello, I have JMail working without attachments but now want to start using this feature. When using the .addattachment though the email received contains the binary data of the attachment - see example below. Code Example: Set JMail = Server.CreateObject("JMail.SMTPMail") JMail.ServerAddress = "mailhub.registeredsite.com" Jmail.ContentType = "text/plain"
0
10607
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10359
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10104
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7645
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5541
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4317
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.