当前位置: 首页>>代码示例>>Java>>正文


Java Email.setTextHTML方法代码示例

本文整理汇总了Java中org.simplejavamail.email.Email.setTextHTML方法的典型用法代码示例。如果您正苦于以下问题:Java Email.setTextHTML方法的具体用法?Java Email.setTextHTML怎么用?Java Email.setTextHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.simplejavamail.email.Email的用法示例。


在下文中一共展示了Email.setTextHTML方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getEmailConfirmationMail

import org.simplejavamail.email.Email; //导入方法依赖的package包/类
public static Email getEmailConfirmationMail(String email, String name, String confirmationCode) {
    Email mail = getBaseMail();

    mail.addNamedToRecipients(name, email);
    mail.setSubject("Willkommen bei Twasi");
    mail.setTextHTML("Heyho "+name+",<br />" +
            "<br />" +
            "das Twasi-Team heißt dich herzlich Willkommen bei Twasi, deinem Chatbot von der Community für die Community!<br />" +
            "<br />" +
            "Um deine E-Mail Adresse zu bestätigen, klicke auf den folgenden Link: "+ Config.getCatalog().webinterface.self + "/confirm?code=" + confirmationCode +"<br />" +
            "<br />" +
            "Warum solltest du deine E-Mail Adresse bestätigen? Deine E-Mail Adresse wird für später kommende Features erforderlich sein.<br />" +
            "<br />" +
            "Ab sofort sammeln wir Statistiken deines Twitchchannels, helfen deinen Zuschauern und dir mit Commands im Chat und halten diesen sauber. <br />" +
            "<br />" +
            "Aber das ist noch lange nicht alles! Wenn du weitere Features kennenlernen möchtest, solltest du einen Blick in unsere <a href=\"https://twasi.net/docs\" >Dokumentation</a> werfen. Dort findest du auch jederzeit Hilfe!" +
            "<br />" +
            "Wir wünschen dir viel Spaß beim Einrichten und Nutzen von Twasi!<br />" +
            "<br />" +
            "Solltest du Fragen oder Anregungen haben erreichst du uns unter den angegebenen Social Media Links oder unter der angegebenen E-Mail Adresse.<br />" +
            "<br />" +
            "Twasi-Team<br />");
    appendFooter(mail);

    return mail;
}
 
开发者ID:Twasi,项目名称:twasi-core,代码行数:27,代码来源:MailTemplates.java

示例2: main

import org.simplejavamail.email.Email; //导入方法依赖的package包/类
public static void main(final String[] args) throws Exception {
    clearConfigProperties();

    final Email emailNormal = new Email();
    emailNormal.setFromAddress("lollypop", "[email protected]");
    // don't forget to add your own address here ->
    emailNormal.addRecipient("C.Cane", YOUR_GMAIL_ADDRESS, RecipientType.TO);
    emailNormal.setText("We should meet up!");
    emailNormal.setTextHTML("<b>We should meet up!</b><img src='cid:thumbsup'>");
    emailNormal.setSubject("hey");

    // add two text files in different ways and a black thumbs up embedded image ->
    emailNormal.addAttachment("dresscode.txt", new ByteArrayDataSource("Black Tie Optional", "text/plain"));
    emailNormal.addAttachment("location.txt", "On the moon!".getBytes(Charset.defaultCharset()), "text/plain");
    String base64String = "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABeElEQVRYw2NgoAAYGxu3GxkZ7TY1NZVloDcAWq4MxH+B+D8Qv3FwcOCgtwM6oJaDMTAUXOhmuYqKCjvQ0pdoDrCnmwNMTEwakC0H4u8GBgYC9Ap6DSD+iewAoIPm0ctyLqBlp9F8/x+YE4zpYT8T0LL16JYD8U26+B7oyz4sloPwenpYno3DchCeROsUbwa05A8eB3wB4kqgIxOAuArIng7EW4H4EhC/B+JXQLwDaI4ryZaDSjeg5mt4LCcFXyIn1fdSyXJQVt1OtMWGhoai0OD8T0W8GohZifE1PxD/o7LlsPLiFNAKRrwOABWptLAcqc6QGDAHQEOAYaAc8BNotsJAOgAUAosG1AFA/AtUoY3YEFhKMAvS2AE7iC1+WaG1H6gY3gzE36hUFJ8mqzbU1dUVBBqQBzTgIDQRkWo5qCZdpaenJ0Zx1aytrc0DDB0foIG1oAYKqC0IZK8D4n1AfA6IzwPxXpCFoGoZVEUDaRGGUTAKRgEeAAA2eGJC+ETCiAAAAABJRU5ErkJggg==";
    emailNormal.addEmbeddedImage("thumbsup", parseBase64Binary(base64String), "image/png");

    // let's try producing and then consuming a MimeMessage ->
    final MimeMessage mimeMessage = Mailer.produceMimeMessage(emailNormal);
    final Email emailFromMimeMessage = new Email(mimeMessage);

    // note: the following statements will produce 6 new emails!
    sendMail(emailNormal);
    sendMail(emailFromMimeMessage); // should produce the exact same result as emailNormal!
}
 
