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
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
Comment