이메일 본문 내부에 HTML 파일 (iframe이 포함되어 있음)을 보내야합니다. 브라우저에서 HTML 파일이 제대로 작동하고 동영상을 재생하고 있습니다.하지만 보낼 때 이메일 본문 내부에서 iframe 태그가 해석되지 않아 본문에 표시되지 않습니다. 이것은 html 파일입니다.HTML IFrame 태그가 이메일 본문에서 해석되지 않습니다.
<b>Aman</b>
<iframe height="390" frameborder="0" width="640"
src="http://www.youtube.com/embed/Sf5T5KjMpJU?wmode=transparent"
title="YouTube video player"></iframe>
전자 메일 본문에는 굵은 체로 된 "Aman"만 표시됩니다. 이것은 C# 코드입니다.
StreamReader reader = File.OpenText("C:\\Users\\Girish\\Desktop\\amrit\\Jeff_Project\\indeex.html");
string getemail = textbox_email.Text;
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.To.Add(getemail);
message.Subject = "Hello";
message.From = new System.Net.Mail.MailAddress("sendingemail");
//message.Body = "This is message body";
message.IsBodyHtml = true;
message.Body = reader.ReadToEnd();
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.gmail.com");
smtp.Credentials = new System.Net.NetworkCredential("sendingemail", "password");
smtp.EnableSsl = true;
smtp.Send(message);
Response.Write("Sent");
iframe이 해석되지 않는 이유는 무엇입니까?
도와주세요.
미리 감사드립니다.
일부 이메일 클라이언트 만 iframe을 지원합니다. https://www.campaignmonitor.com/blog/post/3219/do-iframes-work-in-email/ 그래서 미리보기 이미지 전송과 같은 다른 접근 방법을 찾아야합니다. 재생 버튼이있는 비디오를 재생하고 비디오를 재생할 웹 사이트에 이미지를 연결 –