![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi
I am trying to send an email from within ACCESS using automation to send the email via Outlook. I have set up the code and I can send the email but I want the image in my email to be 'clickable' so that when the user clicks on the image they get taken to a website. It all works OK but the user cannot see the image. I obviously need to embed the image in the email somehow. Can anyone help please??? The code I am using is: Set objOutlook = New Outlook.Application Set db = CurrentDb() Set qryDef = db.QueryDefs("qryMail") qryDef.Parameters(0) = Me.cmbPostCode.Value Set rstMail = qryDef.OpenRecordset Do Until rstMail.EOF ' This creates the e-mail Set objMail = objOutlook.CreateItem(olMailItem) ' This addresses it objMail.To = rstMail("Email") 'This gives it a subject objMail.Subject = strSubject 'This gives it the body objMail.HTMLBody = "htmlheadmeta http-equiv='Content-Type' content='text/html; charset=windows-1252'" _ & "titleNew Page 1/title/headbodypa href='http://www.rothco.co.uk'img border='0' src='file:///C:/Clients/Roy/email%20front12.gif' width='960' height='720'/a/p" _ & "/body/html" objmail.Send 'objMail.Display 'And on to the next one... rstMail.MoveNext Loop Set objOutlook = Nothing Set db = Nothing Set qryDef = Nothing Set rstMail = Nothing Set objMail = Nothing -- Roy Thompson Independent Developer Specialist in Sage Accounting solutions (UK) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blocked links still clickable | Mark Hall | Outlook - General Queries | 0 | February 22nd 07 02:30 PM |
clickable links | Debbie | Outlook Express | 16 | October 22nd 06 10:51 PM |
Clickable links that arrive in email-OutLook don't work. Help! | Letsgomom | Outlook - General Queries | 4 | June 9th 06 11:57 PM |
URL's not clickable in email | Bob Day | Outlook - General Queries | 2 | May 13th 06 05:06 PM |
New PC and my links aren't clickable in Outlook Express 6.0 | Snickerdodle | Outlook Express | 3 | January 20th 06 01:07 PM |