473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

sending email crashes with ms acecss

DP
hi,

i've got a piece of code, which sends an e mail to a customer, asking them
to return a rened film.

however, it only works if u have ms outlook express installed.

is there any way of doing a check or somthing, so that the program does not
crash?? cos i tried it on my m8s pc, and the program just haults!! and he
didint believe me that it works, but it works fine on my home (this) pc.

thanx

dev
Feb 20 '06 #1
8 2411
DP wrote:
hi,

i've got a piece of code, which sends an e mail to a customer, asking them
to return a rened film.

however, it only works if u have ms outlook express installed.

is there any way of doing a check or somthing, so that the program does not
crash?? cos i tried it on my m8s pc, and the program just haults!! and he
didint believe me that it works, but it works fine on my home (this) pc.

thanx

dev

Have you checked out SendObject? Ex:
DoCmd.SendObject acSendNoObject, , acFormatTXT, strTo, strCC, strBCC,
strSubject, strEmailBody, True
Feb 21 '06 #2
DP
sorry, this is wat i've got;

Private Sub cmdFilmMail_Click()
DoCmd.SendObject _
, _
, _
, _
"Enter E-Mail address HERE", _
, _
, _
"Blockbuster Team - You have an Overdue Film Rental", _
" Our system has notified us, that you currently have a film overdue."
& vbNewLine & "Please can you return this film to your nearest Blockbuster
store, or a penalty charge will apply after 2 days." & vbNewLine & vbNewLine
& "Thank You. " & vbNewLine & "Yours Faithfully," & vbNewLine & vbNewLine &
"Blockbuster Team", True
End Sub

the above works, but only if i have outlook express installed. i'll try the
bit u gave me later, and get bak to u.

tanx

dev

"salad" <oi*@vinegar.com> wrote in message
news:Oj*****************@newsread3.news.atl.earthl ink.net...
DP wrote:
hi,

i've got a piece of code, which sends an e mail to a customer, asking them to return a rened film.

however, it only works if u have ms outlook express installed.

is there any way of doing a check or somthing, so that the program does not crash?? cos i tried it on my m8s pc, and the program just haults!! and he didint believe me that it works, but it works fine on my home (this) pc.

thanx

dev

Have you checked out SendObject? Ex:
DoCmd.SendObject acSendNoObject, , acFormatTXT, strTo, strCC, strBCC,
strSubject, strEmailBody, True

Feb 22 '06 #3
Could you, please, confirm that you mean "Outlook Express", the e-mail
program that is installed with Internet Explorer, and thus, present, I
believe on almost all Windows OS computers, rather than "Outlook" the
Personal Management and E-mail program which is part of Microsoft
Office?
Is it possible that you mean that the OutputTo crashes unless there is
a default E-mail Account set up in Outlook Express?
TTBOMK Access's SendObject is dependent on a MAPI compatible E-mail
program, together with an E-mail SMTP account, being set as the default
E-Mail program through Internet Options.
I abandoned OutputTo for the most part several years ago because it is
has more than one vulnerability, including not operating at all when
there is no child window in the main Access window; that may be
corrected by now.
If you are using Windows 2000 or later version you can use CDO with a
bit of code. It seems to be quite easy for some, but not for others.

Feb 22 '06 #4
DP
i'm using outlook express 6, which comes with windows xp.

but my m8 does not have it, and so it has an error, and starts a msn
passport thing.

dev

"Lyle Fairfield" <ly***********@aim.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Could you, please, confirm that you mean "Outlook Express", the e-mail
program that is installed with Internet Explorer, and thus, present, I
believe on almost all Windows OS computers, rather than "Outlook" the
Personal Management and E-mail program which is part of Microsoft
Office?
Is it possible that you mean that the OutputTo crashes unless there is
a default E-mail Account set up in Outlook Express?
TTBOMK Access's SendObject is dependent on a MAPI compatible E-mail
program, together with an E-mail SMTP account, being set as the default
E-Mail program through Internet Options.
I abandoned OutputTo for the most part several years ago because it is
has more than one vulnerability, including not operating at all when
there is no child window in the main Access window; that may be
corrected by now.
If you are using Windows 2000 or later version you can use CDO with a
bit of code. It seems to be quite easy for some, but not for others.

Feb 22 '06 #5
DP
hi,

i've done;

Private Sub cmdFilmMail_Click()

DoCmd.SendObject acSendNoObject, , acFormatTXT,
"Enter e-mail address here", _
, _
, _
"Blockbuster Team - You have an Overdue Film Rental", _
" Our system has notified us, that you currently have a film overdue."
& vbNewLine & "Please can you return this film to your nearest Blockbuster
store, or a penalty charge will apply after 2 days." & vbNewLine & vbNewLine
& "Thank You. " & vbNewLine & "Yours Faithfully," & vbNewLine & vbNewLine &
"Blockbuster Team", True

