如何在VB.NET中的电子邮件正文和主题中添加UI中的一些字段 [英] How to add some fields from UI in email body and subject in VB.NET

查看:80
本文介绍了如何在VB.NET中的电子邮件正文和主题中添加UI中的一些字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在尝试发送电子邮件,当使用vb.net从UI点击保存按钮时。



In电子邮件正文和主题,我必须包括UI中的一些字段。

喜欢主题将是。

主题帐户< id>等待批准 - 我必须在电子邮件主题中从ui获取id。



如何实现这个目标?



我尝试过:



message.sSubject As String =account+ cdrPrmMain.cId +Awaiting Approval

解决方案

我试过了



message.Subject =account+ cdrPrmMain.cId +Awaiting Approval

hello ,
I am trying to send email when there save button is clicked on fro UI using vb.net.

In email body and subject ,I have to include the some of the field from UI.
Like Subject will be.
Subject- account <id> Awaitingapproval-- i have to take id from ui in email subject.

how to achieve this?

What I have tried:

message.sSubject As String = "account" + cdrPrmMain.cId + "Awaiting Approval"

解决方案

I have tried

message.Subject = "account" + cdrPrmMain.cId + "Awaiting Approval"


这篇关于如何在VB.NET中的电子邮件正文和主题中添加UI中的一些字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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