Jump to content
Sign in to follow this  
Juvigy

Send email via exchange with file attached.

Recommended Posts

Juvigy

I have outlook 2007 that is connected to a exchange server. I want to make a script that sends mail with file in attachment to a single recipient.And i would like to do it "silently" , without having to type subject body and etc. Just execute the script and the file is send. I saw there is an smtp autoit function but it doesnt help me. Please help.

Share this post


Link to post
Share on other sites
November

I have outlook 2007 that is connected to a exchange server. I want to make a script that sends mail with file in attachment to a single recipient.And i would like to do it "silently" , without having to type subject body and etc. Just execute the script and the file is send. I saw there is an smtp autoit function but it doesnt help me. Please help.

Hi there,

Try to find in Help file for _INetSmtpMail ou INetMail.

Cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites
Juvigy

I already found those , but they require SMTP server and i have exchange.I want the person that receives the email to see that it has been send by my exchange account.Also i dont want to see the mail window that wait to press send.Also i want to automatically attach a file too.

Edited by Juvigy

Share this post


Link to post
Share on other sites
Juvigy

Great help. It works. I used:

With $oOMail

.To = ("test@test.com")

.Subject = "Test mail"

.BodyFormat = $olFormatRichText

.Importance = $olImportanceHigh

.Body = "Send VIa script.With attachment"

.attachments.add ("C:\vcredist.bmp",$olByValue,1,"picture fail")

; .Display

.Send

EndWith

But do you know why the fail is in the body and the description doesnt show? I set the byValue parameter but it still do it as embedded and not like i want - the attachment outside the body...

Edited by Juvigy

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  

×