but its all in RED!!. can u sort that little bit out, the order is messed up
and i cant figure it out?

dev

"DP" <DP@hotmail.com> wrote in message
news:lG*******************@newsfe7-win.ntli.net...
sorry, this is wat i've got;

Private Sub cmdFilmMail_Click()
DoCmd.SendObject _
, _
, _
, _
"Enter E-Mail address HERE", _
, _
, _
"Blockbuster Team - You have an Overdue Film Rental", _
" Our system has notified us, that you currently have a film overdue." & vbNewLine & "Please can you return this film to your nearest Blockbuster
store, or a penalty charge will apply after 2 days." & vbNewLine & vbNewLine & "Thank You. " & vbNewLine & "Yours Faithfully," & vbNewLine & vbNewLine & "Blockbuster Team", True
End Sub

the above works, but only if i have outlook express installed. i'll try the bit u gave me later, and get bak to u.

tanx

dev

"salad" <oi*@vinegar.com> wrote in message
news:Oj*****************@newsread3.news.atl.earthl ink.net...
DP wrote:
hi,

i've got a piece of code, which sends an e mail to a customer, asking them to return a rened film.

however, it only works if u have ms outlook express installed.

is there any way of doing a check or somthing, so that the program does
not
crash?? cos i tried it on my m8s pc, and the program just haults!! and he didint believe me that it works, but it works fine on my home (this)

pc.
thanx

dev

Have you checked out SendObject? Ex:
DoCmd.SendObject acSendNoObject, , acFormatTXT, strTo, strCC, strBCC,
strSubject, strEmailBody, True


Feb 22 '06 #6
DP wrote:
"Blockbuster Team - You have an Overdue Film Rental", _
" Our system has notified us, that you currently have a film overdue."
& vbNewLine & "Please can you return this film to your nearest Blockbuster
store, or a penalty charge will apply after 2 days." & vbNewLine & vbNewLine
& "Thank You. " & vbNewLine & "Yours Faithfully," & vbNewLine & vbNewLine &
"Blockbuster Team", True


You may want to check your english in your message above, it's
absolutely atrocious. Presumably, this is representing a company.

Not meant to be a personal knock, DP, but it's horrible english.
There's absolutely nothing worse than receiving something that looks
like it was written by someone not fluent in the language the message is
composed in (I say, ending my sentence with a preposition...).

Also, if your message is in red, then you're probably sending it in
html. Not sure why, though, you've specified acFormatTXT.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Feb 22 '06 #7
DP
no offence m8, but u didint help me one bit. the message i've got is only a
sample, so i can see wat it looks like. obviously i'm going to change it!!

the code i gave before, does not work, the writing appears in red and i dont
know wat the problem is.

dev
"Tim Marshall" <TI****@PurplePandaChasers.Moertherium> wrote in message
news:dt**********@coranto.ucs.mun.ca...
DP wrote:
"Blockbuster Team - You have an Overdue Film Rental", _
" Our system has notified us, that you currently have a film overdue." & vbNewLine & "Please can you return this film to your nearest Blockbuster store, or a penalty charge will apply after 2 days." & vbNewLine & vbNewLine & "Thank You. " & vbNewLine & "Yours Faithfully," & vbNewLine & vbNewLine & "Blockbuster Team", True


You may want to check your english in your message above, it's
absolutely atrocious. Presumably, this is representing a company.

Not meant to be a personal knock, DP, but it's horrible english.
There's absolutely nothing worse than receiving something that looks
like it was written by someone not fluent in the language the message is
composed in (I say, ending my sentence with a preposition...).

Also, if your message is in red, then you're probably sending it in
html. Not sure why, though, you've specified acFormatTXT.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me

Feb 22 '06 #8
DP wrote:
no offence m8, but u didint help me one bit. the message i've got is only a
sample, so i can see wat it looks like. obviously i'm going to change it!!


Just making sure you knew. 8) I'm glad you did, but you'd be surprised
how many post secondary students these days try to pass something like
that off on a formal essay.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Feb 22 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
1
by: kumana1 | last post by:
This site is fantastic, first of all. Second of all, thank you for your time in this matter. I have been using some code that was posted on here (I apologize for not being able to remember who)...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
7
by: bleachie | last post by:
Hey, I just need some help, my form seems to not send me all of the 'guestNames' and 'guestEmails' forms. i use this function to add more guestnames and guestemail fields based on the number of...
2
by: Keith G Hicks | last post by:
I'm using the following code to send out email messages to a list of people in a database. My problem is that if I'm sending to 100 people and the 40th address is bad, it crashes on that one and...
10
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area>...
31
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...

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.