By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,694 Members | 2,122 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,694 IT Pros & Developers. It's quick & easy.

Problem Generating Mail Messages

P: n/a
I found this code of the internet that should create a mail message:
'Create an instance of the MailMessage class
Dim objMM As New MailMessage

'Set the properties
objMM.To = "bo*@metaprosystems.com"
objMM.From = "in**@metaprosystems.com"

'If you want to CC this email to someone else...
' objMM.Cc = "so******@someaddress.com"

'If you want to BCC this email to someone else...
' objMM.Bcc = "so*********@someaddress.com"

'Send the email in text format
objMM.BodyFormat = MailFormat.Text
'(to send HTML format, change MailFormat.Text to MailFormat.Html)

'Set the priority - options are High, Low, and Normal
objMM.Priority = MailPriority.Normal

'Set the subject
objMM.Subject = "MetaLabels Trial Version"

'Set the body - use VbCrLf to insert a carriage return
objMM.Body = "Hi!" & vbCrLf & vbCrLf & "How are you doing?"
'Now, to send the message, use the Send method of the SmtpMail
class
SmtpMail.Send(objMM)

This seems to work, I get no error message, but the mail is not sent.

Please advise, if you can.

Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
It is possible that the server does not have the necessary network
connectivity to send the mail messages. An example would be the
computer being behind a proxy, or outgoing ports are blocked on the
network.

Check the mail drop folders to see if you find your messages. The
default location would be c:\inetpub\mailroot\.

-Look in the bad subfolder. If you find your messages there, then
they couldn't be delivered by the server for some reason.

Jul 21 '05 #2

P: n/a
Nothing it the bad folder, but thanks for the suggestion.

"mphacker" wrote:
It is possible that the server does not have the necessary network
connectivity to send the mail messages. An example would be the
computer being behind a proxy, or outgoing ports are blocked on the
network.

Check the mail drop folders to see if you find your messages. The
default location would be c:\inetpub\mailroot\.

-Look in the bad subfolder. If you find your messages there, then
they couldn't be delivered by the server for some reason.

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.