vb code

S

Sean Murdoch

Hi There,

Is there any Vb code I can use to change the smtp address ?
When running some code, I wanted to change it to an
invalid address so the email is not sent out until I am
finished, then change the address back.

thanks in advanced.
Sean
 
S

Sean Murdoch

Thanks Woody.
I actually do a mail merge from word first, this puts the
email into the out box. So I wanted to run some code to
change the smtp before I do the mail merge. (I want to
make it as easy as possible for my staff.)
After the mail merge, I then run some code to attach files
to each email as an attachment then I send them out.
I can't see any way in word to put them straight into
another box then the out box. Or is there ?
Any other ideas ?
thanks very much
Sean
 
W

woody

just curious, how many emails are you generating at 1 time?

i do something a bit similar as far as the output.
I use vb6 to throw up a datagrid, the user selects the
recipients from the grid(backend is access) user also
selects what letter to send. The letters are origionally
written in word but then the program converts them to html
so its a bit cleaner when inserting the to-name and the
from-name, etc etc. when the letter was catalogued it was
also given a list of attachments, not all teh letters have
attachments.

i generate 1 email at a time for each recipient. at that
point i could use a .save instead of a .send and the
generated items would remain in teh draft folder instead
of the outbox.

its a big chunk of code, probably overkill for your app,
but i have the strangest folks in marketing, the think teh
box is magix and all i have to do is wave my
wand....ughhhhh.

anyways, maybe looking at the project fro a different
prespective might help?

best of luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top