Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
| Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2004, 01:54 AM
Authorized User
 
Join Date: Aug 2004
Location: Kathmandu, , Nepal.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bishnupokhrel Send a message via Yahoo to bishnupokhrel
Default setting from address in outlook mail item

Hello all,

I am getting problem to set "from address" in outlook mail item. My task is to copy mails from a existing mailing system ( which stores all the mail in SQL server database) to outlook.

While creating the mail, everything works fine except i can not assign from address.

After creating a mail, when viewed in outlook, i can not see the from address.

Any idea???

Regards
Bishnu

Below is my code
-----------------------------
Set objNewMail = golApp.CreateItem(olMailItem)

With objNewMail
       .Body = "hello"
       Set a = .Recipients.Add("bbb@yahoo.com")
       a.Type = olOriginator
       Set a = .Recipients.Add("aaa@yahoo.com")
       a.Type = olTo
       .Subject = "hello"
       .Save
       .Move gnspNameSpace.GetDefaultFolder(olFolderInbox)
End With
__________________
Regards
Bishnu Pokharel
bishnu.pokharel@gmail.com
http://www.bishnupokharel.com.np/
 
Old January 26th, 2011, 10:28 AM
Wrox Author
 
Join Date: Jun 2007
Location: Stockholm, , Sweden.
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Bishnu,

the steps in the book assumes you are working with an MS Exchange server. if you are using another mail server, then I cannot help you, unfortunately.

Regards
/Göran Husman




Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Microsoft Outlook Address Book ah_teck81 Classic ASP Professional 8 March 1st, 2013 05:28 PM
Link to Outlook Address book? Ron Howerton HTML Code Clinic 2 May 24th, 2007 07:30 AM
How to suppress the Outlook Address Book Securtiy bhavna General .NET 1 January 25th, 2007 12:35 PM
How to send an Outlook mail item to a URL haiying Access VBA 0 April 29th, 2005 08:08 AM
Adding address to Outlook To box pavel Access VBA 0 January 11th, 2005 11:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.