Email query

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Carl Howarth

    #1

    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.com

    ..From = email@email.com

    ..Subject = "Clientserv e Brief Created (" & Session("Client Name") & ")."

    ..BodyFormat = MailFormat.Html

    ..Body = Session("RealNa me") & " from " & Session("Client Name") & " 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><B R>Clientserve"

    ..Priority = MailPriority.No rmal

    End With

    SmtpMail.Send(o bMail)

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



    Any suggestions?

    Many thanks, Carl


  • William F. Robertson, Jr.

    #2
    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.

    http://support.microsoft.com/default...b;en-us;303701

    bill


    "Carl Howarth" <carl.howarth @m-s-solutions.co.uk > wrote in message
    news:e#K8EyRVDH A.1744@TK2MSFTN GP12.phx.gbl...[color=blue]
    > 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@kp mg.com> wrote in message
    > news:OM3W9sRVDH A.2364@TK2MSFTN GP09.phx.gbl...[color=green]
    > > Look at the server: "inetpub/mailroot" and look for the message in[/color][/color]
    there.[color=blue][color=green]
    > > 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:uzfldpRVDH A.532@TK2MSFTNG P09.phx.gbl...[color=darkred]
    > > > Hi there,
    > > >
    > > > I am trying to send emails automatically from a system using the[/color][/color]
    > following[color=green][color=darkred]
    > > > code - I am wanting to use the hosting machine's own SMTP facility,[/color][/color]
    > which[color=green]
    > > I[color=darkred]
    > > > am sure has worked in the past!
    > > >
    > > > Dim obMail As New MailMessage
    > > > With obMail
    > > >
    > > > .To = email@email.com
    > > >
    > > > .From = email@email.com
    > > >
    > > > .Subject = "Clientserv e Brief Created (" & Session("Client Name") &[/color][/color][/color]
    ")."[color=blue][color=green][color=darkred]
    > > >
    > > > .BodyFormat = MailFormat.Html
    > > >
    > > > .Body = Session("RealNa me") & " from " & Session("Client Name") & " 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><B R>Clientserve"
    > > >
    > > > .Priority = MailPriority.No rmal
    > > >
    > > > End With
    > > >
    > > > SmtpMail.Send(o bMail)
    > > >
    > > > It goes through OK and doesn't generate an error but the email never
    > > > arrives!
    > > >
    > > >
    > > >
    > > > Any suggestions?
    > > >
    > > > Many thanks, Carl
    > > >
    > > >[/color]
    > >
    > >[/color]
    >
    >[/color]


    Comment

    Working...