| | |
VB 6.0 - Accepting value (email address)from Inputbox
![]() |
•
•
Join Date: Jul 2007
Posts: 113
Reputation:
Solved Threads: 0
Hi everyone,
I have included a "Send mail" module in my vb module, but I want to accept the email address from an input box instead of hard-coding the recipients email address because the recipient may be different each given time.
Below is my code:
How can I imbed the input box in the above routine?
Thanks.
GiftX
I have included a "Send mail" module in my vb module, but I want to accept the email address from an input box instead of hard-coding the recipients email address because the recipient may be different each given time.
Below is my code:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
SENDEMAIL: Set OutlookApp = CreateObject("Outlook.Application") Set OutlookMail = OutlookApp.CreateItem(0) OutlookMail.To = "giftxtian@yahoo.com" OutlookMail.Subject = "Project Status" OutlookMail.Body = "This is VB email test" If Len(MailAttach) = 0 Then OutlookMail.Attachments.Add MailAttach '"C:\ProjectStatus.xls" End If OutlookMail.Display 'To display the email OutlookMail.Send 'To send the email
How can I imbed the input box in the above routine?
Thanks.
GiftX
Hi tgif,
In Command Click, before u call the above module use InputBox say,
Regards
Veena
In Command Click, before u call the above module use InputBox say,
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Public EMailID as String EMailID = InputBox("Enter EMail ID") If Trim(EMailID) <> "" Then 'Call The Send Function End If and change this to: OutlookMail.To = EMailID
Regards
Veena
![]() |
Similar Threads
- VB6 - Look up email address from outlook address book? (Visual Basic 4 / 5 / 6)
- Res. Form/Dreamweaver 8/Email to Address (HTML and CSS)
- username=email address inputted on submission>is this possible (PHP)
- JavaScript -- Validating an email address (JavaScript / DHTML / AJAX)
- outlook 03 email address read as word; duplicate email (Windows Software)
- Protecting email address from robots (PHP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: String in VB 6.0
- Next Thread: VB6 help
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





