Sending HTML email having problem Hotmail

I am sending a HTML email with embedded images the images are appearing fine in Outlook and Yahoo, but in Hotmail the images are displaying but also showing up as attachments. Has anyone had this problem?
thanks

Hi,
I've had a similar problem. I'm trying to outsource my images and style sheets from our website.
I add a text part to the email also and this then shows in Hotmail. The HTML part is still ignored. My code is the following...
  private static boolean sendMessage(String[] to, String subject, String message, String from, String[] filelocation) {
    try {
      String recievers = StringWizard.arrayToText(to, ", ");
      System.err.println("Email.sendMessage() : creating a new email for " + to[0] + " from " + from + ".");
      StringBuffer msg = new StringBuffer(message);
      Properties prop = new Properties();
      prop.put("mail.smtp.auth", "true");
      prop.put("mail.transport.protocol", "smtp");
      prop.put("mail.smtp.host", MAIL_HOST);
      Session mail_Session=Session.getInstance(prop, null);
      InternetAddress fromAddress = new InternetAddress(from);
      InternetAddress toAddress[] = new InternetAddress[to.length];
      for(int i=0;i<to.length;i++) toAddress[i] = new InternetAddress(to);
InternetAddress[] reply = { fromAddress };
MimeMessage myMessage = new MimeMessage(mail_Session);
myMessage.setFrom(fromAddress);
myMessage.setReplyTo(reply);
for(int i=0;i<to.length;i++) myMessage.addRecipient(Message.RecipientType.TO, toAddress[i]);
myMessage.setSentDate(new java.util.Date());
myMessage.setSubject(subject);
Multipart mp = new MimeMultipart();
// add html as the first part of the email.
// add html.
boolean sendHTML = UserHelper.HTMLEmails(to[0]);
if(sendHTML) {
System.err.println("Email.sendMessage() : Rendering text/html email to " + recievers);
MimeBodyPart htmlpart = new MimeBodyPart();
htmlpart.setContent(StringWizard.stripJavascript(StringWizard.toHTML(msg.toString())), "text/html");
mp.addBodyPart(htmlpart);
// add default stuff (text).
// add text.
System.err.println("Email.sendMessage() : Rendering text email to " + recievers);
MimeBodyPart textpart = new MimeBodyPart();
textpart.setText(msg.toString());
mp.addBodyPart(textpart);
// if we are sending any files with this email add them.
boolean attached = false;
if(filelocation!=null && filelocation.length>0) {
for(int i=0;i<filelocation.length;i++) {
File attachment = new File(filelocation[i]);
if(attachment.exists() && attachment.isFile() && attachment.canRead()) {
System.err.println("Email.sendMessage() : Attaching file " + attachment.getAbsolutePath() + " to email bound for " + recievers);
MimeBodyPart attachfile = new MimeBodyPart();
FileDataSource fds = new FileDataSource(attachment);
DataHandler dh = new DataHandler(fds);
attachfile.setFileName(attachment.getName());
attachfile.setDisposition(Part.ATTACHMENT);
attachfile.setDescription("Attached File: " + attachment.getName());
attachfile.setDataHandler(dh);
mp.addBodyPart(attachfile);
attached = true;
ContentType cttext = new ContentType("text/plain", "iso-8859-1", new ParameterList());
if(attached==false && !sendHTML) myMessage = addMessageHeaders(myMessage, cttext);
myMessage.setContent(mp);
Transport tr = mail_Session.getTransport("smtp");
tr.connect(MAIL_HOST, USERNAME, PASSWORD);
int line = 1;
Enumeration enum = myMessage.getAllHeaderLines();
while(enum.hasMoreElements() && DEBUG) {
System.err.println("Email.sendMessage() : HDR" + (line < 10 ? ("0" + line) : (line + "")) + ": " + (String)enum.nextElement());
line++;
myMessage.saveChanges();
tr.sendMessage(myMessage, toAddress);
tr.close();
System.err.println("Email.sendMessage() : email sent to " + recievers);
return true;
catch(Exception e){
e.printStackTrace(System.err);
return false;

Similar Messages

  • Need to send HTML email from Workflow : problem with sender

    Hi all,
    i need to send HTML email from my Workflow. I did it but i have a problem with the sender. The sender of email is always the agent responsible of workitem, and i don't want the receiver can answer to sender. So i need to put a false email address like nosender.at.mycustomer.com.
    Possible to do that ?
    Thanks for your help.
    Cheers

    Hi rick
    How to change the wf-batch to some other name  as you mention in previous reply. Can you give some details of that. If i use the function module SO_NEW_DOCUMENT_ATT_SEND_API1 how to change the wf-batch name and if i use send mail step in my workflow how to change wf-batch name.
    Regards
    vijay

  • How to send HTML email to End User using OOTB email processs?

    Hi,
    We are using OOTB Send email process to send email to end user.
    Templates has been created inside /etc/workflow/ProjectName/email folder.
    Its working properly for plain text email.but for html template ,It send the email with html tags.
    Any pointer on how to write html template for OOTB email process and activate email type as html ?
    Thanks
    Deepika

    Thanks Sham..
    I am able to send HTML email following above link.
    The problem i am facing is,When i am deploying the code through crxde.Code is working fine.
    But using maven deploy..Bundle get activated ..But at line:
    messageGateway = this.messageGatewayService.getGateway(HtmlEmail.class);
    ,it gives null Pointer exception.
    Any pointer,why its not working from maven deployment.
    Regards
    Deepika

  • How to send html email notification in bpel

    hi gurus,
    i want to send html email notification from bpel.
    before, i already successful send html email with attachment, but when i send an email without attachment, then the body message will turn into a plain text.
    as i check from the email accepted, email with attachment will have a mime type "text/html" but if no attachment then it will be "text/plain"
    from the bpel configuration, by default the mime type already set to "text/html; charset=UTF-8", below is the sample configuration in my bpel process
    [quote]
    <copy>
                                    <from>string('text/html; charset=UTF-8')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:MimeType</query>
                                    </to>
                                </copy>
    [/quote]
    i think this suppose to be a easy configuration, but i'm not sure whether i miss something in configuration the email process or this is a bugs in bpel.
    environment:
    linux
    jdev 11.1.1.6
    do u guys ever facing a same problem or have a solution to this ? please throw some light.
    thanks
    ===
    update, i found a temporary solutions.
    so i add a attachment from the process design, and then i change it from the source.
    [quote]
    <copy>
                                    <from>
                                        <literal>
                                            <Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/alternative</MimeType>
                                                <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                    <MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                        <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                            <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                            <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                            <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                        </BodyPart>                                            
                                                    </MultiPart>
                                                </ContentBody>
                                            </Content>
                                        </literal>
                                    </from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content</query>
                                    </to>
                                </copy>
    <copy>
                                    <from>string('text/html; charset=UTF-8')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:ContentBody/ns10:MultiPart/ns10:BodyPart[1]/ns10:MimeType</query>
                                    </to>
                                </copy>
                                <copy>
                                    <from>string('your message')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:ContentBody/ns10:MultiPart/ns10:BodyPart[1]/ns10:ContentBody</query>
                                    </to>
                                </copy>
    [/quote]
    make sure you put the mime type multipart/alternative into the email payload content. by default, when you add attachment, it will generate mime type multipart mixed automatically.
    if you don't change it to multipart/alternative, your email will show a attachment, but actually your email doesn't contain any attachment.
    and then for the message and mimetype make sure you have that ns10:bodypart, because this email already been set as a multipart email.
    when you add attachment, by default it will generate 2 body part, first one is for the body message and the second one is for the attachment. since i only want to use the body message only, then i have to erase the second bodypart
    with this workaround, i can send a html email without attachment perfectly.
    but i have to take note, when i updating the email process from process design, then the source will be generated again automatically, and the edited one will be replaced.
    thanks.

    Make sure you upload all of the images used in your email to a server you control. Then, change your image paths to point to those uploaded images with absolute links.
    You will get marked as spam if you attempt to send images as attachments to a large list of recipients and most email clients won't download images to begin with, so make sure your html email makes sense with broken pictures.
    CSS support is spotty across email clients, if you use css, make sure it's inline, not embedded in the <head> or externally linked in the <head>. Some email clients strip out the <head> section entirely.
    Basically, you need to design your html email as if you haven't moved out of the 90's yet, as far as web design is concerned, in order to get maximum cross client compatibility.
    Then, when you're ready, I would suggest using a service like www.icontact.com or www.constantcontact.com if your subscriber list is anywhere over 100 or so recipients.

  • How can I send HTML emails that display in Mail?

    Hi,
    I have an email newsletter that I recently have begun experimenting with in HTML. The problem is, when I try to use HTML, the message displays properly in things like Yahoo! webmail, but in Mail for OSX, it displays like a regular text message, images and formatting are not used. I'm sending the messages from PHPList. Is there something I need to add to my code to get it to display correctly?
    Thanks much.
    -Jonas

    Well, I did check the layout in Safari, and it looked fine. Since I'm not sending the messages from Mail (since it's for a rather large mailing list handled by PHPList), selecting "Mail the Contents of this Page" wouldn't really do very much for me.
    If I do try to send the page using that technique, it does work. But I have to use PHPList to compose and mail the message. I just need to know if there's any other code I need to add to make it display in Mail. I can receive other HTML emails no problem, but mine just shows up as text, disregarding images and other elements. I just don't know what's going on here.

  • Can i send html emails from my Nokia 5530XM?

    Hi,
    I thought I had a font problem with the emails I sent but I´ve realized that emails sent from the phone are plain text with a UTF8 encoding.
    Is there any way I can send html emails, maybe using a different font for sending then? I use the inbuilt messaging that came from the phone, i´ve read somewhere around there´s a Nokia email client application, but I don´t know where to find it, if it can be used on a Nokia 5530 and if it does, can both Messaging and email clients coexist?
    Thanks in advance for your help and best regards,
    L.

    According to AOL they support IE, Firefox, and Safari: http://help.aol.com/help/microsites/microsite.do?cmd=displayKC&docType=kc&extern alId=73451
    Have you tried contacting there support to see if they are aware of the issue: http://help.aol.com/help/microsites/microsite.do

  • How to send html email made in dreamweaver

    how to send html email made in dreamweaver

    Make sure you upload all of the images used in your email to a server you control. Then, change your image paths to point to those uploaded images with absolute links.
    You will get marked as spam if you attempt to send images as attachments to a large list of recipients and most email clients won't download images to begin with, so make sure your html email makes sense with broken pictures.
    CSS support is spotty across email clients, if you use css, make sure it's inline, not embedded in the <head> or externally linked in the <head>. Some email clients strip out the <head> section entirely.
    Basically, you need to design your html email as if you haven't moved out of the 90's yet, as far as web design is concerned, in order to get maximum cross client compatibility.
    Then, when you're ready, I would suggest using a service like www.icontact.com or www.constantcontact.com if your subscriber list is anywhere over 100 or so recipients.

  • Cgiemail and sending html emails

    Anyone out there know how to send an html email
    using cgiemail? From what I have found on web there needs to be
    something special in the header???? I know how to send just .txt
    emails but client wants to send html email regardless how much I
    warned them on spam and html emails. Any help would be greatly
    appreciated. I have exhausted my search for the answer on the web
    other than it can be done.
    Thanks bunches! skh

    You will need to do your homework.
    Look at the properties (headers) of an html email you
    received.
    Read the SMTP RFCs.
    Test your email through programs like Spam Assassin.
    Test your email in various email programs.
    Good luck.
    -Rb

  • Sending HTML email with SO_DOCUMENT_SEND_API1

    Hi all,
    I have implemented a function module to send HTML emails with SO_DOCUMENT_SEND_API1.
    It works fine, but in every email I have at the end a CRLF which looks not very nice in MS Outlook.
    It seems that this will be added to every email in addition to my HTML text.
    Has anyone an idea how I can prevent this?
    Thanks in advance for your help.
    Best Regards,
    Marcel

    Hi Marcel,
    not only you can, you should use CL_BCS for sending of email. Although I expect it to be not too different from the old functions, it points to the object oriented future of SAP/ABAP. At least it should run more stable and SAP recommends to use it as a replacement for old functions.
    I came across one blog
    [Sending HTML Email from SAP CRM/ERP|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/2273]
    You may be careful with this one: Probably it's not exactly what you need.
    The one I love most for its simplicity is this one
    [Unknown thus unloved?|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/3443]
    although it does not mention HTML - I think easy for you to adapt. Compared  to functional SO_DOCUMENT.. approach the program will shrink.
    If you want to understand the concepts behind, nobody explains it better than
    [Thomas Jung: Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/789]
    or - if you still feel unsafe in oo environment -
    [Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417300%29ID2058700050DB10227264795501776639End?blog=/pub/wlg/15408]
    Happy coding!
    Regards,
    Clemens

  • B1if Sending HTML Email

    Is it possible to send HTML emails through a sndEmail atom?  If so, how do we configure the atom?

    Hello All,
    Regarding to the mail adapter, here are some updates:
    1. B1i will support sending HTML attachemnt via "Send Email" atom in B1 882 PL09. An example here:
    <attachment doc="test.htm" pltype="htm">
    <![CDATA[<html>
      <head>
        <title>Enter the title of your HTML document here</title>
      </head>
      <body>
        <p>Enter the body text of your HTML document here</p>
      </body>
    </html>]]>
    </attachment>
    2. In addition, B1i will support sending binary attachment and sending html content in Q1,2013.
    Thanks & Best Regards,
    Qiaoli

  • Sending HTML email from outlook 2013 exchange it comes broken to non outlook clients.

    Hi, when i send out email from my outlook 2013 where is configured Microsoft exchange account it comes broken to gmail clients. All html mail is broken and attachments comes like this file.jpg_ or adobe.pdf_ If i send mail to outlook user
    all is good but if client uses something else , they receive broken mail.
    Msg comes to gmail clients like this 
    http://community.office365.com/cfs-filesystemfile.ashx/__key/communityserver-components-userfiles/00-00-39-06-09-Attached+Files/4745.errror.jpg
    Without signature and normal phone and email. 
    Client is using windows 8.1.
    I started discussion here http://community.office365.com/en-us/forums/158/p/227602/704778.aspx#704778 but they sent me to your forum. You can read our discussion
    and see what i did already.

    Hi,
    Some question to help narrowing down the causes:
    1. Does this issue occur when using Outlook to configure the Gmail account, does the format change?
    2. Does this issue also occur when sending HTML emails to other remote domains?
    If the emails is fine when opening them on Outlook, it think Exchange does not change anything on the email. The issue occurs depends on how email clients open the email.
    Thanks,
    Simon Wu
    TechNet Community Support

  • Sending HTML email to Lotus Notes

    Guys,
    We have to send en email to our customers in an intra net site. And our SMTP server is Lotus Notes. When ever I send html email, it is sent as attachment. Here is why that happens with html email:
    http://www-1.ibm.com/support/docview.wss?rs=899&uid=swg21088385
    Now I am looking for alternative ways to send html email using Java Mail to Lotus Notes client. My last option is RTF or plain text. But still how do I manager the URL links.
    Thanks

    Well, It sounds like you already answered your own question.
    Answer
    In Domino� 6.x and later, the following notes.ini settings are enabled by default for any user that has a setting of
    "Prefers Notes Rich Text" in the "Format preference for incoming mail" field in the user's Person document:
    MIME_Convert_HTML_To_Attachment=1
    MIME_Convert_Alternates=0No matter what you code on your side. If you send your messages as HTML the Lotus Notes Mail Server will convert the the HTML to Attachments.

  • Send HTML emails with ODI

    Hi,
    I wish to send HTML emails with ODI but it seems not possible with the tool ODISendMail. Do you know a procedure to do it ?
    Thank you very much for your answers.
    Regards.

    Hello,
    Thanks but this article decribes an other tool that I don't have in my version. Maybe is it possible to send me the procedure XML to import it ?
    There is also a procedure available on the Oracle support (TRT_Send_Jython_HTML_Email.xml) but I don't know where I can download it... Do you ?
    Thank you very much

  • How to send HTML emails with embedded graphics?

    I've discovered Mail is great for sending HTML if you open it in Safari and select "Mail Contents of this Page" - - My problem is, I need to include the graphic elements as embedded images rather than hosted images.
    Is there any way to do this with Mail.app?
    Can I somehow modify my HTML image references to make this happen?
    Is there another Mac application recommended to do this?

    The best thing I've tried is Max Bulk Mailer. Do a search for it on VersionTracker. It's about $50. or so.
    If you're just looking to send one offs, you can do it with a hotmail account - just make sure you pull out the doctype tag (you should do this for any html email).

  • My ipad is not sending my emails form my hotmail account.

    I have deleted the account, switched my iPad off  and re-entered my password and it still won't send my emails. i can read them but not sent, it keeps saying the password/address is incorrect. Can anyone please help?
    Aimi

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    eMail Groups - You can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

Maybe you are looking for

  • My settings icon is no longer showing.  How do get back on my screen?

    My settings icon is no longer showing on my iPad screen.  I can found it when I search for it.  But I how do I get the icon on my screen? Thanks in advance foray help you provide.

  • Unmatched Records Query

    Hi Folks - I have a table of students and a table of student test scores. I want to create a query that lists students that do not have a score. Do-able? Michael

  • TinyXML,NanoXML,KXML etc..

    Hi there.. I need to use any one the above parser for parsing the xml document which is in String format..Can u help in how to actually put all the required parser classes into Midp applications..or either to set classpath for that parser.. Mail me A

  • Problem with 8.0, apparently I don't have it?

    I installed iTunes 8 last night, I just tried to download iphone update 2.1, but it said if I wanted to download it, I needed to download iTunes 8. What can I do to fix this?

  • RECEIVING PROCESSING MODE에 대한 BULLETIN

    제품 : MFG_PO 작성날짜 : 2004-02-10 RECEIVING PROCESSING MODE에 대한 BULLETIN ====================================== PURPOSE PO receipt를 실행시키다 보면 RCV:Processing Mode에 따라 문제가 발생 하거나 정상적이거나 혹은 debug가 생성되거나 하는 다른 양상을 볼 수 있다. 이 Note는 이런 Receiving Processing Mode에