473,385 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Changing proxy with the Groupwise email.

I'm trying to change the mandatory in ma access database when I'm sending email.
I don't want to use my personnel email, I want to use my other email.
I'm usging Groupwise 8 with 2003 Access.
I try this code but when I use the proxy I keep crashing.
My database close.

Expand|Select|Wrap|Line Numbers
  1. Dim Courriel As New ClsCourrielGW
  2.     Dim compteur As Integer
  3.     With Courriel
  4.         .Login                                      'Connection à GW
  5.         .Proxy ("<proxy address removed>")
  6.         .Subject = txtObjet                         'Affectation du Sujet
  7.         '.FromText = "AffairesCorporative"
  8.  
  9. 'Dim mobjGWacc As GroupwareTypeLibrary.Account2
  10. 'Dim mobjGWProxyAcc As GroupwareTypeLibrary.Account2
  11. 'Set mobjGWProxyAcc = mobjGWacc.Proxy("<proxy address removed>")
  12.  
  13.         compteur = 0
  14.         If Not IsNull(Trim(Me.AreCourrielPrenomNom)) Then
  15.             message1 = Me.AreCourrielPrenomNom & vbCrLf & vbCrLf & txtMessage
  16.         Else
  17.             message1 = "Bonjour," & vbCrLf & vbCrLf & txtMessage
  18.         End If
  19.         .BodyText = message1               'Affectation du corps du message
  20.         If Not IsNull(Trim(Me!AreCourrielDestinataire)) Then
  21.             .RecTo = Trim(Me!AreCourrielDestinataire)  'Affecter le tableau au destinataire du courriel
  22.             .RecCc = arrCC
  23.             .FileAttachments = txtFichierEnregistre & ".pdf"                'Attacher les fichiers au courriel
  24.             strTemp = .CreateMessage                    'Créer le message
  25.             .ResolveRecipients strTemp                  'Vérifier les récipients
  26.             If IsArray(.NonResolved) Then
  27.                MsgBox "Des adresses de courriels sont incorrectes.", vbInformation, "Courriel"
  28.                Exit Sub
  29.             Else
  30.                .SendMessage strTemp                        'Envoie du message
  31.                intNbrCourriel = intNbrCourriel + 1
  32.             End If
  33.             .DeleteMessage strTemp, True                'Effacement du message
  34.         End If
  35.     End With
Can you help me someone ?
Oct 28 '14 #1
5 13155
zmbd
5,501 Expert Mod 4TB
First please follow the trouble shooting section in the following link:
[*] > Before Posting (VBA or SQL) Code

Particularly the part on setting option explicit. You will need to run the compile step many times until it completes without error. This is because the compiler stops on the first found error.

Once you have all of your objects and variables properly defined we can take a stab at the groupwise issue.
->>> NOTE>>> it's been 15 years since we used groupwise inhouse; thus, I'm pulling everything from ancient memories.

-z
Oct 29 '14 #2
Hi zmdb,

I've compiled my code and I don't have error.
It's after my mail is sent that my Access crashed.
But my email is ok.
It's only when I add this line to my code that this happen.

.Proxy ("my other mailbox")

When I use my personal adresss everything is ok.
It's when I want to use my other mailbox.

Can you help me ?
Oct 30 '14 #3
zmbd
5,501 Expert Mod 4TB
Then you don't have option explicit set for your modules as noted in the trouble shooting section of the afore mentioned link.

Most likely there is an issue with ClsCourrielGW in that the proxy property isn't defined properly. Please go back thru your code modules and set the option explicit. You will then need to properly declare all of your variables and then compile.

For Example(from the Novell developer's Guide):
Expand|Select|Wrap|Line Numbers
  1. Dim gwApplication As GroupwareTypeLibrary.Application2
  2. Dim gwAccount As GroupwareTypeLibrary.Account2
  3. Private Sub AccountLogon()
  4. Set gwApplication = CreateObject(“NovellGroupWareSession”)
  5. Set gwAccount = gwApplication.Login
  6. End Sub
You might want to follow that link to the developer's guide, I'm sure it will prove helpful.
Oct 30 '14 #4
I use the Dimitri Furman code and I didn't change it.
Its starts with :

Expand|Select|Wrap|Line Numbers
  1. Option Base 0
  2. Option Explicit 
Is there anything else I should do ?
Nov 3 '14 #5
zmbd
5,501 Expert Mod 4TB
you've comment lines 10 thru 11 which establish the account2 object where proxy lives.
See the developer's link I gave in my last post for the example.
Nov 4 '14 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Atim | last post by:
I'm trying to create an email message in Novell Groupwise (from Access) which the user can edit before sending. Using the code below, I can create a message just fine, but the problem is that it...
2
by: acewood1 | last post by:
I've done some searching in the archives but can't seem to find an easy answer as to how to send a Groupwise email through Access 2003. I just need to open a new email and populate the "To:" line...
5
by: amjad | last post by:
hi how to send email through groupwise not smtp with asp.net 1.1 lang=c sharp.. thanks
46
by: pixie | last post by:
Hi. I have an Access DB that is for contracts. I have used the code found on Tony's site for emailing a report per person containing only their information using GroupWise. It works great but I...
6
by: john_c | last post by:
For ASP.NET 2.0 PasswordRecovery control, is there a way to allow entering an email address instead of the username and it send the password?
13
by: mcsheepie | last post by:
Hi I've been happily using Dimitri Furman's email code to send messages but since upgrading to Groupwise 7 i've hit a slight problem. The code works great and sends the email as expected, however if...
4
by: bobh | last post by:
Hi All, I have an AccessXP vba procedure which attaches a report to Groupwise and sends it to recipients. That line of code looks like this MailApplication.Recipients.Add strTo this...
0
by: david220 | last post by:
hi once members sign up to my site they get sent an email which contains there username/password which they enter on a sign up form. Once they've signed up the email is automatically sent using...
7
by: Mtr | last post by:
Using the mail() function, I can easily change the From address that appears in an email. But how do I change the From that gets sent in the SMTP conversation, which results in the address that...
5
cori25
by: cori25 | last post by:
Hi, I have been trying to come up with a module in access using VB to allow email messages to be sent using GroupWise. I am having a hard time and was wondering if anyone has any experience with...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.