View Single Post
  #2  
Old June 7th, 2010, 10:35 AM posted to microsoft.public.outlook.general
Sue[_9_]
external usenet poster
 
Posts: 65
Default Automate From Field

Hi just in case you spot the missing '=' sign this doesn't work still...

"Sue" wrote in message
...
Hi all

I posted this last week but it seems MS deleted a load of its forums,
including the VBA one I'd posted to :-(. So here goes again...

From MS Access 2003, I have a routine in code that automates an email. I
can autofill the To, cc, subject, body field etc but now I need to also
send from a different user using the 'From' field. I tried adding this in
the same way to my code using:

.from

but it seems this is not a supported method? I receive and Access error
438: Object does not support this property of method.

Please can any one tell me if this is possible and if so how to do it? If
I leave for the user to enter the from email address manually it is very
easy for them to miss this and just hit send, which would result in it
being addressed as themselves. It is crucial that this does not happen as
we are sending the emails on behalf of a different company.

Thanks for your help...

snipped of the Code, if I rem the .from line this will work ok...

With objEmail
.from "
.To = "SJH-" & dist
.CC = "
.BCC = "sue;fred;tom"
.Subject = "Analysis Monthly Reports"
.Body = "Test email please ignore... "
.Attachments.Add strPath