ACG PDF and Mail Class Library

A

Andy Levy

Hi,

I am using the ACG Pdf and Mail Class library, and trying to invoke the
LogOnProfile method. However, mail is always being sent out on the default
account (ie account1)

How can i get it to send using account2. Thanks for your help.

Andy


Here is my code :

Public Function tred()

Dim objMail As New MailClass
Dim Success As Long

With objMail
.LogOnProfile = "account2"
.RecipientAdd "name", "(e-mail address removed)", , , False

.MsgSubjectText = "Recent sales results"
.MsgBodyText = "Here's the report and distribution list you wanted."
.MsgSaveCopy = True
.SendMail

Success = .Result
Debug.Print Success

'Some code : Copyright © 1997-2003 ATTAC Consulting Group
End With
Set objMail = Nothing

End Function
 
A

Andy Levy

I have sent him an email, but i'd imagine he gets a lot of emails, so was
looking in NG for acg mail class lib users.
 
C

Cheryl Fischer

Andy,

I'd be happy to try to help further. Can you post the code you are using?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top