Hi All,
Im using the following code for sending mails automatically via
outlook. The problem here is in outlook 2003 the attached images are
displaying properly in the body of the mail. But in outlook 2007
instead of image i am getting red cross symbol. i tried lot for this.
But nothing is working. Is there anything i have to change in the code
to get the images in 2007.
OutApp.session.Logon
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = "xxx"
.CC = ""
.BCC = ""
.Subject = emp_name & "'s Birthday"
.Attachments.Add strAppPath & "\" &
colFolders.Item(img_pos)
.HTMLBody = "<b> <font face='Calibri' color='blue'
size='5'> Dear " & emp_name & ",</font></b><font face='Calibri'
color='blue' size='5'><BR><BR>" & bday_cont & "</font><br><br>"
& "<center> <img src='" & colFolders.Item(img_pos) & "'> </center>" &
"<br><br><br><B><font face='Calibri' color='blue' size='5'> Wishes
from </font></B><BR><B><font face='Calibri' color='blue' size='5'> HR
Team </font></B><BR><B><font face='Calibri' color='blue' size='6'>
Chennai</font></B>"
' .Display
'.Send
End With
safemail.Item = OutMail
safemail.Send
--
FORUM RULES (986+ members already BANNED for violation)
1) Use concise, accurate thread titles. Poor thread titles, like Please Help,
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
------------------------------------------------------------------------------------------------------
To post to this group, send email to [email protected]