dbTalk Databases Forums  

Slightly OT: Formatting Email Text

comp.databases.ms-access comp.databases.ms-access


Discuss Slightly OT: Formatting Email Text in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Isis
 
Posts: n/a

Default Slightly OT: Formatting Email Text - 06-28-2011 , 08:18 AM






I am using Access 2002 - I have a Form where I allow a user to enter some
details then press a button to merge these with an 'Email Template' I
have written.

Using VBA I load the whole of the template text (from a standard .txt
file) - then substitute some placeholders with text from the form that
the user has entered. I have placeholders in the template using this type
of format [FIELD_NAME], then these are substituted for the appropriate
field text. It all works great and using;

DoCmd.SendObject outputformat:=acFormatTXT, To:=Me.recipient, BCC:
="sender.address.com", Subject:="Test Email",
MessageText:strMessageToSend, EditMessage:=True

I send it to Outlook Express to be sent - Again works great no problems.

I would like to add some new templates, but this time I would to generate
an email message in HTML format, so I can include logo's and pic's, plus
use color to format the text and fonts etc.

I have tried formatting the template using text entered into an HTML
email from OE, then just copying that out to the template file, but I get
a load of 'junk' type HTML code when doing that.

If anyone could give me a few pointers on how I might achieve my goal I
would be really grateful.


Thanks

Reply With Quote
  #2  
Old   
Popi
 
Posts: n/a

Default Re: Slightly OT: Formatting Email Text - 06-29-2011 , 02:54 AM






Isis <isissoft (AT) NOSPAMbtinternet (DOT) com> wrote:

Quote:
DoCmd.SendObject outputformat:=acFormatTXT, To:=Me.recipient, BCC:
="sender.address.com", Subject:="Test Email",
MessageText:strMessageToSend, EditMessage:=True

I send it to Outlook Express to be sent - Again works great no problems.

I would like to add some new templates, but this time I would to
generate
an email message in HTML format, so I can include logo's and pic's,
plus
use color to format the text and fonts etc.

I have tried formatting the template using text entered into an HTML
email from OE, then just copying that out to the template file, but I
get
a load of 'junk' type HTML code when doing that.
Hi!

I'm not familiar with that way of sending email, so these are just my 2
cents: have you tried changing outputformat parameter to acFormatHTML ?

HTH
Popi

Posted using www.webuse.net

Reply With Quote
  #3  
Old   
Isis
 
Posts: n/a

Default Re: Slightly OT: Formatting Email Text - 06-29-2011 , 08:50 AM



"Popi" <2446invalid (AT) webuse (DOT) net> wrote in news:201106290754002446
@webuse.net:

Quote:
acFormatHTML
Popi,

"SendObject only supports plain text. The acFormatHTML applies to the
object you might include as an attachment, not the text in the body of
the Email."

did a bit of digging !

Thanks very much for the idea though.

Regards

Reply With Quote
  #4  
Old   
James A. Fortune
 
Posts: n/a

Default Re: Slightly OT: Formatting Email Text - 06-30-2011 , 03:36 PM



On Jun 28, 9:18*am, Isis <isiss... (AT) NOSPAMbtinternet (DOT) com> wrote:
Quote:
I am using Access 2002 - I have a Form where I allow a user to enter some
details then press a button to merge these with an 'Email Template' I
have written.

Using VBA I load the whole of the template text (from a standard .txt
file) - then substitute some placeholders with text from the form that
the user has entered. I have placeholders in the template using this type
of format [FIELD_NAME], then these are substituted for the appropriate
field text. It all works great and using;

DoCmd.SendObject outputformat:=acFormatTXT, To:=Me.recipient, BCC:
="sender.address.com", Subject:="Test Email",
MessageText:strMessageToSend, EditMessage:=True

I send it to Outlook Express to be sent - Again works great no problems.

I would like to add some new templates, but this time I would to generate
an email message in HTML format, so I can include logo's and pic's, plus
use color to format the text and fonts etc.

I have tried formatting the template using text entered into an HTML
email from OE, then just copying that out to the template file, but I get
a load of 'junk' type HTML code when doing that.

If anyone could give me a few pointers on how I might achieve my goal I
would be really grateful.

Thanks
Maybe:

http://groups.google.com/group/comp....b9bc2310f79329

James A. Fortune
CDMAPoster (AT) FortuneJames (DOT) com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.