?
Solved

mail merged rtf or html messages sent from vb 6.0 ap with out security check

Posted on 2008-11-14
10
Medium Priority
?
178 Views
Last Modified: 2012-05-05
I need to be able to send an rtf or html message that is generated incorporating variable data.  I can generate the message without any problem.  It's the sending that's giving me problems.  I'm using simple mapi and it's hitting the security features of Outlook 2007 and apparently can't handle anything but text.

I've found solutions to parts of the problem (Redemption, etc) but I need a co-ordinated solution that solves both problems.
0
Comment
Question by:athayes
  • 5
  • 4
9 Comments
 
LVL 11

Expert Comment

by:Antagony1960
ID: 22959534
If you know the email can be sent via an SMTP account which doesn't require SSL (such as Gmail or Yahoo) you could use the vbSendMail library, which uses a winsock, so doesn't need Outlook.

http://www.freevbcode.com/ShowCode.Asp?ID=109
0
 
LVL 11

Expert Comment

by:Antagony1960
ID: 22959551
Sorry, that I didn't word that very well... Gmail & Yahoo DO require SSL, but most others, such as ISP provided, don't.
0
 

Author Comment

by:athayes
ID: 22959582
Outlook is loaded on the computer that will be used and neither gmail or Yahoo are not available
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 11

Expert Comment

by:Antagony1960
ID: 22959949
No, you misunderstand--my fault due to badly wording my first post--the SMTP servers provided by Gmail and Yahoo DO require SSL so vbSendMail would be no good for you, if you DID want to use their servers. As you're not using them it will probably work okay for you. I've checked and the class has a flag to send the mail as HTML so it should suit your purposes nicely.


0
 

Author Comment

by:athayes
ID: 22960055
The link you send seems to deal with attachments.  I want to send the rtf or html as the message itself.
0
 

Author Comment

by:athayes
ID: 22967560
I decided to work things the other way around.  I'm going to program my project to generate the needed merge file and work from within Word.
0
 
LVL 11

Expert Comment

by:Antagony1960
ID: 22967621
If the message send string (oMail.Message) is formatted with HTML tags and the send as HTML flag (oMail.AsHTML) is set to True, vbSendMail will deliver a HTML email, as you asked for in the opening post.
0
 
LVL 11

Accepted Solution

by:
Antagony1960 earned 2000 total points
ID: 22967661
I think I have given athayes a solution which will do exactly what he asked for in his/her opening post. vbSendMail will send a HTML formatted email without using Outlook's MAPI library. I mentioned the one drawback--that it doesn't support SSL--but that shouldn't be a problem because AFAIK athayes isn't using an SMTP server which requires SSL. I don't think changing one's mind about using the approach in the original question is reasonable grounds for having the question closed.
0
 

Author Comment

by:athayes
ID: 22967744
If you check the time of the posts in question you will see that I started to close this question before Antagony1960 solution was posted.  If the moderator wants to award points that's fine - I guess.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question