473,587 Members | 2,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem Generating Mail Messages

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*@metaprosys tems.com"
objMM.From = "in**@metaprosy stems.com"

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

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

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

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

'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(o bjMM)

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

Please advise, if you can.

Jul 21 '05 #1
2 1344
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\mail root\.

-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
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\mail root\.

-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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3091
by: Bruce W...1 | last post by:
In my effort to learn PHP I'm playing with some simple email scripts. They worked a few days ago but they stopped working. The only thing I've done to this Windows 2000 PC in this time was a Windows Update which I do regularly. The only part of this update that might be related was an IE 6 update. So I uninstalled and reinstaled PHP 4.3.3....
15
2033
by: Cem Louis | last post by:
Hi to all, I have the following html mail sender code written in php. It is working properly but my problem is, code doesn't send the text correctly which is in the varible "$mesaj". Code sends some unreadable text. Any help would be appreciated, Thanx all. Note: I put the sample image of the problem in: http://www.wiliw.com/problem2.gif ...
5
1113
by: matt dittman | last post by:
I have created a windows service that reads emails from a drop directory and moves them to the appropriate mail folder every 15 seconds. I can move, rename and delete the files as needed, up until the CDO.DropDirectory.GetMessages() method is called. At this point, the files are locked until I shut down the service. After processing and...
102
5638
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in...
3
1875
by: Riku Kosonen | last post by:
Hi, We have some problems with sending mail with the SMTP service on IIS (Windows 2000). We use the ASP.NET platform and have an ASPX-page that sends different mail messages to about 1000 clients. After some tests we found out that in one test some messages didn't arrive at all to the recipient. All logs state that the operation went...
2
297
by: Bob Avallone | last post by:
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 = "bob@metaprosystems.com" objMM.From = "info@metaprosystems.com"
10
1669
by: paul814 | last post by:
I am having a bit of a problem with some code....can someone give me some suggestions? Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\production \date2.php on line 28 line 28 is this line: while($row = mysql_fetch_array(mysql_query($sql)) { It is the first while..
4
1958
by: mike1reynolds | last post by:
I have a VirtualMode DataGridView that bogs down on using the mouse wheel to scroll and gets a backlog of messages such that it continues to scroll long after ceasing to turn the mouse wheel. This is because instead of generating one scrollbar message for each mouse wheel message it generates a separate scrollbar message for each line move,...
18
2377
by: Grant Edwards | last post by:
Could whoever is responsible for the gateway that is grabbing my postings off of Usenet and e-mailing them out please fix the headers in the mail messages so that I don't get the bounce messages? While you're at it, might as well fix it for everybody else too. ;) Its a bit rude to send out mass e-mail messages with headers faked up so...
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.