How Can You Check A Pop Mail Server For New Mail On An Account?
anyone know?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Moving An E-mail From Inbox To Another Folder For Secondary Mail Account
Hello
In Outlook I have 2 mail-accounts, I want to move an E-mail from the secondary account inbox to another folder (also in the secondary mail-account).
I have tried the following code but it seems that I can not find the destination-folder 'Historikk' (get the error message: Cant find object).
What am I doing wrong?
Code:Sub MoveToHistorikk()
Dim objNameSpace As Outlook.NameSpace
Dim oexpSource As Outlook.Explorer
Dim objInboxItems As Object
Dim objMailboxName As Outlook.MAPIFolder
Dim cmMailBoxName As String
'Name of secondary mailbox
cmMailBoxName = "Postboks - Van Maskinalarm"
'All mailboxes are children of this folder
Set objoutlook = CreateObject("Outlook.Application")
Set objNameSpace = objoutlook.GetNamespace("MAPI")
'Get the secondary mailbox
Set objMailboxName = objNameSpace.Folders(cmMailBoxName)
Set objInboxItems = objMailboxName.Items
Set objDestinationFolder = objMailboxName.Folders("Historikk")
Set oexpSource = Application.ActiveExplorer
' Move selection to Historikk
For Each objInboxItems In oexpSource.Selection
If TypeOf objInboxItems Is Outlook.MailItem Then
objInboxItems.Move objDestinationFolder
End If
Next
'Cleaning
Set objNameSpace = Nothing
Set objInboxItems = Nothing
Set objMailboxName = Nothing
Set objDestinationFolder = Nothing
Set oexpSource = Nothing
End Sub
Check If Exchange Server Is Availablebefore Sending A Mail
Hi,
I have an activeX component that uses CDO 1.2 to send an E-Mail.
If the Exchange server is not available (server down, exchange service not running etc.), an error popup appears and the component stops running until somebody clicks on a button.
So, is there a possibilty to check the servers availability before sending a mail?
Recive Mail From Mail Server
AOA, Hay hays
I've this code. it will recive mail from any mail server
http://www.winsockvb.com/article.php?article_id=21
My problem is this, it displayh the mail in html format
I mean mail text is embeded in html tegs, I want to display the eintire mail in the text box or richtext box without html tags
any one can help ????????
[Outlook Mail Account ]
hI,
I want add a http mail account in a profil Outlook , have you an idea ...
Tanks,
Bruno :|
Add Outlook Mail Account Using VB
Does anyone know how to add an account to Outlook Express using VB
I have looked through the Outlook Object Module and found nothing
Thanks in advance
[outlook Mail Account]
Hi,
I want add a http mail account in a profil on outlook, have you an idea ?
tanks,
Bruno :|
Groupwise Mail From Another Account
Could anyone tell me or direct me to a sample of some code, that shows how to access another resource in Groupwise with VB.
The main goal is to send a mail from another resource by accessing this resource that you have authority from own mailaccount.
How is this done? Anyone.....
Send A Mail In VBA With An Other Account Than The Default One
sorry for my english level but i m french
i have made a program in VBA to send multiple fax. the number are in an Access 2000 base and i use outlook 2000 and delrina fax starter edition to send the fax (it work like a standard mail send with a special mail account).
the problem I have is that I need to have delrina data fax starter in default mail account for it work and it's a big probleme for me.
So my question is how to do :
- does it exist a propertie like Mailitem.SendWithAccount xxxx so the mail i create will be automaticly send with the account symantec
- Or can i change the default email account in outlook with VBA
- Or someone have an other solution
Thanks for all help you can give to me
Access Mails From Another Mail Account
Hello,
I want to develop a code that copy all the flagged mails from a folder in outlook to a folder in my C: drive. The problem is I access 2 mail accounts from my Outlook application. How can I specify in the code which mail account i want to look up? In the attached picture, the folder that I want to look up is the one with a row on the right.
Thanks.
Connection To POP3 E-Mail Account
Hi everyone,
I want to write an application, that connects to a POP3 E-Mail account, reads new E-Mails, and analyses them, storing informations included in the mail.
My question:
Is it possible to connect to a POP3 E-Mail account and read the E-Mails?!
Has anybody expirience in this?!
Greets
Björn
I Want To Send A Mail To My Outlook Account Using Vb
Hi to All.
I have a scerniao like i have desgined the form where customer will update some records. Once they are done with those records. i want to send a mail to my outlook account. how can i do this..? can anyone having any coding reference document.
I Want To Send A Mail To My Outlook Account Using Vb
Hi to All.
I have a scenario like I have designed the form where customer will update some records. Once they are done with those records. i want to send a mail to my outlook account. How can i do this? Can anyone having any coding reference document. ?
How To Set The E-mail Account To Send An Email From ?
ITtoolbox Portal for Visual Basic - http://visualbasic.ittoolbox.com/
Hello,
I am building an (MS-Access)application. The application runs on a client-pc
with W98 and sends an e-mail to the e-mail address of some customer. There
is only outlook, it runs on the client. There is no MS-Exchange.
I have build a working send-email-procedure using the Outlook-object-model
and another version using simple MAPI. I have tried to use CDO (not CDONTS)
but could not get/find the CDO-objects although CDO 1.21 was properly
installed as part of Outlook2000 and was properly referenced.
But the other two methods I got working.
The Outlook2000 on the client-pc has a couple of different e-mail accounts.
Each for different purposes. The application should send the e-mail from one
specific e-mail account. At the moment it always uses the e-mail account
that is set as the default.
I have tried various ways to change this and to get the e-mail send using
that one specific email-account instead of the default one.
Does anybody know:
1. How can I set the correct email-account / e-mail address as the sender of
the e-mail ?
What is needed to do that? Who has some example code? Is it possible through
any MAPI-call or do I need to use straight SMTS?
Who can help me out?
Thanks in advance,
Pieter van Rij
Select A Mail Account In Outlook With VBA
I'm usingi Windows 2000 and Office 2003.
I'm Trying to make a macro in Outlook that send an e-mail, but I have some different pop3 e-mail accounts configured in the same user, and I need that the e-mail generaded by the macro, send the e/mail using an especific e-mail account, that is not the default.
These is easy if I do it manually. Just I select the account in the accounts selection botton in the tool bar. But the question is: How can I do these using VBA code??
Create A Eudora Mail Account In VB
i'm in a process of creating a small software and it includes a configuration of mail accounts in Eudora.
in the same way i had to create Outlook Express mail accounts and Microsoft Outlook mail accounts in VB &
i was able to do that. but in Eudora it seems it doesn't write to the registry files as in Outlook Express & Microsoft Outlook mail accounts..
so if anyone who can guide my or give me a clue is highly appriciated. thnx.. & gooood day..
Select Address/account For Sending Mail From VBA
Hello!
I'm using multiple mail accounts within one Outlook XP profile The manual selection is possible via a dropdown box just right of the "Send..." button when writing a mail. As I'm using the German version of Outlook, it's called "Konto" (I don't know the corrent translation, it doesn't seem to be "account").
I want to select the mail address from a VBA script, because the sending organisation is also defined within the settings of the individual accounts and I'm sending them via different mailservers.
Any hint would be great!
Thank you.
Regards,
Sebastian
Send Outlook Appointment Via MSAccess And Change The Mail Account It Comes From
I have a db which references msoutl.olb to interact with Outlook to send an appointment to students who have registered for a course. I would like to have the email generate out of another email account to keep my personal calendar from being inundated with these training dates. What member o fthe OlAppointmentItem will allow me to set the email address or account name to something other than the default? Any sample code showing how to do this would be greatly appreciated - Thank you. Lisa
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olAppointmentItem)
'With objNewAppt
myItem.MeetingStatus = olMeeting
myItem.Subject = "Training Class " & Forms!Register!Coursename
myItem.location = Forms!Register!location
myItem.Start = Forms!Register![CourseDate] & " " & Forms!Register![BeginTime]
myItem.Duration = Forms!Register!Duration
Set myrequiredattendee = myItem.Recipients.Add(Forms!Register!emailaddress)
myrequiredattendee.Type = olRequired
myItem.Send
MsgBox "Enrollment Sent to Outlook!!!"
Problems Reading Mail From Yahoo Group In Own Mail Client
We are writing our own mail client for an application using Catalyst Internetmail com object.
The com object works fine and quite easy to implement
But we have a problem reading mails that are send by a yahoo group (mailinglist)
We can't read any of the header information in the mail.
Opening the mails with ms outlook doesn't result in any problems.
Anyone else ever had the same sort of problem
or knows why it could be that we can't read the mails with out own client?
E-mail - Error 32001 On Closing E-mail Window - Any Way To Catch This?
I am using a piece of code to open my default e-mail program using MAPI.
This is fine, and sends email if the user presses the send button.
But if the user should close the e-mail window (the e-mail window of Outlook that is), it throws this error:
Run-time error '32001':
User cancelled process
I had setup an error handler to try and catch this error, but it doesnt seem to be working as the system keeps crashing and throwing up this error.
It is pointing to and highlighting this line of my code as the problem if I close...
[/code]
.Send True
[/code]
Can anyone please help?
Thanks
E-mail - Error 32001 On Closing E-mail Window - Any Way To Catch This?
I am using a piece of code to open my default e-mail program using MAPI.
This is fine, and sends email if the user presses the send button.
But if the user should close the e-mail window (the e-mail window of Outlook that is), it throws this error:
Run-time error '32001':
User cancelled process
I had setup an error handler to try and catch this error, but it doesnt seem to be working as the system keeps crashing and throwing up this error.
It is pointing to and highlighting this line of my code as the problem if I close...
[/code]
.Send True
[/code]
Can anyone please help?
Thanks
Problems Reading Mail From Yahoo Group In Own Mail Client
We are writing our own mail client for an application using Catalyst Internetmail com object.
The com object works fine and quite easy to implement
But we have a problem reading mails that are send by a yahoo group (mailinglist)
We can't read any of the header information in the mail.
Opening the mails with ms outlook doesn't result in any problems.
Anyone else ever had the same sort of problem
or knows why it could be that we can't read the mails with out own client?
Need Help To Include Auto Signature && Group Mail ID In Sending Mail Through VB
Hi,
I am sending mail through VB Excel Macro with the following code and it is working fine.
1.However in "To" field I would like use Group under which I have already defined Mail ID's to whom I want to send the mail.
For eg. I have created a Group as "Adi" as shown below and used in my To field,but it is not sending the mails.
If I directly hard code all the Mail ID's under this group in the To field below,mail goes successfully.
2.I would like to use Auto signature facility of Outlook while sending my mails using code below.It has been set in Outlook but when mail goes through this code,Auto Signature doesn't come.
Is there something like .Signature property which can be used or is there any other method to achieve the desired results.
Dim objOutlook As Object
Dim objOutlookMsg As Object
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(0)
With objOutlookMsg
.To = "Adi"
.Cc = "hdagar@csc.com"
.Subject = "Model Office '" + OD1 + "' Cycle Details " + OD + " (Cycle Date : " + BWG + ") - " + OD3
.Body = "Please find MO '" + OD1 + "' cycle details in the spreadsheet attached below. This cycle was run on " + OD + " with cycle date of " + BWG + "." + vbCrLf + vbCrLf + vbCrLf + _
"All the files mentioned in the request form have been NDMed." + vbCrLf + vbCrLf + vbCrLf + "Pre-cycle and Post-cycle backups:" + vbCrLf + vbCrLf + "KKMP.U8AILMP" + OD1 + ".VBKP.BEFORE.DAILY.C" + aDate1 + vbCrLf + _
"KKMP.U8AILMP" + OD1 + ".VBKP.AFTER.DAILY.C" + aDate1
.Attachments.Add (Path)
.Send 'Let´s go!
End With
Set objOutlookMsg = Nothing
Set objOutlook = Nothing
Check For New E-Mail
I've done an extensive search on the site, but everything I have found just doesn't work for me. What I'm trying to do is simply check for new mail while I'm at work. Out network blocks POP3 so I can't use Outlook or Outlook Express to check it nor can I create a program that uses POP3 to check. What are my other options, if any?
Thanks!
E-Mail Check
Is there any API that cjecks if you have new E-Mail?
How To Check The Mail
Hi! Everyone!!!
Could you tell me how to check the POP3 mail in a easy way?
Thank you in advance.
Check Mail...
Hi there,
I have a form with 3 command buttons in it and they are,
cmdYahoo
cmdHotmail
cmdLycos
Now what I want to do is when I press cmdYahoo then it should open my internet explorer and then without asking my username and password it should go to my inbox ( I mean check my mail )...
Username and password for Yahoo account will be in the code...
I am sure that this is possible because I have seen a friend of mine doing it...
Can someone help me out...???
Cheers...
How To Track Mail Delivery Failure After Mail Merge In Vb
****************My First VBForum Thread *********************
Hi all,
I have a requirement of mailmerge along with the ability to resend the mail to those recipients to whom, the mail did not deliver in the first attempt. It may happen because of invalid email id or recipient's inbox is full.
I have got one solution of using vb mapi controls and reading any unread mails after mail merge and look for delivery status failure mails. If found, i will resend the mail to that recipient.
I was wondering if there is any alternate solution. Like say, some status(success or failure of mail sent) check during the mailmerge itself.
Hope i have putforth my doubt clearly.
Awaiting response.
Thanks!
MAPI E-mail Accessing File Attchments From E-mail
How can I save an Attchment from an e-mail that has been retreived using MAPISession & MAPIMessages objects from within VB. How can I Access the attachment. I just want to save it to a folder on my hard disk. Any help would be appreciated.
Regards
Eric Hart.
Forwarding The Selected E-mail Message(as Attachment) To A Specified E-mail
Hi,
I know nothing about vb but i use vb macro's with MSexcel. I forward e-mail messages to different account with outlook express rules wizard but sometimes the rules don't work, and i forward them manually then.
I put a shortcut in outlook menu and i found to forward messages with a single click. But the below code works only for the first message in inbox folder. I think the number (1) specifies the first message "myfolder.Items(1).Forward" . But i want to forward only the selected e-mail message in any folder, but my friend(who knows vb but doesn't know the coding in outlook) couldn't find it yet.
Would you please help me.
THANX
Code:
Sub piyu_code()
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myfolder = myNameSpace.GetDefaultFolder(olFolderInbox)
Set myForward = myfolder.Items(1).Forward
myForward.Recipients.Add "piyu"
myForward.Send
End Sub
Outlook - How Do You Detatch .msg File From Mail And Put It In A Folder As A Mail
Hi, I would very much appreciate an help with the following problem (which I have been struggling with for some time).
My Email from work as automatically forwarded to my home email address, but when I receive it, it is attached to a blank mail as an ".msg" file. I have been trying for some time to write some VBA to detach the .msg file and store it in another Outlook folder, as if the original attached Email where received directly.
Additional Info: If I open the ".msg" file it is just as an normal email i.e. with the From, To, CC & Subject fields etc. I have sort of managed to save it to C: but this does not help as I want to keep it in Outlook
Software: XP Pro & Outlook XP
Any Help Would Be Much Appreciated
Hotmail Mail Check...
Hey guys I was wondering if anyone knows how to connect to a server and then to take information to place on your VB form? E.G. If any of you guys have got MSN when it tells you how many new messages you've got (e-mail). If anyone can help, then please feel free to do so
Thanks...
Outlook Mail Check
can somebody please tell me how to check for new mail (receive) in outlook
Check For New Mail In Outlook
Hi everyone,
I've been reading a lot for this 'simple' problem, but I didn't find the right answer on it. I wan't to have a functionality in my program that does some things as soon as I get a new mail.
Is there a function that gives a string or whatever, when i get a new mail??
I did read something about the 'AppActivate' command, but don't know how to use it and don't know if it's useable for me.
Greetz,
Irotallic
Check If Mail Is Already Displayed
Hello there,
I am new to this forum and quite new to VBA.
After fighting through the VBA manual for several hours my codes does mostly what I want it to do.
Only one question (I am sure someone asked this before, but I simply can not find the appropriate post):
How can I check if a MailItem is already displayed ? Not "Read". I want to know if the mail is already displayed in a window.
Thanks for any help.
Ciao Frank
Check Mail Error
Control Type..... Name........
Textbox ...... txtHost. .
...... Description..
Expects the name or address of the mail server.
On this site I 'd Download the sample proj:
Step1.
Entered the "name: txtHost" mail.yahoo.com
and the username the password.
click the Check mail command Button.
It gave me an error.
I repeated step 1 with a minor change.
Entered the "name: txtHost" Pop.yahoo.com
Still could not find host or could it be
Pop3.yahoo.com?.
here is the link to the sample:.
http://www.vbip.com/winsock/winsock_mail_checker_01.asp
Check Mail On Sever?
I was wondering if there is a way to connect to a POP3 server and check your email? I was trying to make a program to notify me when I have new messages. Any ideas?
Just Wanna Check Pop For Mail. How???
Hi,
I have been reading on how to make a smalll VB applet to simply check my pop email server to see if there are any messages waiting, WITHOUT downloading them.
Is it hard to do this??
Can anybody provide me a link or code to do this????
Thanks,
Leafboy
Send E-mail With Default E-mail Editor?
Hm. I would like send e-mail. I'd only like to open default e-mail editor with adress and subject filled and attachment attached.
This can be done using 'outlook object msoutl.olb'
Code:
Public Sub SendMail(tempFile As String, Optional EmailTo As String, Optional Subject As String, Optional Body As String)
Dim objOL As Outlook.Application
Dim msg As Outlook.MailItem
Set objOL = New Outlook.Application
Set msg = objOL.CreateItem(olMailItem)
With msg
.To = EmailTo
.Subject = Subject
.Body = Body
.Attachments.Add tempFile
.Display
'.send
End With
End Sub
But in this case you have different references for different versions of outlook, for ex.:
msoutl.olb .... MS Outlook 2003
msoutl9.olb ...MS Outlook 2000
Becouse my clients use different typed of office versions, I'd like to figure out a different method.
I thought about MAPI od CDONTS, but I need to send an attanchment using DEFAULT e-mail client. That means, I do not need to input pop3 accunts, passwords and stuff. I would allso like, that mail is not sent automatically. (user can change body, and has to manually click send in default email client).
Is it possible in vb6? I know it is in vb 2005, but this is whole different story.
Send Mail From Vb Using Default Mail Client
hi
just help me plz
i need to send mails through a program in vb6..........i want it to use the default mail client used by the user.i mean the coding should be such that it is not specific to one mail client but picks up the client being used by client.
help!!
thanx
Sending Mail Using Default Mail Client
hello,
I am trying to send mail using default client and am using 'shellexecute' function from windows api to do this.
The content of the mail is taken from a richtext control.
I am passing appropriate arguments for eg subject, body etc.
all this works!
Problem:
The body of the message is just one big line ie no new lines and no breaks, also the fonts and colors are lost too. I have tried using 'vbCrlf' but it doesnt help.
can anyone help with this? thx.
Check/retrieve Hotmail Mail
can anyone tell me how to check your hotmail/msn mail like outlook does?
i've done a POP client (with winsock) before, but as hotmail is totaly different, i have no idea how to do that.
i would apreciate any help
Reinout,
|