Sending html through java.mail

Hello, what i am attempting to do is present a user with a survey via .jsp in a browser. When the user submits the form i am retrieving all of the parameters and reconsituting the html form via the URL class. What i would like to do at this point is mail the html form to myself. The net result being, when i open my outlook and view the incoming survey, the survey looks pretty much like it did just before the user submitted it.
Currently what is happening is the html text is appearing in my email as apposed to the rendered html page.
Is this a mime type issue? When i query the mulibodypart.isMimeType("html") i get "false".
The way that i am creating my mail msg is:
try {
//open the URL...
cat.debug("opening url stream...");
in = new BufferedInputStream(
url.openStream() );
} catch ( IOException e ) {
cat.error( "Couldn't retrieve data from url!" );
}//try
session.setDebug(true);
// construct the message
Message msg = new MimeMessage(session);
msg.setFrom();
msg.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to, false));
msg.setSubject(subject);
MimeBodyPart mbp1 = new MimeBodyPart(in);
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
msg.setContent(mp);
msg.setHeader("X-Mailer", "JavaMailer");
msg.setSentDate(new Date());
// send the thing off
Transport.send(msg);
Any help would be greatly appreciated.
Charlie

Here is the code that gets url and send contents of it via email
public void sendMimeMail(String subject, String sUrl, String destination, String sender){
  try {
    javax.mail.Message msg = new javax.mail.internet.MimeMessage(session); //create session somewhere
    msg.setFrom(new InternetAddress(sender));
    msg.setRecipients(javax.mail.Message.RecipientType.TO,
      InternetAddress.parse(destination, false));
    BodyPart messageBodyPart = new MimeBodyPart();
    URL url = new URL(sUrl);
    messageBodyPart.setDataHandler(new javax.activation.DataHandler(url));
    MimeMultipart multipart = new MimeMultipart("Related");
    multipart.addBodyPart(messageBodyPart);
    msg.setContent(multipart);
    msg.setSubject(subject);
    Transport.send(msg);
  }catch(Exception e){
    e.printStackTrace();
}Raine

Similar Messages

  • How to send sms through java program?

    hi,
    i am trying to send sms through java program.i am usining ubuntu 6.04.i am using modem MC35i.i use the jSMSEnjine.jar and rxtxcomm.jar.
    these are the following program.
    import org.jsmsengine.*;
    import java.util.*;
    class SendMessage
         public static void main(String[] args)
              int status;
              // Create jSMSEngine service.
         CService srv = new CService("Com2",9600);
              //CService srv = new CService("COM2",9600);
              System.out.println();
              System.out.println("SendMessage(): sample application.");
              System.out.println(" Using " + srv._name + " " + srv._version);
              System.out.println();
              try
                   //     Initialize service.     
                   srv.initialize();
                   Thread thread =Thread.currentThread();
                   thread.sleep(1000);
                   System.out.println(srv);
                   //     Set the cache directory.
                   srv.setCacheDir(".\\");
                   //     Set the phonebook.
                   //     srv.setPhoneBook("../misc/phonebook.xml");
                   //     Connect to GSM device.
                   status = srv.connect();
                   //     Did we connect ok?
                   int st=CService.ERR_OK;
                   System.out.println(st);
                   System.out.println(status);
                   if (status == CService.ERR_OK)
                        //     Set the operation mode to PDU - default is ASCII.
                        srv.setOperationMode(CService.MODE_PDU);
                        // Set the SMSC number (set to default).
                        srv.setSmscNumber("");
                        //     Print out GSM device info...
                        System.out.println("Mobile Device Information: ");
                        System.out.println("     Manufacturer : " + srv.getDeviceInfo().getManufacturer());
                        System.out.println("     Model : " + srv.getDeviceInfo().getModel());
                        System.out.println("     Serial No : " + srv.getDeviceInfo().getSerialNo());
                        System.out.println("     IMSI : " + srv.getDeviceInfo().getImsi());
                        System.out.println("     S/W Version : " + srv.getDeviceInfo().getSwVersion());
                        System.out.println("     Battery Level : " + srv.getDeviceInfo().getBatteryLevel() + "%");
                        System.out.println("     Signal Level : " + srv.getDeviceInfo().getSignalLevel() + "%");
                        //     Create a COutgoingMessage object and dispatch it.
                        //     *** Please update the phone number with one of your choice ***
    // String smsLengthTest="Hi"+"\nTesting is going on.Test for sending unlimited number of charecter.So you will get N number of SMS.Initially I trancate the whole string by 70 charecter.Later I will put it upto 90 charecter.Some chararecter should kept for header portion.I don't know the total number.It is just test.If you got the sms u should appreciate me...This is Ripon...I have written sms program";
    String smsLengthTest="Hi\n"+"This is Govindo";
    int mao=smsLengthTest.length();
    System.out.println("Length of sms :"+mao);
    String smsNo="9433314095";
    smsNo="+91"+smsNo;
    if(mao<70)
    COutgoingMessage msg = new COutgoingMessage(smsNo,smsLengthTest);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    else
    // COutgoingMessage msg = new COutgoingMessage(smsNo,smsLengthTest);
    // LinkedList messageList;
    // messageList = new LinkedList();
    // messageList.add(msg);
    // LinkedList maooo=new LinkedList();
    // maooo=srv.splitLargeMessages(messageList);
    int sizelength=0;
    int counter=0;
    sizelength=smsLengthTest.length();
    System.out.println("SMS length :"+sizelength);
    int smsCntr=sizelength/70;
    System.out.println("smsCntr :"+smsCntr);
    counter=smsCntr+1;
    int j=70;
    int k=0;
    try
    for(int i=0;i<smsCntr;i++)
    String test="";
    test=test+i;
    test=smsLengthTest.substring(k,j);
    System.out.println(test);
    System.out.println(test.length());
    COutgoingMessage msg = new COutgoingMessage(smsNo, test);
    System.out.println("hi this is suman" + smsNo);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
    k=k+70;
    j=j+70;
    catch(Exception e)
    System.out.println("Error...1");
    e.printStackTrace();
    e.getMessage();
    String lastPortion=smsLengthTest.substring(k);
    System.out.println(lastPortion);
    COutgoingMessage msg = new COutgoingMessage(smsNo, lastPortion);
    //     Character set is 7bit by default - lets make it UNICODE :)
    //     We can do this, because we are in PDU mode (look at line 63). When in ASCII mode,
    //          this does not make ANY difference...
    msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_UNICODE);
    if (srv.sendMessage(msg) == CService.ERR_OK) System.out.println("Message Sent!");
    else System.out.println("Message Failed!");
                        // Disconnect from GSM device.
                        srv.disconnect();
                   else System.out.println("Connection to mobile failed, error: " + status);
              catch (Exception e)
                   e.printStackTrace();
              System.exit(0);
    the error is:
    SendMessage(): sample application.
    Using jSMSEngine API 1.2.6 (B1)
    org.jsmsengine.CService@addbf1
    0
    -101
    Connection to mobile failed, error: -101
    please help me,its very urgent.

    come back in about 5 years, we may have time for you by then.
    In the meantime, how about contacting the people who wrote that library and asking them nicely for help (rather than trying to order people to drop whatever they're doing and jump through hoops to accommodate your every wish as you're doing here)?

  • Problem in sending messages using java mail api

    Hi All,
    I have a problem in sending messages via java mail api.
    MimeMessage message = new MimeMessage(session);
    String bodyContent = "ñSunJava";
    message.setText (bodyContent,"utf-8");using the above code its not possible for me to send the attachment. if i am using the below code means special characters like ñ gets removed or changed into some other characters.
    MimeBodyPart messagePart = new MimeBodyPart();
                messagePart.setText(bodyText);
                // Set the email attachment file
                MimeBodyPart attachmentPart = new MimeBodyPart();
                FileDataSource fileDataSource = new FileDataSource("C:/sunjava.txt") {
                    public String getContentType() {
                        return "application/octet-stream";
                attachmentPart.setDataHandler(new DataHandler(fileDataSource));
                attachmentPart.setFileName(filename);
                Multipart multipart = new MimeMultipart();
                multipart.addBodyPart(messagePart);
                multipart.addBodyPart(attachmentPart);
                message.setContent(multipart);
                Transport.send(message);is there any way to send the file attachment with the body message without using MultiPart java class.

    Taken pretty much straight out of the Javamail examples the following works for me (mail read using Thunderbird)        // Define message
            Message message = new MimeMessage(session);
            message.setFrom(new InternetAddress(from));
            // Set the 'to' address
            for (int i = 0; i < to.length; i++)
                message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    // Set the 'cc' address
    for (int i = 0; i < cc.length; i++)
    message.addRecipient(Message.RecipientType.CC, new InternetAddress(cc[i]));
    // Set the 'bcc' address
    for (int i = 0; i < bcc.length; i++)
    message.addRecipient(Message.RecipientType.BCC, new InternetAddress(bcc[i]));
    message.setSubject("JavaMail With Attachment");
    // Create the message part
    BodyPart messageBodyPart = new MimeBodyPart();
    // Fill the message
    messageBodyPart.setText("Here's the file ñSunJava");
    // Create a Multipart
    Multipart multipart = new MimeMultipart();
    // Add part one
    multipart.addBodyPart(messageBodyPart);
    // Part two is attachment
    for (int count = 0; count < 5; count++)
    String filename = "hello" + count + ".txt";
    String fileContent = " ñSunJava - Now is the time for all good men to come to the aid of the party " + count + " \n";
    // Create another body part
    BodyPart attachementBodyPart = new MimeBodyPart();
    // Get the attachment
    DataSource source = new StringDataSource(fileContent, filename);
    // Set the data handler to this attachment
    attachementBodyPart.setDataHandler(new DataHandler(source));
    // Set the filename
    attachementBodyPart.setFileName(filename);
    // Add this part
    multipart.addBodyPart(attachementBodyPart);
    // Put parts in message
    message.setContent(multipart);
    // Send the message
    Transport.send(message);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Is it possible to send SMS through java

    Hi all
    I m a student and as a part of my project I need to create an SMS server(SMS gateway). Can we send SMS through Java and if yes then send me the code for the same . Also on which GSM Modem will it Work , I've heard about Nokia GSM Modem N32. Kindly Guide me regarding the Same.
    Regards
    MoComp

    Hi all
    I m a student and as a part of my project I need to
    create an SMS server(SMS gateway). Can we send SMSSo YOU need to write it.
    through Java and if yes then send me the code for theIt's possible, as there are several commercial offerings out there.
    But as YOU need to write it it won't do for you to try and trick someone else into writing it so you can submit it as your own.
    same . Also on which GSM Modem will it Work , I've
    heard about Nokia GSM Modem N32. Kindly Guide me
    regarding the Same.All depends on how you implement it.
    A real server would have its own hardware and software to pipe directly into the network of a telco, and a contract with that telco to use their network to send messages.

  • Can I Send HTML Messages in Mail?

    I am trying to send html messages in Mail, and also to add a small html code to my signature. Is this possible? If so, how? When I put in straight code, it just remains text. I know I receive html mail, so....?

    RTf with Tiger Mail is HTML but the Mail.app does not include an HTML composer/editor.
    In order to send basic text as HTML instead of Plain Text when using RTF for message composition requires changing the font or color of existing text in a new message and/or when selecting bold, underline or italic for a word or a portion of existing text. This part I don't understand since selecting RTF for message composition should send the font and font size selected under Fonts & Colors for the Mail.app preferences as HTML by itself.
    You can use an HTML editor/composer of choice (Apple's Text Edit application can be used for this) and save the completed HTML document. Open the saved HTML document with Safari and after confirming the layout, etc. with Safari, at the menu bar go to File and select Mail Contents of This Page and the rendered page with Safari will be copied to a new Mail.app message which will be sent in its entirety.
    You can set up a "template" this way by saving the HTML message as a Draft. Utilize a user created "On My Mac" location mailbox named Templates and transfer this message from the account's Drafts mailbox to the Templates mailbox. Select this templates message and at the menu bar, go to Message and select Send Again entering all recipients and making any changes, etc. The original template message will not be altered.
    Regarding creating a Mail.app signature with HTML code, check this link.
    http://allforces.com/2006/04/14/css-signatures/
    Don't know for sure at this point but it appears this may become easier with the Mail.app under Leopard.
    http://www.apple.com/macosx/leopard/mail.html

  • Can't send email through Apple mail

    I suddenly am not able to send email through Apple mail on my MacBookPro.  ipad and iphone still working.  I can also send email through att online.  My email is @att.net, and the message says "The server cannot be contacted on port 465".  (That is the proper port)

    Hi,
    Here are some suggestions,
    1. Try downloading another free email client to see if it works from there, just to eliminate other possibilities.
    2. Try removing the account in mail settings, and adding it again with the correct settings.
    Let me know what you find!
    Nolan

  • Send email through Yahoo mail or Gmail with Java

    I have a java email program that can take a mail host name , port number and then send an email, but I don't want to use the mail host at work, I wonder if I can send email through my Yahoo Mail or Gmail account with Java, do they have any Java API that my program can log me in and send emails ? Any sample code available ? Thanks.
    Frank

    Thanks for reminding me, I did some search on "Yahoo" and "Gmail". For Yahoo someone posted some code that didn't work, for gmail, there seems to be a solution for sending email from command line. I wonder if I can send full fledged email : with CC, BCC, Attachment, Html email with images inside ...
    I've done it with a local mail host, but how to do it with Yahoo or Gmail ?
    Frank
    Have you read the JavaMail FAQ? Search for "Yahoo" and "Gmail".

  • Problem: Error while sending Email.(Java Mail API)

    Hi to ALL
    I am trying to build Application to send Email
    Below code is primary code to send Email to other smtp host.
    & also debug information is as shown below.
    If possible, then please send the solution.
    -------------------------------Code :-----------------------------------------
    URLName urlN=new URLName("smtps://"+userNm+":"+passwd+"@"+host);
    Properties props = System.getProperties();
    Session session = Session.getDefaultInstance(props);
    session.setDebug(true);
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address= InternetAddress.parse(to, false);
    msg.setRecipients(MimeMessage.RecipientType.TO, address);
    msg.setSubject("subject");
    msg.setContent("messageSend Hi", "text/plain");
    Transport transport=session.getTransport(urlN);
    transport.connect();
    transport.sendMessage(msg, address);
    ---------- Java Run ----------
    DEBUG: setDebug: JavaMail version 1.3.2
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth false
    DEBUG SMTP: trying to connect to host "hostName", port 465, isSSL true
    220 smtp110.mail.mud.yahoo.com ESMTP
    DEBUG SMTP: connected to host "hostName", port: 465
    EHLO patil
    250-smtp110.mail.mud.yahoo.com
    250-AUTH LOGIN PLAIN XYMCOOKIE
    250-PIPELINING
    250 8BITMIME
    DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN XYMCOOKIE"
    DEBUG SMTP: Found extension "PIPELINING", arg ""
    DEBUG SMTP: Found extension "8BITMIME", arg ""
    DEBUG SMTP: use8bit false
    MAIL FROM:<from email address>
    530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html
    com.sun.mail.smtp.SMTPSendFailedException: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1275)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:895)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:524)
    at SendEmail2.<init>(SendEmail2.java:46)
    at SendEmail2.main(SendEmail2.java:23)
    Exception : com.sun.mail.smtp.SMTPSendFailedException: 530 authentication required - for help go to
    http://help.yahoo.com/help/us/mail/pop/pop-11.htmls
    -------------------------------------------------------------------------------------

    It's possible. It's only software, after all.
    But it's not easy. It effectively involves
    screen scraping the HTML pages.
    There used to be a third party JavaMail provider
    that did all the hard work, but it has disappeared.

  • How to send html newsletter via Mail app

    I want crystal and clear instruction as all the ones I have found either old fashioned and not relevant or skip that interesting part.
    I have already done html page (newsletter). Now I want to transform it somehow and send via Mail app so my contacts could receive it as html newsletter. If I need to attach txt message please add it to the instruction. I need complete how to send html newsletter.

    alabanco wrote:
    thanks. Now we've got to the most interesting part and intriguing one. Why should I upload html page to the server. I do understand uploading the images to server which will be used as links in my html mail. But why and how should I store that page in my server if I have CMS post instead from which I used pictures as links. SHould I create yet another type of post in CMS that is my html newsletter? That's not cool. What is the industry standard approach for that?
    By the way Mail.app uses that baby design templates for your messages. Why don't we have an option to delete all these creepy childish templates and store solid bold corporate style templates for newsletters and send it somehow? Or will it just attach the images to the message then? If so then it is not what I want and it is really depressing.
    The industry convention/"standard" is not to use html in email. Wheteher or not your html newsletter displays as you intended is at the mercy of the recipient and their email client settings.
    If you want to preserve your html layout and styles, save your newsletter as a pdf document and attach the pdf document to your email. Or, as already suggested, use a web server to serve your html newsletter.

  • How to connect client mail through java mail.

    Hi all,
    I want to open client Mail with specified file as attachement. Is it possible to do thru java mail API. other wise can any one suggest me how can i proceed this.
    Kindly do needfull
    Thanks and Regards,
    Mohan Rao

    You can both send attachments and receive attachments using JavaMail API. There's a tutorial on the JGuru site that gives a good overview - http://java.sun.com/developer/onlineTraining/JavaMail/ .
    Good Luck :)
    &#8734; brew.man &#8734;

  • Can't Send Note Through e-mail

    Hi,
    Any one having this issue? I can compose a Note to send through e-mail, but then it doesn't get sent.

    My only other suggestions is add the email to a contact in your phone.  When you type that contact's name, their email show pop-up below as an option.  If that doesn't work, I don't know. Sorry.

  • I can send sms through java but now i need help for.......???

    hi i am working on a project where i have to read and send sms automaticaly.i succesfully build it also with the jsmsengine and nokia 3220 mobile phone and now i have to fix up some bugs.any interested candidate can contact with me so that we can fix those bug and i also want to know how can i send EMS through mobile.
    is ther any java api that can better that the jsmsengine api??
    thanx

    How did you move you rlibrary to the external drive?
    Did you follow these steps -> iTunes: Moving your iTunes Music folder
    or did you simply drag it over?
    Don't just drag it over.
    This morning, I attempted to download itunes to the new external drive so I could play and easily import my music from there, and itunes won't download to the external hard drive! The error message I'm getting says itunes will only download to the startup disk/
    Do you mean you are trying to download the iTunes program so you can install it?

  • Send HTML formatted e-mail unsing main?

    hi,
    Can I send my HTML formatted newsletter using Mail?
    When I paste in the html into Mail it shows up as the raw HTML text.
    I want to be able send out my HTML formatted newsletter.
    Mail can receive HTML formatted e-mails ...can it send them too?
    How?
    thank you.

    Hello mnorton,
    Perhaps this article can be of assistance. As the article suggest, I would test it out first by emailing a copy of it to yourself.
    http://bytes.com/topic/macosx/insights/825931-quick-way-send-html-emails-apple-m ail-mail-app
    B-rock

  • How to send HTML email in Mail?

    Hello All,
    I would like to write an email in HTML, just copy and paste the HTML code into mail, and have it sent as HTML. How do I have mail do this? Thanks!

    You can't do that; or rather, you can, but it won't work. You can view you r HTML file in Safari, then use the 'Mail Contents of This Page' option and Safari will insert the rendered HTML. But if your recipient doesn't have their mail program setup to view HTML email, they won't see whatever it is you're trying to accomplish.
    Mulder

  • Reading Mail through Java Mail using IMAP

    When i tried to connect to IMAP server am getting the following error like Ntlm class not found
    Am using JAvaMAIL API version 1.4.3.
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/auth/Ntl
    m
    at com.sun.mail.imap.protocol.IMAPProtocol.authntlm(IMAPProtocol.java:56
    1)
    at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:667)
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:596)
    at javax.mail.Service.connect(Service.java:291)
    at javax.mail.Service.connect(Service.java:172)
    at FetchMailUsage.main(FetchMailUsage.java:35)
    Caused by: java.lang.ClassNotFoundException: com.sun.mail.auth.Ntlm
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    I searched this clas in the all the jar in the java mail api.Appreciate your earlier help

    I assume you're not actually trying to use NTLM authentication.
    A bug in JavaMail 1.4.3 can cause failures related to NTLM in some cases, although I don't think
    it should show up as the failure you're seeing. To work around, set the session property
    "mail.imap.auth.ntlm.disable" to "true".
    If that doesn't solve your problem, make sure you don't have more than one set of JavaMail
    classes in your CLASSPATH.

