Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Email query

    Hi there,

    I am trying to send emails automatically from a system using the following
    code - I am wanting to use the hosting machine's own SMTP facility, which I
    am sure has worked in the past!

    Dim obMail As New MailMessage
    With obMail

    ..To = [email]email@email.com[/email]

    ..From = [email]email@email.com[/email]

    ..Subject = "Clientserve Brief Created (" & Session("ClientName") & ")."

    ..BodyFormat = MailFormat.Html

    ..Body = Session("RealName") & " from " & Session("ClientName") & " has
    submitted a brief using Clientserve.<BR><BR>Please log in to <A
    HREF='http://www.website.com/cas'>CAS</a> to view the relevant
    details.<BR><BR>Regards,<BR><BR>Clientserve"

    ..Priority = MailPriority.Normal

    End With

    SmtpMail.Send(obMail)

    It goes through OK and doesn't generate an error but the email never
    arrives!



    Any suggestions?

    Many thanks, Carl


    Carl Howarth Guest

  2. Similar Questions and Discussions

    1. Connenting email form to an email account
      :( I am at a mental brickwall. I created a form, created two text fields and a "log in" button. What I want to have happen is when a person goes to...
    2. How to pull Query Results & put into a email to user
      I know this is simple for most, but it has been KILLING me for about 2 weeks. I need a process to send users their "forgotten" login information. I...
    3. Mailto: with query for email list not working
      I am managing a website for a membership-based organization and one of the things I am doing for them is giving them an easy way to email to the...
    4. ASP Email - CDONTS - AttachFile - Getting it embeded in the email
      I am unable to get my file attachment in the email => Here is what my code looks like - which is very simple from the documentation that I have...
    5. Email notification query (many to many) :: multiple directions
      I could sure use some conceptualization and query help with a Page Watch System I am building in Access 2000 and Asp. I need to cycle through...
  3. #2

    Default Re: Email query

    Mmmm...usually I have to turn open it in notepad, and just look for the
    readable text. Usually it has something to do with the relaying or mail
    outside the domain. (Atleast in mycases.)

    Maybe a start for you.

    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;303701[/url]

    bill


    "Carl Howarth" <carl.howarth@m-s-solutions.co.uk> wrote in message
    news:e#K8EyRVDHA.1744@TK2MSFTNGP12.phx.gbl...
    > Thanks,
    >
    > There are files in the 'Badmail' directory in the folder, but how do I
    > translate them to English?
    >
    > Many thanks, Carl
    >
    >
    > "William F. Robertson, Jr." <wfrobertson@kpmg.com> wrote in message
    > news:OM3W9sRVDHA.2364@TK2MSFTNGP09.phx.gbl...
    > > Look at the server: "inetpub/mailroot" and look for the message in
    there.
    > > There should be an error message generated and stored only there.
    > >
    > > bill
    > >
    > >
    > > "Carl Howarth" <carl.howarth@m-s-solutions.co.uk> wrote in message
    > > news:uzfldpRVDHA.532@TK2MSFTNGP09.phx.gbl...
    > > > Hi there,
    > > >
    > > > I am trying to send emails automatically from a system using the
    > following
    > > > code - I am wanting to use the hosting machine's own SMTP facility,
    > which
    > > I
    > > > am sure has worked in the past!
    > > >
    > > > Dim obMail As New MailMessage
    > > > With obMail
    > > >
    > > > .To = [email]email@email.com[/email]
    > > >
    > > > .From = [email]email@email.com[/email]
    > > >
    > > > .Subject = "Clientserve Brief Created (" & Session("ClientName") &
    ")."
    > > >
    > > > .BodyFormat = MailFormat.Html
    > > >
    > > > .Body = Session("RealName") & " from " & Session("ClientName") & " has
    > > > submitted a brief using Clientserve.<BR><BR>Please log in to <A
    > > > HREF='http://www.website.com/cas'>CAS</a> to view the relevant
    > > > details.<BR><BR>Regards,<BR><BR>Clientserve"
    > > >
    > > > .Priority = MailPriority.Normal
    > > >
    > > > End With
    > > >
    > > > SmtpMail.Send(obMail)
    > > >
    > > > It goes through OK and doesn't generate an error but the email never
    > > > arrives!
    > > >
    > > >
    > > >
    > > > Any suggestions?
    > > >
    > > > Many thanks, Carl
    > > >
    > > >
    > >
    > >
    >
    >

    William F. Robertson, Jr. Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139