[SOLVED] Using attribute for Email Account Login Credentials

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

[SOLVED] Using attribute for Email Account Login Credentials

Post by Jaymer »

Consider a StaffMembers BO, with an Email address and Email password field.
This will contain the user's GMAIL addy & pw.
--> [email protected]
--> xyzzy

If the StaffMember emails Contacts, which is set as Intelligent Object, then in that setup screen, I'm having trouble referencing the LISM (LoggedInStaffMember) fields.

Hardcoded username & password: WORKS! But then all email sent appears to come from that same account.
Screen Shot 2019-02-01 at 6.17.35 PM.png
Screen Shot 2019-02-01 at 6.17.35 PM.png (20.75 KiB) Viewed 13776 times
variable username & hardcoded password (to eliminate pw as issue, since you can't see it): FAILS - Gmail Bad Credentials


What am I missing here?
You want the email to be sent from that user's actual GMail account - so it has to be dynamic, but there's no way to see what values are being submitted, via Output windows or Logging, so I can't really tell what is wrong. Just Output Window msg saying Bad Credentials.

Stuck in that 1 hour+ Aware cycle of try something, run it, change it, etc etc etc etc etc etc etc etc etc etc etc.
any ideas?
thx
Last edited by Jaymer on Thu Feb 07, 2019 6:19 am, edited 4 times in total.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
ACDC
Posts: 1138
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Probs using a attribute for outgoing Email address

Post by ACDC »

Try making this setting in the Notification setup (this is v7.1, the same should apply)
Attachments
notification setup.jpg
notification setup.jpg (73.22 KiB) Viewed 13763 times
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Probs using a attribute for outgoing Email address

Post by Jaymer »

No, the issue is not the from address.
The issue is the username and password to login to the email server.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
ACDC
Posts: 1138
Joined: Sat Jun 30, 2007 5:03 pm
Location: California, USA

Re: Probs using a attribute for outgoing Email address

Post by ACDC »

sorry , late night
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Support Help.Probs using a attribute for Email Account L

Post by Jaymer »

Please answer support. Thx
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Support Help.Probs using a attribute for Email Account L

Post by Jaymer »

bump
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Support Help.Probs using a attribute for Email Account L

Post by weblike »

Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Support Help.Probs using a attribute for Email Account L

Post by Jaymer »

George
Thanks
I read it but am in bed. Cannot download.
I understand “USING Users.emailaddress” for the smtp account.
But where does it get the password to login?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Support Help.Probs using a attribute for Email Account L

Post by weblike »

Jaymer wrote:George
Thanks
I read it but am in bed. Cannot download.
I understand “USING Users.emailaddress” for the smtp account.
But where does it get the password to login?
from earlier post:
weblike wrote:Hi there,

I have requested the Reply-To field to respect the RFC standards in sending emails corectlly.

Above is a sample BSV which uses the Reply-to and the "USING" statment in processes.

The idea is:
1. If you have non-techincal users your app can be defined as sending emails with

<From>:<<SystemSettings.OutgoingEmailAddress>>
Reply-to:><<LoggedInUser.EmailAddress>>

2. If your users wants to use their SMTP server you can use:
<From:><<LoggedInUser.EmailAddress>>
In BSV -> right click on "Business Objects" tree menu-> "Add Outgoing Email Account Object" (see my sample above)
In process you will have to use : "SEND My_Notification TO UsersBO USING UsersBO.EmailAccount

If you need deeper help, please let me know, I'll be gladly help you...

bye,
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Support Help.Probs using a attribute for Email Account L

Post by Jaymer »

George
Yes
I read this
But each user must record his unique password
Where?
USING will set that address to login to smtp server.
One user may use google. Another yahoo.
But let’s assume they all use the same.
How does Aware know how to use their password to login to their email account?
Just the address is not enough.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Support Help.Probs using a attribute for Email Account L

Post by weblike »

Jaymer wrote:George
Thanks
I read it but am in bed. Cannot download.
I understand “USING Users.emailaddress” for the smtp account.
But where does it get the password to login?
Steps to reproduce/test:
1. Sleep well
2. In morning, get off bed
3. Turn on your pc
4. test my bsv
:)))
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: [SOLVED] Using attribute for Email Account Login Credent

Post by Jaymer »

George, yes, that worked great.
Took a few extra mins to figure out, but does the job.
I will write this up formally for a tutorial soon.

thx
jaymer...
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: [SOLVED] Using attribute for Email Account Login Credent

Post by weblike »

Jaymer wrote:George, yes, that worked great.
Took a few extra mins to figure out, but does the job.
I will write this up formally for a tutorial soon.

thx
jaymer...
Great....I bet was the step #1 :)
Cheers
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Post Reply