Maybe you are looking for

  • Installing Desktop Apps from Creative Cloud | Learn Creative Cloud | Adobe TV

    See how easy it is to download and install the Adobe Application Manager and all of the desktop applications that come with Creative Cloud membership. http://adobe.ly/LAfHVh

  • How to set the ToolTipText to the titlebar of the JInternalFrame.

    Hi I have the requirement to set the ToolTipText on the Title Bar of the JInternalFrame. When the internal frame is minimized when we keep the mouse on the top of the Title Bar of the internal frame the tool tip should come. Please suggest me how to

  • Odd discovery regarding throughput to/thru TC

    Here is a puzzle I wonder if anyone can figure out and also check to see if the behavior can be replicated. In a previous post I complained about the 300KB/s throughput I was getting when copying files to my TC (using disk sharing) or through TC betw

  • N2L urgent help on DS5.2 and NIS

    Ok, I have managed to migrate all my NIS data to sunone directory server and it works fine. I have now setup a private network to work on the N2L project. I have setup a copy of the directory service on one box, on the other I have set up as a nis ma

  • I want to block a website that is harassing me please help

    I want to block a website that is harassing me by popping up everytime I start firefox. I have already deleted cookies that I thought belonged to the website through firefox's browser but to no avail. This website creates its cookies as soon as I del