Group:  Microsoft Outlook ยป microsoft.public.outlook.program_forms
Thread: Set initial value From field to %USERNAME%?

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Set initial value From field to %USERNAME%?
LarsRotterdam 28.09.2006 14:12:01
Hi,

I want to set the inital value of a From field to
"smtp:%USERNAME%[ at ]company.com".

Is this possible? I made an email template in Outlook which shows the from
field. Then I can set the initial value to myname[ at ]company.com, but I want
Outlook to check the username logged in and put that in front of the [ at ].

Hope my explanation is clear and somebody can help me.

Kind regards,

Lars
Re: Set initial value From field to %USERNAME%?
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 28.09.2006 15:05:40
To do that in a custom form would require custom code, which wouldn't run in an .oft template and wouldn't be an appropriate solution for messages being sent to external recipients.

Maybe you could provide a more detailed description of your scenario and goals.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"LarsRotterdam" <LarsRotterdam[ at ]discussions.microsoft.com> wrote in message news:5A256B03-FA2D-4D15-93C2-86FCF4AC629A[ at ]microsoft.com...
[Quoted Text]
> Hi,
>
> I want to set the inital value of a From field to
> "smtp:%USERNAME%[ at ]company.com".
>
> Is this possible? I made an email template in Outlook which shows the from
> field. Then I can set the initial value to myname[ at ]company.com, but I want
> Outlook to check the username logged in and put that in front of the [ at ].
>
> Hope my explanation is clear and somebody can help me.
>
> Kind regards,
>
> Lars
Re: Set initial value From field to %USERNAME%?
LarsRotterdam 29.09.2006 07:35:01
Ok, first of all thank you for your quick reply and help.

Let me explain the situation. We have different companies with all there own
domain name. We have a Small Business Server 2003 which handles all our
email. So I have lars[ at ]companyA.com and lars[ at ]companyB.com as an emailaddress.

We used Ivasoft software to be able to send from those different
emailadresses. You get a From:-field where you have to type
smtp:Lars[ at ]companyA.com to send from this address.

I also made a stationairy for each company. In an Outlook template I
combined the stationairy with that companies emailaddress in the From-field.
This is done so its easy for people that work here and they won't make a
misstake. Clients may not know CompanyA belongs to CompanyB and vice versa.

But I want to automate the From-field initial value, because else I have to
make a template for each individual that works here. The emailaddresses are
like username[ at ]companyA.com.

I hope you understand what I'm trying to achieve and you have a solution.

Kind regards,

Lars


"Sue Mosher [MVP-Outlook]" wrote:

[Quoted Text]
> To do that in a custom form would require custom code, which wouldn't run in an .oft template and wouldn't be an appropriate solution for messages being sent to external recipients.
>
> Maybe you could provide a more detailed description of your scenario and goals.
>
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
> "LarsRotterdam" <LarsRotterdam[ at ]discussions.microsoft.com> wrote in message news:5A256B03-FA2D-4D15-93C2-86FCF4AC629A[ at ]microsoft.com...
> > Hi,
> >
> > I want to set the inital value of a From field to
> > "smtp:%USERNAME%[ at ]company.com".
> >
> > Is this possible? I made an email template in Outlook which shows the from
> > field. Then I can set the initial value to myname[ at ]company.com, but I want
> > Outlook to check the username logged in and put that in front of the [ at ].
> >
> > Hope my explanation is clear and somebody can help me.
> >
> > Kind regards,
> >
> > Lars
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net