Jump to content
Sign in to follow this  
Damien56546

Quick Help

Recommended Posts

Damien56546

Just a little notifier script:

I've got it for the most part working:

#include <INet.au3>

$Address = InputBox('Address', 'Enter the E-Mail address to send message to')

$subject= "New Account"

$Username = InputBox('Enter client Username', 'Enter Clients username')

$username2=GUICtrlRead($Username)

$Body = 'Hello, your username is $username2'

MsgBox(0,'E-Mail has been opened', & _INetMail($address, $subject, $body))

Slight problem, I want to be able to put the 'username' that is entered into the box, into the body of the message.

Not too sure how to go about it ? Is it possible ?

Another thing, is there a way to get rid of that autoit icon in the top left of the entry boxes?

This isn't a big deal.

Thankyou.

Edited by Damien56546

Share this post


Link to post
Share on other sites
Prab

You can change the autoit icon by using the full compiler. That will let you choose whatever icon you want.

What you probably want to do is change

$Body = 'Hello, your username is $username2'

to

$Body = 'Hello, your username is ' & $username2

but I'm not exactly sure if thats what you mean.

Share this post


Link to post
Share on other sites
Damien56546

You can change the autoit icon by using the full compiler. That will let you choose whatever icon you want.

What you probably want to do is change

$Body = 'Hello, your username is $username2'

to

$Body = 'Hello, your username is ' & $username2

but I'm not exactly sure if thats what you mean.

$Body = 'Hello, this is just a message to inform you that your Harnessweb account has been setup for the Victoria Database with the password you requested at the time. Please note that your username to login is '& $username

^^ THIS works, when the email opens up it includes what I type in the box.

But I can't write anything after that. I want to add text after the username is put in. How do I keep writing? I'm getting errors.

Share this post


Link to post
Share on other sites
azure

$Body = 'Hello, this is just a message to inform you that your Harnessweb account has been setup for the Victoria Database with the password you requested at the time. Please note that your username to login is '& $username

^^ THIS works, when the email opens up it includes what I type in the box.

But I can't write anything after that. I want to add text after the username is put in. How do I keep writing? I'm getting errors.

$Body = 'Hello, this is just a message to inform you that your Harnessweb account has been setup for the Victoria Database with the password you requested at the time. Please note that your username to login is '& $username & 'and this is me typing additional text.  Blah Blah Blah!'

Like that?

Share this post


Link to post
Share on other sites
Damien56546

Thanks.

That works great.

Finally, I want to add in so that it sends the email once it opens up.

I can't use :

Send("^s")

Why ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×