Edit: I'm using Outlook 2007 and MacroScheduler version 8.0.4.
So! I'm running the code below but find that I am unable to connect to the mail server, which is what SMTP_RESULT is telling me. We are using Outlook with Exchange servers. Before my scripts were all deleted, I had several functioning macros that sent emails and I was using this basic format.
In Outlook, going to Tools > Options > Mail Setup tab > E-Mail Accounts... and then double-clicking on the Microsoft Exchange name in the list of accounts gives me the name of the Microsoft Exchange server.
That's what I should be using for "server" in the code below, right? I'm not sure why I suddenly can't get this code to work.
Code: Select all
Let>SENDMAIL_STATUS=1
Let>subject=Report Distribution
Let>[email protected]
Let>myname=My Name
Let>[email protected]
Let>body=Attached are the reports you want.
Let>attachments=\\Server\Folder\Attachment.xls
Let>server=server.is.com
SMTPSendMail>recipients,server,me,myname,subject,body,attachments
mdl>SMTP_RESULT
Thanks,
Josh