Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have an aspx page that give an exam result. I would like to send copy of this page as an e-mail body. I did a lot of search about this situation but i can not find any solution.
To start with, you can't do like this. But instead, what you can do is load data in some DataTable and create HTML body of the email by looping through the rows of that DataTable.
What I intend to say is you create email body string from the results and send that to wherever you want to send it.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a C# Service generating a PDF document. After that I need to create a new record in CRM 2016 by using the Web-API and insert the generated PDF
Is this possible with the CRM Web-API? Any hint?
Sure you can.
Base64-encode the content and put it inside the documentbody field of an annotation. The correct MIME-type is application/pdf
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
This picture is and email with html. I used C# to make emails to be sent on gmail. My deepest question is, how to put action here in buttons? Like if I click the Threat button, it will signify to my C# that the picture is a threat. I know it's about json stuffs, but I don't know how to implement it. Thanks guys
One easy method is to use html link
<Button here/>
around the button, the links must be encoded and carry custom parameters as query string or url/path. Similar technique is used in "verify email id" mails.
And at the backed the received parameters are decoded and analysed to take necessary action.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I was trying to send my data from one page to another page..
I was using Session[] to transfer it,
but the problem is Session is really eat my memory and make my website slower..
Is there any suggestion what will I do?
Use Query String
String s = Request.QueryString["field1"];
The fastest way is QueryString, but there are some restrictions of using it:
the information should be string that must contain characters that are valid for the URL-addresses
the information would be open for every user and every person who has Internet access
advanced user can modify querystring and set any other value, that may cause unexpected result
browsers have length restriction for URL-addresses (1-2 kilobytes)
If you have no problems with this restrictions you can use QueryString, it's more faster than Session
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am using c# .Net to send emails, My requirement is to send emails to a specific domain (Eg: #abc.com) and when emails are sent to any other email id other than #abc.com, users should see an error message that they cannot send emails outside #abc.com.
I know we can achieve it using javascript validation but is there any setting which we can set in config?
Thanks
You can do it like this. Take a label and assign it #abc.com. You can also change the label text from config file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
For my job i have to make many small projects that require to send different mails and set up some html. I usually make these forms in Winforms. Now at this moment whenever i need to fill my html I take the string replace some values and have functions that write hardcoded table rows.
To make my job a little easier I was wondering if it was possible to import the razor engine(not sure if it's the right word choice) in my winforms project and simply pass a model to a CSHTML file which returns me the HTML in a string so i can mail it to coworkers.
If this is possible, instructions on how to do it are welcome.
Kind Regards Roxas