G
Guest
Hi,
I am using the following code to send email on a Windows 2003 Web Server:
Imports System.Net.Mail
........
Dim msgmail As New MailMessage
msgmail.To.Add(New
MailAddress(objMember.EmailAddress))
msgmail.From = New
MailAddress(objSiteInfo.site_admin_email)
msgmail.Subject = objSiteInfo.Name & "
registration confirmation"
msgmail.Body = eb
msgmail.IsBodyHtml = True
Dim smtp As New SmtpClient(Globals.SmtpServer)
smtp.Send(msgmail)
Sending the email using the code seems to work ok. Hwoever the email never
arrives and I get the following message as a result of the send:
Final-Recipient: rfc822;[email protected]
Action: failed
Status: 4.0.0
Diagnostic-Code: smtp;451 Temporary local problem - please try later
I assume that the .Net code uses the local IIS V6 'Default SMTP Virtual
Server' to send the email - Is this correct?
I have 'Enable logging' on the IIS 6.0 server switched on, however I can
neither find the log file, or indeed the log file directory
'C:\Windows\System32\Logfiles\SmtpSvc1'. Does this mean that the local IIS
server is not being used to send email?
Another .Net V 2.0 program that runs on the same web server uses the older
class System.Web.Mail to send mail. This seems to work ok.
Any clues or hints as to what might be happening?
Thanks, Mike.
I am using the following code to send email on a Windows 2003 Web Server:
Imports System.Net.Mail
........
Dim msgmail As New MailMessage
msgmail.To.Add(New
MailAddress(objMember.EmailAddress))
msgmail.From = New
MailAddress(objSiteInfo.site_admin_email)
msgmail.Subject = objSiteInfo.Name & "
registration confirmation"
msgmail.Body = eb
msgmail.IsBodyHtml = True
Dim smtp As New SmtpClient(Globals.SmtpServer)
smtp.Send(msgmail)
Sending the email using the code seems to work ok. Hwoever the email never
arrives and I get the following message as a result of the send:
Final-Recipient: rfc822;[email protected]
Action: failed
Status: 4.0.0
Diagnostic-Code: smtp;451 Temporary local problem - please try later
I assume that the .Net code uses the local IIS V6 'Default SMTP Virtual
Server' to send the email - Is this correct?
I have 'Enable logging' on the IIS 6.0 server switched on, however I can
neither find the log file, or indeed the log file directory
'C:\Windows\System32\Logfiles\SmtpSvc1'. Does this mean that the local IIS
server is not being used to send email?
Another .Net V 2.0 program that runs on the same web server uses the older
class System.Web.Mail to send mail. This seems to work ok.
Any clues or hints as to what might be happening?
Thanks, Mike.