可以在Sentonbehalfofname中使用文本字符串吗? [英] Can use a text string within Sentonbehalfofname?

查看:71
本文介绍了可以在Sentonbehalfofname中使用文本字符串吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用VBA从我的帐户发送电子邮件,但看起来是从其他用户发送的.有没有一种使用Sentonbehalfofname的方法,以便您可以在不具有访问权限的情况下包括所需的任何文本字符串?

I would like to send an email using VBA from my account, but have it appear that was sent from a different user. Is there a way to use Sentonbehalfofname so that you can include whatever text string you'd like without having access rights?

Set outlookapp = CreateObject("outlook.application")
msg = "Enter Message here"
subject = "Enter subject here"
Set item = outlookapp.createitem(0)

With item
.Sentonbehalfofname = "Yogi Bear"

谢谢

推荐答案

.From = """Your string""  < sender@email.com>"

这篇关于可以在Sentonbehalfofname中使用文本字符串吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