I am trying to use the following code to create an email message which
takes its body from values stored in a form. I want to split the values
up so I have added some line breaks to strBody. These work in acccess
but as soon as they are transferred to outlook they disapear.
Is there a way to keep formatting while transferring to outlook?
TIA
Private Sub Command159_Clic k()
Dim strEmailAddress As String
Dim strTitle As String
Dim strBody As String
strTitle = Me.txtTitle.Val ue
strBody = Me.txtTitle & Chr(13) & Chr(10) & Me.txtAnno.Valu e & Chr(13)
& Chr(10) & Me.txtDescripti on.Value & _
Chr(13) & Chr(10) & "£" & Me.txtPrice.Val ue
strEmailAddress = "rt*******@blue yonder.co.uk"
DoCmd.SendObjec t acSendNoObject, , , strEmailAddress , , , strTitle,
strBody, -1
End Sub 1 1544
If you're using SendObject, AFAIK, you're not using Outlook at all, but
(probably) only Simple MAPI. If you have to have the stuff formatted,
then automate *Outlook*, and don't use SendObject. Then you can format
until you're blue in the face.
Look at Tony Toews site or at MS for examples. or search the NG for
Outlook.
I know they're around, as I've read a lot of them. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Powell |
last post by:
if (is_array($_POST)) {
foreach ($this->getAssocSectionsObjArray($key, $dbAP) as
$obj) {
print_r($obj); print_r(" in array? ");
print_r(in_array($obj, $result)); print_r("<P>");
if (!in_array($obj, $result)) array_push($result, $obj);
}
}
|
by: Logan McKinley |
last post by:
I have an application that uses SendKeys.SendWait(...) to send RTF
(formatting and all) to a word. I was hoping it would parse the formatting,
therefore retaining the original formatting of the RTF but it treats the
formatting information as standard text and displays it as normal. How do I
tell word that I am sending RTF instead of regular text with SendKeys? Is
it even possible to send RTF to word without cutting and pasting?
Thanks...
|
by: JD |
last post by:
Hi --
I've scanned a ton of google results and am sort of confused by all the
different objects that can be used for this. Here's what I need to do
(fairly simple) --
Construct an xml object in memory and fill it with some arbitrary
data.
Send this xml object to a web server.
Retrieve xml data from the server.
|
by: John Brock |
last post by:
I am currently using a VB.NET program to send out e-mails with
plain text bodies (plus one attachment). The emails are being
received as Rich Text messages (probably just my personal Outlook
default, because I didn't do this in the program), but there is no
actual formatting (italics, color, etc.) in the message body, which
is passed to from VB.NET to Outlook as an unformatted text String.
I want to start applying formatting to the...
|
by: Aj Blosser |
last post by:
Hey guys, I have a question for you,
I have a setup where I'm sending files through the POST to a php web page, I
read the file contents, put that file contents as text into the POST string,
and send it on it's way.
it works perfectly for text files. However, I can't open a word document
like a text file and have it give me the result I need. I'm looking for a
way to just open a word document and get all the values in it like you would...
| |
by: bamrak |
last post by:
I seem to have gotten over my head, but this seems fairly
straightforward..
I have a table of items assigned to a rep, and I have a rep list table
created from the original table ( to show only reps in the main
table).
I want to be able to send and email to each rep with only their
items.
I know I will have to have a loop statement that will take the reps
|
by: sanjay123456 |
last post by:
Dear friends,
<?php
//define the receiver of the email
$to = 'sanjay.mit@gmail.com';
//define the subject of the email
$subject = 'Test HTML email';
//create a boundary string. It must be unique
|
by: harry.viet |
last post by:
I use the prototype library and create a class that builds a grid
using some parameters as mentioned below.
Everything is working but only the parameters for Number formatting
var gridopts = {
iPageSize : 100,
dataSource : '../data/ledgergetdata.asp',
dataPars : { acct_type : '2' },
columns : },
{ name: 'credit', field : 'credit', width: '10%' ,
|
by: digicrowd |
last post by:
http://bytes.com/images/howtos/applemail_sig_icon.jpg
You can make your emails fancy in Mail.app by using Rich Text formatting or even included Stationery. But, a simple way to send your own HTML creation (or any web page for that matter) is to use Safari. Follow these four easy steps.
1. Create the HTML
Layout your HTML code including any images or graphics you'd like to include. In this example, we will make a simple birthday email to add...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |