How to change read only SenderName and SenderEmailAddress

  • Thread starter Thread starter stuart.karp
  • Start date Start date
S

stuart.karp

Hi all,

I am writing a script that will send out an email to multiple people
with the same body, subject ect. However I wanted to send out
individual emails to each address. Since this is going to be hundreds
of emails I thought it would be easier with a script.
The only problem is is that the SenderName and SenderEmailAddress is my
email address, when I want it to be the one of my company's default
address. This is viewable in the header of the email, so I don't want
anyone seeing my personal email address.

I would like to do:

MyItem.SenderName = "Company Name"
MyItem.SenderEmailAddress = "(e-mail address removed)"

However Outlook complains that these are read-only fields. Is there
anyway around this? I would do this on my work computer, but they
don't have Outlook there. Any ideas on a workaround to maybe strip off
my personal SenderName and SenderEmailAddress would be much
appreciated. Thanks in advance.

-Stu
 
if you are going to use outlook to send, you'll need a profile with the
address set as default.

Is there a reason why you aren't using word and mail merge for this? It
should be as fast as scripting something (faster when you include the time
needed to write the script) but will require a profile with the sender's
account set as default.
 
Mail merge seems easy enough, but can I use it without having Outlook
installed? The problem is I have Outlook on my personal machine, but
have Thunderbird on my work computer where I have the profile I want to
use. Is Word's mail merge functionality only useful if you have
Outlook, or can it be use with Thunderbird?
Also I haven't been able to figure out how to email using a mail merge
or easily enter a bunch of email addresses. With a script I can just
copy and paste the email addresses instead of manually entering data.
Anymore help would be greatly appreciated. Thanks.

-Stu
 
The sample you posted will only work with outlook and you need outlook to
use mail merge in word. You'll be better off googling for something that
uses a SMTP server directly.
 
Back
Top