Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




E-mail Pop Up


I have created an e-mail popup in the click event of a button within my access database. However, I am having problems getting the value of a text box to appear. Is it possible to retrieve information from text box within the body of your e-mail? If so, any suggestions would be greatly appreciated?Thanks




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
For Each Iteration By Mail Address To Send Mail On This Addr With Some Attached File
Hello!

I need your advice.

I have to write program that reads different mail addresses
in loop from the text file "Addresses.txt"
and for each of those iteration to send mail (by using Outlook)
for the current mail address with some attached file File.jpg.

Any suggestions?

Thanks in advance.
John.

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?

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

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

A Program To Automatically Check E-Mail On POP Or Web_based E-Mail MEssage.
I would to have any suggestion, BEcause I would like to create one program that will do an automatically check an email for me. Any help will be useful. This is my rp
project for my final semester for diploma. Thank you.

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!

Recive Mail From Any Mail Server (hotmail,yahoomail)
I want to recive mail from any mail server like hotmail and yahoo mail ....
in VB6 any one can help
I want to use SMTP or IMAP4, as boath of them give adance feature for reciving maill.
any one can help me

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

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.

When A User Read The Mail I Sent, I Want It Verified To A Specified E-mail. How?
When a user read the mail I sent with Microsoft Outlook, I want it verified to a specified E-mail with a textbody. How do i write the code?

Change Body Of E-mail - Embedding Information That Can Not Be Changed By User Viewing E-mail Only Changed By Program
hey gurus,

i need to embed information into e-mails currently stored in outlook andthose who view the e-mails must not be able to


change that information. only the code can change that information(add, delete, edit). any ideas.
thanks.

~ steve

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 ????????

- Sending E-mail To Several E-mail Addresses
I have an access database with a query that returns about 100 e-mail addresses. Every month I send out a newsletter to my clients. How can use Outlook and VBA to do this? Please help...

I know how to do it in .NET but not in VBA.

Thank you

Hj007

"UNIX is an operating system, OS/2 is half an operating system, Windows is a shell, and DOS is a boot partition virus." - Peter H. Coffin

"Your body is 70 percent water, so don't worry: Even if you were to drown, only 30 percent of you would die." - www.THEONION.com

Edited by - homerj07 on 4/21/2004 8:32:57 AM

E-mail Without Using Mail Client
Hi there,

I want to send e-mail through VB without using Outlook or mail client on the machine. I read somewhere that this is possible using winsock. Can anyone give me the code for sending mail using winsock ??

Thanx

Receiving Mail && POP Mail
Dear Friends,

I am doing one project for my org and ineed some assistance in receiving mail from the mail clients,if any body can help me i will be greately thankful to them


srikanth

E-mail
Hi all,

Is it possible to send an e-mail to a specific account (for example somebody@microsoft.com) with text when user cliks a commandbutton?

Sorry for my bad English!

Thank you all in advance....

E-mail!
where r the MAPI contols i cant find them in insert controls :'(

Help With E'mail From VB Please
Hi
I have VB code which send e'mail from a Textcodes.Text
now in the textbox the text is displayed as so

xxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxx

but when I press the e'mail button to send the contents of textbox it looks like this on the e'mail

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx
just a long line of text
I want it to display as its displayed in the textbox
can you help?

here my code

Private Sub Command18_Click()
Dim strAddress As String: strAddress = ""
Dim strSubject As String: strSubject = "Subject"
Dim strFileName As String: strFileName = "Request From. " & "Website"
strBody = Textcodes.Text

ShellExecute 0&, vbNullString, _
"mailto:" & strAddress & _
"?subject=" & strSubject & _
"&body=" & strBody, vbNullString, "C:", vbNormal

End Sub

Mail
Hi,
Do you know how i can send mail from vb ( by commands without open the outlook ).
Thanks,

E-mail
I am curios about how e-mail works..., I mean if I want to create my own e-mail server so that I would not have to mess with any of those free e-mail services anymore....

I used to have netzero, so I still use there e-mail to recieve e-mail, but you have to log into netzero regulary to send it form netzero, I have been using Yahoo.com

I want to be able to just send the e-mail without yahoo...

Thanx in advance,
Byan

Mail Name
hi @ all,
I have 2 write a small programm which should send a mail 2 all domain member,but my problem is, i cant look up the mail alias from the Exchange server or Actice Directory. Can someone show me a coding sample

C.C. Or B.C.C In An E-mail
Which Argument statement do I use when using the
Applications.Dialogs(xlDialogSendMail).Show arg??
if I want to CC someone on the e-mail or Blind Copy someone on the e-mail

Thanks.

