Sabtu, 17 Februari 2018

Re: [MS_AccessPros] Re: Sending email via Outlook.

 

hi Art, adding onto what Duane said ...

strMsg can be a combination

strSubject can be a combination

.. as can other strings.

wonderful thing about variables! They can be whatever you assign to them ~

have an awesome day,
crystal


On 2/17/18 12:06 PM, Art Lorenzini dbalorenzini@yahoo.com [MS_Access_Professionals] wrote:
Looking at your code.

outItem.Body = strMsg
    outItem..Subject = strSubject
    outItem.To = strTo

How would I bring in my two fields? 

With Warm Regards,
 
Arthur D. Lorenzini
IT System Manager
Cheyenne River Housing Authority
Wk.(605)964-4265  Ext. 130
Fax (605)964-1070

"Valar Dohaeris"







From: "'Bill Mosca' wrmosca@comcast.net [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com>
To: MS_Access_Professionals@yahoogroups.com
Sent: Friday, February 16, 2018 12:56 PM
Subject: RE: [MS_AccessPros] Re: Sending email via Outlook.

 
Art – As I said, the code will show you how to put the data in the body. You don't have to send any attachments. As with all my code, I make it as generic and flexible as possible.
 
Regards,
Bill
 
From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Thursday, February 15, 2018 2:53 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Re: Sending email via Outlook.
 
 
I want the contents of the fields to appear in the email not an attachment. 

With Warm Regards,
 
Arthur D. Lorenzini
IT System Manager
Cheyenne River Housing Authority
Wk.(605)964-4265  Ext. 130
Fax (605)964-1070
 
"Valar Dohaeris"



 

From: "wrmosca@comcast.net [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com>
To: MS_Access_Professionals@yahoogroups..com
Sent: Thursday, February 15, 2018 4:00 PM
Subject: [MS_AccessPros] Re: Sending email via Outlook.
 
 
Art - You can capture the values (if it's a bound form) or the boxes' Text if they are not bound. Then put them in a string. If you want each on its own line seperate them with vbNewLine.
Example:
 txtIssue & vbNewLine & txtIssueDate & vbNewLine & txtEmployee
 
Next, use my "Mailing more than one attachment" code sample at my site to see how to use the body of the email and how to edit it.
 
Regards,
Bill Mosca, Founder - MS_Access_Professionals
My nothing-to-do-with-Access blog
 
 
I have a form called frmSupport and on the form I have 3 textboxes called, txtIssue, txtIssueDate,  and txtEmployee and a command button called cmdSend.
 
These are bounded field to a table called tblSupport:
 
SupportID
Issue
IssueDate
EmpID
Resolution
 
When the user fills out the three fields and then clicks cmdSend, I need to send a email containing the information in these 3 fields to a specific email address...
 
Any ideas?
 
Thank you,
 
Art Lorenzini,
SD
 
 



__._,_.___

Posted by: crystal 8 <strive4peace2008@yahoo.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar