Solved

Simple mailenvelope question

Posted on 2011-03-11
6
419 Views
Last Modified: 2012-05-11
Hello Experts,

I am trying to get a simple mail item to send FROM a specific distro list. I am able to get all of the other fields filled out but I am unable to find the proper key words to define an address in the "From" field on the email.

Thank you,

John
With ActiveSheet.MailEnvelope
   .Introduction = ""
   .Item.To = "RP CC Desks"
   .Item.Subject = ActiveSheet.Range("r83").Value
end with

Open in new window

0
Comment
Question by:redrp
  • 3
  • 3
6 Comments
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 35113753
>>I am trying to get a simple mail item to send FROM a specific distro list.

ActiveSheet.MailEnvelope.Item returns an Outlook.MailItem that works just like any other mail item in Outlook. You don't need to populate the "From" as it will go through the default Account.

If that is not what you are asking then could you please explain it a little more?

Sid
0
 

Author Comment

by:redrp
ID: 35113857
I need to change it from the default to be from a specific person.


John
0
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 35113868
One way I can think of is to use the .SentOnBehalfOfName property. If I am not wrong then that will change the sender name and reply address. However the receiver can still see the original mail address in the properties if he/she wants

    .SentOnBehalfOfName = """SenderName"" <Reply@Address.com>"

Also see this link.

http://www.rondebruin.nl/mail/account.htm

Sid
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:redrp
ID: 35113900
Hey Sid,

The Sentonbehalfofname works specificly for when you define the mailitem as an object. The Mailenvelope opens up the email options within excel itself and not the email as a seperate object. I can go that route and create the outlook item but i was just curious if it was possible to set the 'from' field w/o doing that.

Thanks,

John
0
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 250 total points
ID: 35113909
Then see the link which I gave in ID: 35113868, which changes the default account so that you do not need to specify a "From" name :)

Sid
0
 

Author Comment

by:redrp
ID: 35113997
Hey Sid,

Setting the default account only works when you have the email setup as a seperate object. Based on my conversation with you and my own research I do not believe it is possible to set the From field using VB. Thanks for your time :)

John
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question