#1
  1. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Jun 2004
    Posts
    181
    Rep Power
    15

    Problem with a mail component


    I'm trying to get Quicksoft Free SMTP working with no luck. I keep getting an

    XML Parsing Error: no element found
    Location: /calendar/ical.aspx
    Line Number 1, Column 1:

    Which I don't understand at all because I'm not referencing any xml file...

    Code:
    <%@ Page Language="C#" %>
    <%@ Import Namespace="Quiksoft.FreeSMTP" %>
    
    <script runat="server">
    private void Form_Load(object sender, System.EventArgs e)
        {
            EmailMessage msgObj = new EmailMessage();
              msgObj.From.Email="me@whatever.com";
            msgObj.From.Name="Me";
             msgObj.Recipients.Add("you@whatever.com", "You", RecipientType.To);
             msgObj.Subject="Subject";
             msgObj.BodyParts.Add("<html><body>Message body.</body></html>", BodyPartFormat.HTML);
             msgObj.BodyParts.Add("Message body.", BodyPartFormat.Plain);
             msgObj.Attachments.Add("c:\\sig.txt");
            SMTP smtpObj = new SMTP("smtp.address.com");
             smtpObj.Send(msgObj);
         }
    </script>
    Any assistance would be appreciated.
    Last edited by mtarby; August 25th, 2006 at 01:14 PM.
  2. #2
  3. Certified Abuser
    ASP Good Citizen (1000 - 1499 posts)

    Join Date
    Jan 2005
    Location
    Line 73 ---^
    Posts
    1,050
    Rep Power
    137
    the xml error is a bit strange.. perhaps it needs to be aware that html/xml is coming
    Code:
    msgObj.BodyFormat = MailFormat.Html;


    --------------edit



    I just saw you were using a component sorry and that you had bodypartHtml not too sure about your component.. but hey you've been bumped



    here's a good article that talks about enabling logging with that component and it claims it is really helpful

    http://www.quiksoft.com/newsletter/i...ult.asp?page=3
    Last edited by werD; August 25th, 2006 at 03:11 PM.
    werD, MCSD .Net
    <% ASP,.NET App Development %>

    Really Help People with Real Diseases... And Get a Cool Blue Flower!

    If a post has helped you please use the scales... we all need bigger heads

Similar Threads

  1. working with a MS Access calendar
    By lil_me in forum Microsoft Access Help
    Replies: 2
    Last Post: January 22nd, 2010, 07:56 PM
  2. Problem with creating Multiple instances of Form in VB!
    By vb_programmer in forum Visual Basic Programming
    Replies: 9
    Last Post: June 25th, 2006, 02:09 PM
  3. Encoding problem: unknown character
    By RedOcean in forum ASP Development
    Replies: 1
    Last Post: May 21st, 2006, 01:50 PM
  4. Problem with a calendar.
    By pablobhz in forum ASP Development
    Replies: 1
    Last Post: December 29th, 2005, 10:30 AM
  5. Problem with code on OCX Calendar
    By AdamsKelly in forum Microsoft Access Help
    Replies: 1
    Last Post: September 16th, 2005, 07:19 AM

IMN logo majestic logo threadwatch logo seochat tools logo