|
-
Apr 26th, 2000, 06:54 AM
#1
Thread Starter
Member
When sending email with VB how can you use another email address instead of the default from email address? Please
let me know.
Thanks,
Laura
-
Apr 26th, 2000, 07:10 AM
#2
Hyperactive Member
Robert Smith has some good info on his page (http://www.smithvoice.com/vbfun.htm). Look under "Getting the Word Out." Hope his example helps you!
-
Apr 26th, 2000, 08:52 AM
#3
Member
use the shell
you can use shell with the microsoft outlook exe
like
shell(c:/winnt/outlook.exe, blah..)
I will post the code when I have a chance
-
Apr 26th, 2000, 09:49 AM
#4
Thread Starter
Member
Thanks Mongo and Sanford101! You tips did not help me. What I wanted to do is to replace the default "FROM:" email address with another email address.
Thanks,
Laura
-
Apr 26th, 2000, 09:54 AM
#5
Lively Member
Uhm.. this really isn't going to answer your question but may change your need for this.. it is possible to change the "from" address but you will still be able to tell that it didn't come from that person. Someone who really doesn't look at it may be fooled but anyone who looks at the header will know exactly who it came from. You can telnet into a some mail relay servers and actually compose an email and fire it off with a bogus from address but the header will actually say the real from address. If your goal is for it to be impossible to tell who it really came from, it's not going to happen.
-
Apr 26th, 2000, 10:24 AM
#6
Hyperactive Member
Swing and a miss, huh? Otay, howse 'bout...
Set myOlApp = CreateObject("Outlook.Application")
'Creates a new MailItem form
Set myItem = myOlApp.CreateItem(olMailItem)
'Set the "From" field
myItem.SentOnBehalfOfName = "Mongo"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|