Jump to content

Send email via exchange with file attached.


Juvigy
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

Maybe try this one I posted a while ago ?

Pretty sure there is an .attach option too.

#500374

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...