Questions tagged [alternateview]

18 questions
11
votes
1 answer

Cancel outlook meeting requests via MailMessage in C#

I'm creating an application using the ASP.NET MVC 1 framework in C#, where I have users that register for events. Upon registering, I create an outlook meeting request public string BuildMeetingRequest(DateTime start, DateTime end, string attendees,…
BTmuney
  • 125
  • 1
  • 1
  • 5
6
votes
5 answers

HTML E-mail: Must you send an alternate plain text view as well?

When sending HTML e-mail, I understand that it's a best practice to send a plain text version as well. But my question is: Must you send a plain text version as well? What are the repercussions?
Jim G.
  • 15,141
  • 22
  • 103
  • 166
4
votes
2 answers

how to send email with alternate views either plain text or HTml templates.?

I want to send email with alternate views either plain text or html template, i have used code from the following link aspnet-sending-email-both-in-html-and-plain-text but i dont know why its not working for me.. my code is:. public void…
Ram
  • 1,131
  • 10
  • 28
  • 52
2
votes
3 answers

Attaching a file to an iCalendar

I have iCalendar meeting requests sending correctly via SMTP (using the code below), but when I attempt to attach a file, the file does not appear as part of the iCalendar. When saving out the .ics after opening it in outlook, the whole file data…
Paul F
  • 493
  • 1
  • 5
  • 21
1
vote
3 answers

.NET SMTP SendAsync with AlternateViews throws disposed exception

I am trying to send E-mails asynchronously and it works fine as long as there isn't an AlternateView attached to the e-mail. When there is an alternate view, I get the following error: Cannot access a disposed object. Object name:…
hacker
  • 1,115
  • 1
  • 15
  • 28
1
vote
1 answer

add LinkedResource from Properties.Resources in c#

Adding a jpeg picture to a mail message using LinkedResource resPic = new LinkedResource(@"path\Pic.jpg", MediaTypeNames.Image.Jpeg); works well, but I need to add the picture from the project Properties.Resources.Pic. How can that be done ?
1
vote
1 answer

Cannot seem to add a custom text alternative view to my multipart email

I am writing a system to send out bulk emails to clients and for each site we store an HTML and Text version of the email so that if the users mail client doesn't support HTML the text view is still formatted correctly and as we want. We don't want…
user2334626
  • 197
  • 1
  • 1
  • 12
0
votes
2 answers

Embed Documents using LinkedResources for MailMessage

I'm using the following code to embed images into my MailMessage. What I'm trying to do is embed documents (pdf or docx) into the email. I've tried hyperlink with a link to href="cdi:myDoc.pdf" but that doesn't work. I've also tried using…
Susan Sampi
  • 73
  • 2
  • 7
0
votes
1 answer

Does SendGrid email support construct similar to "AlternateViews" in .NET MailMessage?

Web site I work on (written in .NET) generates a lot of reports in HTML format. Some of them have images with the source ("src" attribute) pointing to a local file (i.e. local to the web site). If a user wants a report to be delivered by email we…
Salcio
  • 1
  • 1
0
votes
0 answers

Insert images in email template

I'm building a method that will send an email with some images. My template is a partial view based on a collection of its view model. The images are base64 strings that I put in the src of the img tag (inline images), and when the partial view is…
0
votes
2 answers

C# MailMessage AlternateView ignoring TransferEncoding

We send calendar invites from our system in multiple languages. (English, Spanish, German etc) Recently we added Georgian and are having issue the the encoding of MailMessage. For example 'თბილისი' in the email arrives as 'თბილისი' The…
Eilimint
  • 307
  • 1
  • 3
  • 11
0
votes
0 answers

Two questions about ical.net

I need send reminders to users of a web application. To do this I use iCal.Net from nuget packages. Following instructions about the usage I'm able to send an email with an attachment containing the ics file. My first question is: is it possible to…
Barax
  • 113
  • 1
  • 1
  • 9
0
votes
3 answers

What is the proper way to do conditional formatting in a ZF2 MVC project?

In a ZF2 project I am developing, I would like to create a shell around the echo $this->content; statement in layout.phtml that would allow conditional formatting of the main content area. Specifically, I want to put the content into a column that…
0
votes
2 answers

View HTML Email in WPF Webbrowser

In my application I send HTML Email receipts to customers after finishing an order. What I would like to do is preview this in a webbrowser control. The code I have works fine, but the images are missing in the browser. I create the HTML in an…
Richard Harrison
  • 355
  • 6
  • 19
0
votes
2 answers

c# SmtpClient with AlternateView receive blank content on Hotmail Live MSN OUTLOOK.com service

I recently face a new problem. I send email with the SmtpClient Class everything work fine except for one point. When I want to check the render on Microsoft mail service like hotmail the email is blank but when I check the source the content is…
MrZen
  • 63
  • 14
1
2