开发者ID:viydaag,项目名称:dungeonstory-java,代码行数:26,代码来源:MailTestApp.java

示例3: appendFooter

import org.simplejavamail.email.Email; //导入方法依赖的package包/类
private static void appendFooter(Email mail) {
    mail.setTextHTML(mail.getTextHTML() + "<br /><br />" +
            "Twasi.net<br />" +
            "Twitch Bot - Statistiken - Tools<br />" +
            "https://twasi.net<br />" +
            "<br />" +
            "Kontakt:<br />" +
            "E-Mail: <a href=\"mailto://[email protected]\">[email protected]</a><br />" +
            "Twitter: <a href=\"https://twitter.com/TwasiNET\">@TwasiNET</a><br />" +
            "<br />" +
            "<img src=\"data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAATAAAABCCAYAAADQZoqNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACR/SURBVHhe7V0HfFRFGk+oopzY0Ts99Ti5O0EPxDukJCGAohTpJXRBSuhFBAJIlV4VQUghvfdAIHRCCTWhE5QWIBBaICRAAuh33zc7m2w2s5v39r232Zz7//3+v8Du25l5b+b955uZb75xADvssKPMkJdfALfzHkBWbi4yzyTpmvuP8uFBQQH/pR0Eu4DZYYeV8PS33+Bk1g3YdyUTkq5mwk9n0sElNBJq+QfBaz7+UHOdab6L1zQMi4QW4dEwPzUNNly7DtuuXIVk5NFrWZjuTci8lwNPMI8/EuwCZocdGuP09Ruw5tgJaLdpM7zkFwCOPr7gEBQMDpER4BAXCw6xMeAQUwrpGka8PjoKHEJDwcE/EBzW+UF1TPNF/Hft4FDosmMXLDh1Gn44egJCTpyG9em/wNGr1+Dew0e8NP9fKCZgv//+O0zYtgu+3roTBkvkoK07oF1guE2x0Vpfu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v5QZY0XOKAQmWIF/J6uew+F6n2/IOgYGQeeJ07Cr5huRk4Oy0s955PyB7uA2WGHFUDiRgtFtG2NziQlPnz8GHILHsN9JP01pu7zAnYd+w0ODZ+osCD0/wS7gNlhhx3lFnYBs8MOO8ot7AJmhx12lFvYBcwOO+wopwD4HzAMUECE/qzbAAAAAElFTkSuQmCC\" /><br />" +
            "Diese E-Mail wurde automatisch generiert. Solltest du dich nicht bei Twasi registriert haben kannst du diese ignorieren.");
}
 
开发者ID:Twasi,项目名称:twasi-core,代码行数:14,代码来源:MailTemplates.java

示例4: send

import org.simplejavamail.email.Email; //导入方法依赖的package包/类
public synchronized void send(String to,String subject,String content){
    Email email = new Email();
    email.addRecipient(getNickname(to), to, Message.RecipientType.TO);
    email.setSubject(subject);
    email.setTextHTML(content);
    sendMail(email);
}
 
开发者ID:QianWorks,项目名称:qianworks-meican,代码行数:8,代码来源:MailService.java

示例5: beforeSendMail

import org.simplejavamail.email.Email; //导入方法依赖的package包/类
@Before(value = "sendMailPointcut(email)")
public void beforeSendMail(Email email) throws Throwable {
    email.setFromAddress("千橙工坊", from);
    email.setTextHTML(email.getTextHTML() + "<br>-----------</br>千橙工坊");
}
 
开发者ID:QianWorks,项目名称:qianworks-meican,代码行数:6,代码来源:EnvelopeAdvice.java


注:本文中的org.simplejavamail.email.Email.setTextHTML方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。