cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NamegomJan
Helper II
Helper II

Send an email from a group email address

Hi everyone, I have an Outlook group and a respective email address for this group.

 

I have the rights to send emails from that group email address. I want to send an confirmation email with the group email address and not my personal email address as the sender. I tried the following code which gives me an error message unfortunately:

 

Office365Outlook.SharedMailboxSendEmail("group@outlook.com";varEmail;"confirmation message");;

 

This is the error message:

 

error.jpg

 

Can you please help?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Dual Super User
Dual Super User

Hi @NamegomJan 

 

There is no need to use: Office365Outlook.SharedMailboxSendEmail

If you have send on behalf rights of this mailbox use: 

Office365Outlook.SendEmailV2(youEmailAddress,"test","testing",{From:"mailBoxOnBehalf})

 

Hope it helps !

View solution in original post

2 REPLIES 2
gabibalaban
Dual Super User
Dual Super User

Hi @NamegomJan 

 

There is no need to use: Office365Outlook.SharedMailboxSendEmail

If you have send on behalf rights of this mailbox use: 

Office365Outlook.SendEmailV2(youEmailAddress,"test","testing",{From:"mailBoxOnBehalf})

 

Hope it helps !

Thanks @gabibalaban. This worked

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,597)