E-mail
I have two forms, one registration form and one print form. When the registration is done you can simply press print and all the details is added to the print form and printed. Instead of printing the printform I would like it to be saved as a txt file and sent away to some email adress just by clicking a button.

Is there anyone who have an idea how I can do that?

E-mail
i would like to sand an e-mail trough a code procedure, i'm interested in compile the fields:
- send to (of course!)
- object
- text
- attachment: i would like to send a file with mail

Thenks

Mail Thru VB
Hi All,

I want to send an email thru VB ...i searched the forum and got a code using MAPI contrls......it works fine....but when i signoff the session it takes me to the compose new message of outlook .....though the message has alredy been send when the command MAPIMessages1.Send False is executed.......why is it that i am taken to the outlook screen...is there anyway i can get rid of that??????

Thanx,
Tina

E-mail
Does anybody know how to make visualbasic send the contents of a textbox to a specific email address?

Mail
I would like to send an e-mail to a name that is showing in a text box by double clicking it i was thinking of using a shell statment but how do i get the address from the textbox in to the statement so when outlook opens up that address is in the addresss box on the email.

Shell ("start.exe mailto:" & "email@emailaddress")

E-mail
Can you tell me if it is possable to open up Outlook Express from a form in my database using a Command Click event and if so how.

Thanks

E-mail
how do I make my program send an e-mail to me from the users computer, and without the user having to do anything?

eg. I want my game to be able to send me the high scores when the user clicks "Report Scores". If I could just have ONE text box for the scores to be in, and one button (Send) that would be great. Thanks!

Jacob Sheehy
http://www.sheehy.ca

Mail
I've made a simple program, that keeps track of how often a CD is inserted and run. I want that program to mail the info to my adress... I have NO knowledge of VB against WAN/LAN/WEB, so any help would be appreciated.

Thnx in advance...

"If we don't succeed, we run the risk of failure." - Dan Quayle

E-mail
Wondering if anyone can help. I am trying to write a simple e-mailing program. I am not sure how to code the send button. I am fairly new to VB any help would be appreciated.

E-mail
Hi, i wan to add a email section to my chat server. so when somone type help, it might send them a help topic in a email.

I only want to know how to do this!!!!

i want the email client to connect to a server eg mail.yahoo.com and connect to it



how do i do this

<P ID="edit"><FONT SIZE=-1><EM>Edited by guessSEVEN on 12/06/00 04:53 AM (server time).</EM></FONT></P>

E-mail
does anyone know where i can find something to help me log what is typed on my computer and e-mailed to me after the log gets to a certain capacity (i.e. 400kb.)or can anyone help me with this. i am asking because i know my brother has been doing something on my computer and i want to see exactly what. i would greatly appreciate this.
Thanks in advance

E-mail
Is there a way to e-mail a program on my computer and tell it what to do?
I could have the program on my computer and e-mail it code of whatever i wanted it to do. Like if i forget to shutdown or something when i went on vacation.

E-mail??
Is there anyway i can make like two textboxes and a command button and an Inet, and make an e-mail program?

one textbox as the subject
the second as the message
the command as the send

E-mail!
How can I have 2 boxes, one saying "Name" and the other one "Comments" and when u click "Send Comments" it sends e-mail automatically to me with there name and their comments?
Thanks in advance,
Gary

E-Mail
i saw several progs with e-mail fields in its copyrights and wondered about how to do this in vb

is there a way to do this?

Sql Mail
Hi,

I am new to SQL MAIL and wondering, if I had 200 members and I need to send email via SQL mail then can I schedule to send email late in the evening say 12 O'clock midnight? Would DTS package will be any help?

I am sending email in asp, calling store procedure to retrive my desire member list and send email via SQL mail.

I am most grateful.

Sql Mail
Hi,

Does any body used MS SQL2000 mail functionality? Any good tutorial you recommend, apart from the books....

Many Thanks

E-Mail
Greetings,
I am in need of code to add to my VB 6.0 exe that will allow me to send e-mail to my SMTP server for delivery to my e-mail mailbox.

Does anyone know of such code?

AA

Please Help Me With E-Mail
This is exactly what I need and nothing else:

I have a program with blank text boxes and option buttons that are filled out by the user

I need there to be a button on the program to send the information filled out in the text boxes and option buttons to me.

I'm giving this program to many people to fill out and send results to me, so is there a way for it to work with them and not need to be configured with they're email and stuff?

The person needs to be able to get the program, fill out the boxes/options, click send, and it automatically sends to my email without any other configuring etc.

is this possible?

Copyright Đ 2005-08 www.BigResource.com, All rights reserved