HTML 이메일을 직접 보내기 위해 빠르고 쉬운 방법은 무엇입니까?
문제
다른 이메일/웹 메일 클라이언트를 위해 HTML 이메일을 최적화하는 작업이 주어졌습니다. Outlook Express에서 트릭을 수행하여 RAW HTML을 보내도록 HTML 파일을 테스트했지만 Microsoft는 Outlook Express 공급을 중지 한 것으로 보입니다 ( "라이브 메일"이 대체되어야한다고 생각합니다).
제 질문은 HTML 이메일을 보내는 간단하고 빠른 방법이 있습니까? 일을하는 프리웨어 프로그램조차?
해결책
ㅏ 테스트 메일 서버 도구 이를 도울 수 있습니다 -신청서에서 보낸 이메일을 수신하고보아야하는 경우.
다른 팁
메일을 넣습니다 요즘 가장 좋은 방법입니다. 체크 아웃 비슷한 질문에 대한 답 Puts Mail의 제작자에 의해.
나는 Python을 사용합니다. 맨 아래에는 텍스트 기본값이 포함 된 HTML 이메일을 만드는 방법이 있습니다. http://docs.python.org/library/email-examples.html이것을 매개 변수화하고, 함수에서 캡슐화하고, 파일에서 컨텐츠를 읽을 수 있습니다 (smtp 서버에 "s = smtplib.smtp ( 'localhost')"에서 localhost를 설정해야합니다).
HTML 이메일이 다양한 클라이언트에서 제대로 표시되는지 여부를 테스트하려는 경우 sendmail.exe (창문 만).
.html 파일을 저장하고 전자 메일 콘텐츠로 명령 줄에서 해당 프로그램에 파이프 할 수 있습니다. /주제/서버 등에 대한 명령 줄 옵션이 있습니다.
이를 통해 .html 파일을 편집하고 명령 줄을 다시 실행하여 이메일을 신속하게 보내고 다시 세우는 것이 가능합니다. 프로그래밍이 필요하지 않습니다.
편집 : Linux와 동일한 이름의 유사한 명령 줄 도구가 있습니다.
Mac에있는 경우 Safari 및 Mail을 사용하여 HTML 이메일을 빠르게 보낼 수 있습니다. 아래 링크에서 세부 사항에 대해 블로그를 작성했지만 기본적으로 HTML 파일을 Safari에서 보고이 페이지의 파일> 메일 내용을 선택합니다.
http://www.ravelba.com/blog/send-html-email-with-safari-mail-for-fast-testing/
Mozilla의 Thunderbird 이메일 클라이언트에서 HTML 이메일을 보낼 수 있다고 생각합니다.
http://www.mozillamessaging.com/en-us/thunderbird/
이것이 제가 테스트 이메일을 보내는 데 사용한 것입니다. 또는 이메일 제공 업체도 사용할 수 있다고 생각합니다.
나는 할 것이다 ~ 아니다 심지어 가도 모든 언어로 ...
나는 멈출 것이다 Mailchimp 그리고 설정 a 무료 계정 (매달 최대 500 명과 3000 개의 보내기) ... 3000 개의 보내기가 올바르게 테스트하기에 충분합니까? :)
전문적으로 이메일을 보내는 데 필요한 모든 도구가 있습니다 (클라이언트/친구에게 계정을 설정하여 뉴스 레터에서 MailChimp를 사용할 수 있습니다).
당신이 그것에있는 동안, 그들의 것을보십시오 자원 페이지뿐만 아니라 뉴스 레터에서 무엇을 사용할 수 있는지 알 수있는 완벽한 도구입니다. 캠페인 모니터 소유하다 이메일 클라이언트의 CSS 지원 안내서
도움이되기를 바랍니다
.NET을 실행 중이고 Gmail 계정이 있다면 이것은 쉬운 방법입니다.
using System.Net;
using System.Net.Mail;
var fromAddress = new MailAddress("from@gmail.com", "From Name");
var toAddress = new MailAddress("to@example.com", "To Name");
const string fromPassword = "fromPassword";
const string subject = "Subject";
const string body = "Body";
var smtp = new SmtpClient
{
Host = "smtp.gmail.com",
Port = 587,
EnableSsl = true,
DeliveryMethod = SmtpDeliveryMethod.Network,
UseDefaultCredentials = false,
Credentials = new NetworkCredential(fromAddress.Address, fromPassword)
};
using (var message = new MailMessage(fromAddress, toAddress)
{
Subject = subject,
Body = body
})
{
smtp.Send(message);
}
보다 gmail을 통해 .NET로 이메일을 보내십시오 자세한 사항은
루비 변형 :
require "mail"
options = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "smtp.gmail.com",
:user_name => "me@gmail.com",
:password => "password",
:enable_starttls_auto => true,
:authentication => :plain,
}
Mail.defaults do
delivery_method :smtp, options
end
mail = Mail.new do
to "me@gmail.com"
from "Me Me me@gmail.com"
subject "test email"
html_part do
content_type "text/html; charset=UTF-8"
body File.read("index.html")
end
end
mail.deliver
액세스를 가능하게하는 것을 잊지 마십시오 https://www.google.com/settings/security/lesssecureapps
HTML 이메일 (종종 대량)을 사용합니다. phpmailer. 그것은 나를 위해 잘 작동했습니다.
또한 사용할 수 있습니다 PowerShell
일반적으로 특별한 것을 설치할 필요가없는 Windows 전용 무료 솔루션은 ASP 또는 WSH를 사용하는 것입니다. vbscript 대신 jscript를 선택합니다.
function sendHtml(recipients, subject, html) {
var mail = Server.CreateObject("CDO.Message");
mail.From = "Tester <tester@example.com>";
mail.Subject = subject;
mail.To = recipients.join(";");
mail.HTMLBody = html;
// Do the following if you want to directly use a specific SMTP server
mail.Configuration.Fields.Item(
"http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;
mail.Configuration.Fields.Item(
"http://schemas.microsoft.com/cdo/configuration/smtpserver")
= "smtp.example.com";
mail.Configuration.Fields.Item(
"http://schemas.microsoft.com/cdo/configuration/smtpserverport")
= 25;
mail.Configuration.Fields.Update();
mail.Send();
}
메모: 그러나 HTML 은이 접근법으로 약간 재구성 될 수 있습니다.
대화에 매우 늦었지만 여기에 HTML 이메일을 보내는 가장 빠른 방법 (모범 사례와는 거리가 멀지 만)이 있습니다.
당신을 봅니다 렌더링 웹 페이지와 같은 웹 브라우저의 HTML, 그런 다음 ctrl+a
그러면 전체 페이지를 선택하십시오 ctrl+c
복사 및 ctrl+v
HTML을 렌더링 한 붙여 넣기는 이메일 본문에 영향을 미칩니다. 그보다 더 쉬워지지 않습니다 ...
수신자가보고 싶다면 이미지를 호스팅해야합니다.
function sendHtml(recipients, subject, html) {
var mail = Server.CreateObject("CDO.Message");
mail.From = "Tester <tester@example.com>";
mail.Subject = subject;
mail.To = recipients.join(";");
mail.HTMLBody = html;
// Do the following if you want to directly use a specific SMTP server
mail.Configuration.Fields.Item(
"http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;
mail.Configuration.Fields.Item(
"http://schemas.microsoft.com/cdo/configuration/smtpserver")
= "smtp.example.com";
mail.Configuration.Fields.Item(
"http://schemas.microsoft.com/cdo/configuration/smtpserverport")
= 25;
mail.Configuration.Fields.Update();
mail.Send();
}
.NET에서 system.net.mail을 사용할 수 있습니까?
이메일 템플릿에서 읽고 우편물 제기 본문을 읽을 수 있습니다.
이메일 보내기
System.Net.Mail.MailMessage msg = CreateMailMessage();
SmtpClient sc = new SmtpClient();
sc.Host = ConfigurationManager.AppSettings["SMTPServer"];
sc.Port = 0x19;
sc.UseDefaultCredentials = true;
sc.Send(msg);