Email Formatting -
Hi Experts!
I am working on one project, wherein I am sending an emails through lotus notes using the VBA code. It is working absolutely fine, however I am facing trouble in formatting the email. Is there any possible way if I want to make few lines bold in my email.
Here is the code which I am using. Please suggest it is really very urgent.
Private Sub CommandButton1_Click()
Dim strBOdocument As String
Dim strBOUserDocsPath As String
Dim domSession As New Domino.NotesSession
Dim domNotesDBMailFile As NotesDatabase
Dim domNotesDocumentMemo As NotesDocument
Dim domNotesRichText As NotesRichTextItem
Dim richStyle As NotesRichTextStyle
'Dim richStyle As n
Dim strAttachment As String
Dim names As String
Dim firstline As String
Dim secondline As String
Dim thirdline As String
Dim fourthline As String
Dim fifthline As String
Dim sixthline As String
Dim seventhline As String
Dim i As Integer
Dim sig1 As String
Dim sig2 As String
Dim sig3 As String
Dim sig4 As String
Dim doc As NotesDocument
Dim f As New StdFont
Sheets("sheet4").Select
Worksheets("Sheet4").Range("A6").Select
sig1 = Worksheets("Sheet4").Range("A6") & vbNewLine
sig2 = Worksheets("Sheet4").Range("A7") & vbNewLine
sig3 = Worksheets("Sheet4").Range("A8") & vbNewLine
sig4 = Worksheets("Sheet4").Range("A9") & vbNewLine
nam = Worksheets("Sheet4").Range("A6")
i = 0
domSession.Initialize ("")
Sheets("Sheet1").Select
Range("A6").Select
Do While Selection.Offset(i, 0) <> ""
strBOdocument = Selection.Offset(i, 2) & " Hotel Program: Urgent Action Required(1)"
Set domNotesDBMailFile = domSession.GetDatabase("", "headline.nsf")
Set domNotesDocumentMemo = domNotesDBMailFile.CreateDocument
Call domNotesDocumentMemo.AppendItemValue("Form", "Memo")
Call domNotesDocumentMemo.AppendItemValue("SendTo", domSession.CommonUserName)
Call domNotesDocumentMemo.AppendItemValue("Subject", strBOdocument)
Set domNotesRichText = domNotesDocumentMemo.CreateRichTextItem("Body")
Set richStyle = domSession.CreateRichTextStyle
'RICHTEXT.AppendStyle (richStyle)
names = Selection.Offset(i, 0) & " " & Selection.Offset(i, 1)
txt="PLEASE MAKE THIS TEXT BOLD"
richStyle.Bold = yes
domNotesRichText.AppendStyle richStyle
domNotesRichText.AppendText (txt)
domNotesDocumentMemo.Send False, emails
domNotesDocumentMemo.Send (False)
Loop
End Sub
Default email formatting at runtime -
Ok, so using the shell mailto: (with or without api) is not exactly a mystery. You add a ? after the adress(es) of the recipient followed by something like:
body=mymessage&subject=mysubject&cc=myccaddys&bcc=mybccaddys
Ok, that's all well and good, it works fine. Bu
sending email with css/html -
ok, its easy to send emails with html thats fine however... how is it possible to send an email that contains CSS?
imagine going to a blog site and viewing a specific blog.
I want to be able to send that blog page in an email as is with all the layout/formatting etc...
i have
Sending email from VB with default email client -
I need to open the default email client from Visual Basic and input the subject and the body in HTML (got tables and text formatting)
I've tried saving it as a .eml file then opening it using ShellExecute but it only works for Outlook Express and no other programs.
And using ma
Can Excel automatically trigger an email -
I have a great Excel spreadsheet that gives me warnings of critical dates by the dates changing color. I would like to have that color change trigger an email to the responsible party.
For example:
Cell A1 has the person's name...lets call him Y.Zass
Cell A2 has the critical da
when xls cell is red gen email msg to lotus notes user -
Does anyone know of a way to generate an email to a lotus notes (mail app) when inside ms excel (using vba). For example I will set up conditional formatting that will turn a cell "red" and when that happens I want to send an email warning; the email app is lotus notes (I am
HTML Emails -
Hiya There,
I'm trying to send an HTML newletter to a whole bunch of people nvia email. i have their emal addreses in Access and have the code to get the email adress one at a time and creat an HTML email in the body of the email. The text has around 12 lines plus 2 images (linked
Mapi Help -
I am trying to USe the MAPI Control to send a formated Message (RTF Format). But when I send the Email, it looks like the basic Ascii format. I want it to should all the special fonts and formatting. Does anyone know how to do this? I have sent the message using a Richtext box but the
formatting datagridview -
Hi All.
DGV column Contact has value email address and phones. Is it possiable to format that column if email address it will like regular string and if phone number it will formating like (###) ###-####.
Thanks.
outlook addin possibility -
I'm wondering about the possibility of a project I've been thinking about. I want to make an addin for Outlook. At the click of a button, I want an email to be "cleaned" for forwarding. In other words, I'd remove any spaces longer than 2 nbsp, remove line spacing greater t
Looking for Email formatting suggestions -
I'm starting a new task and wanted to solicit suggestions in case someone has already done something similar. I'm not looking for anyone to do my work. I just don't want to reinvent the wheel.
I need to format the body of an Email in Outlook 2002, no attachments. I've got example
how to create printer friendly html -
i create a html email using an app. what inwould like to know is if there is a way of formatting this html so i prints nicely to a4.
at the moment if you open the email in a browser it looks greta but doesn't print correctly.
i've seen this option before on some web sites
excel conditional formatting -
Hi, I have an excel page full of numbers..I need to formatting up to ten numbers
I mean I want all my ten numbers to be of red colour.But
When I apply the formatting using the “Cell Value Is” method,
I am allowed up to three conditions.Is there a method of formatting more than
Creating an email from my default mail program -
So now Ive fixed my formatting of values i need to chuck this into an email!
Ive been googeling but not found anything of use.
Basically im trying to launch a new mail, from my default mail client (ie outlook express), and fill in the to, subject and content body. But im struggel
CSS acting Flakey -
In my application I have a masterpage, that has content placeholders, I am also using CSS to control the formatting. I can't figure out why...but the formatting referenced from the CSS is no longer working. So here's what I have done:
I have gone into the master page and removed a
Sending email and content in the body -
Hey,
I've seen plenty of email examples which add pictures as attachments in the body but not the right kind that has solved my problem.
My email app has a RichTextBox for the body of the email but i'm having problems sending the content of the body as is because of it containing
is it a good email -
is there a way to find out if the email entered is valid,
i.e.
i don't mean if the email has a @ or a .com or .ca!
i mean if the email adress exist!
cuz with the email object, if the email does'nt exist,
the browser seems to freeze at the line mailOBJ.send,
what can i do!,
anybody know how Yahoo mail graphic email is done -
If you've seen the yahoo version of graphic email, you'll know what I mean
like a small text editor with color, font size, and all the usual options.
The thing I don't get is you type into the box itself and it holds the text (like the ones on this site) but if you select a portio
[VB2005] Word and formatting -
Hello,
I have been trying to remove formatting frmo a DOC file.
I have word 2000.
I have managed to have the doc opened, removed protection and son so ...
so I have the "oDoc" object ready to be worked on.
Not sure however how I removed all type of formatting.
I wa
Email: protect an office...virus, bots -
We do not want to bring email in house, yet we need to protect the PCs.
Possible idea:
one PC receives all 30 email accounts, scans all email, then each user request their scanned email.
What do we need?
server email program?
Thanks
Formatting DataGrid column -
I want to format columns in DataGrid while form is loaded and i want the formatting to apply to complete column (all rows) at once.
The Problem: When my form is loaded there is now formatting done to the DataGrid. The formatting comes up only when i click some cell in the column and
Code not executing in order -
How do you make a program step through a subroutine line by line? I am doing some formatting for a Word table and the formatting will only work if I press F8 and step through it. If I just run the program, the formatting is off.
Saving required email attachment -
Howdy
I am attempting to write an email app that automatically downloads email messages whose attachment name consists of a .doc extension. If an email message does not contain an attachment with this requirement the program moves on to the next email until the last email is read.
VbSendMail with HTML -
Is there any way to have the body of an email have either HTML or formatting properties? Thanks.
rich text formatting question -
is it possible to format text in a string before it is written to a rich text box? I am writing a chat program and i want the computer sending the string to do all the formatting so the receiving computer just has to write it to a textbox without formatting. I dont know too much about
Profanity filters on email systems -
Why ??!?!?!?!
Its so annoying when you send an email to someone, and you receive an automated email back saying the email has been caught by their email systems.
I'm irish, and I swear like the best of them.
And chatting to some people via email is sooooo frustrating.
Surely I
EMail address formatting in repeater control -
I have a repeater control which is pretty nice
I am binding a lot of data from an sql file but the field I'm interested in is below
Contact -
<%# DataBinder.Eval(Container.DataItem, "EventEmail") %>
<br>
The repeater works fine .. I just want to m
Cell formatting problem -
Hi all,
Having a bit of a strange problem.
My VB6 program which automates excel imports an existing spreadsheets data into it and then eventually creates a zip file of the sheets data including updated cells etc..
The problem arises when i upload the zip file into a system we
How Can I Send Info From A Form To My Email -
can anyone help me.i need somebody to make a code for me becuz i am onlt 14 and i just started VB4.i want it to be so that when you click on the cmdOK button it will send TextA and TextB to my emaill addy.i have made a game and at the end it will ask for their email and comments.and ju
VB & Excel Template Formatting -
I have a Excel Template that I am trying to modify with commands like this:
obWorkSheet.Cells(10, "C").Value = txtCustomerName.text
That works great. The problem is I am loosing the formatting when I save the excel file.
obExcelApp.Save ("C:\INVOICE.XLS")
Formatting Word Fields -
I searched around and found this handy little link on using field switches to format Word fields. However, I haven't found the one piece of formatting that I need to do and that is phone number formatting.
How would one do that for a Word Field?
VBA in Access, send email using values in a table -
Hi there,
I am currently trying to setup an automated email facility which sends an email to a designated distribution list (this is contained in a table called: tblMailShotAddresses, with the emails stored under the EMAIL column). I have the email sending with an attachment, howe
Formatting word document help -
Hi Guys,
Good day!!!!
I have a formatting problem with MSword in Visual basic. I have a word document in a folder say 'X'. I am currently taking this word document from x folder, applying some formatting like changing the font. I have to do two more options.
1. Save as landsc
Silly question! Formatting a TextBox... -
Hi, I need to format a text box as Currency.
I have set the formatting options within the object itself, but it doesn't make a difference.
For the box to stay formatted as Currency as data is input, I presume I need to add the Fomatting Code to the Change event section of code?
Menu formatting -
hi, i was just wondering if there is a simple way to change the formatting of the standard menus at the top of a window. i've had some people tell me that it isnt possible and some that tell me it is.
P.s. if there is a way can you please link me or show me
Email from within VB6 -
Hi All,
My problem is different to all other email requirements from within VB6.
I need to trigger an email from within VB6 (regardless of the user's mail client - Outlook, Thunderbird, etc.) so that the email program pops up with an outgoing message.
I want the following fie
send email using vb6 -
Hello,
Was wonderng if their was a way to send an email in vb with out using the default email client.
eg. on my form the user will insert their email address in text3.txt and it will send the info from text2.txt to their email.
Would like to do this independantly with out using
Datagrids, Recordsets, formatting -
I have a datagrid which display some info in a recordset which is pulled from a database.
in the database, there is a NUMBER field called mailOutType, it can be either. (only the number is in the DB)
0 (- Email)
1 (- Post)
2 (- Both)
How do i display either "email"
Receiving 1 email in 2 places -
I would like to know if this is possible.
What happens is that I have all my email going into one computer, I would like to see if i can have all my email go to the email that i current have it in, as well as it gets passed on to other computers on my network. What I mean is this.
Sending Access reports via email -
Any ideas on how to 'send' an Access report via email AND not loosing any formats (title colours, boxes etc)from Access.
The 'send' option in Access only allows you to send it in Rich Text, Excel etc..format BUT it drops nearly all of the formats...so that the rec'd report is very d
Outlook Email Alerter -
It would be nice if I could write a small program which runs in the background (maybe the traybar) and all it does is constantly check the exchange server for any email for me. When it finds email it will pop a messagebox saying who the email is from, what its about and maybe a bit of