SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
MailSend Parameters ?

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
MailSend Parameters ?
Author Message
Jim Maxwell



Joined: 12 Feb 2004
Posts: 73

Post MailSend Parameters ? Reply with quote

Hi,

Using MailSend command in script - can you give an example of command syntax for following scenario ?

Using Outlook client (not outlook express) to MS Exchange server. My email profile is, for example MYPROFILE and I want to send email to an Exchange distributionlist called ERROR_NOTIFICATION_USERS.

Can distribution lists be used or must the list of users be explicit in the command ?

If 24x7 Scheduler is running under an admin account, say ADMINUSER, can it use the Exchange User Profile for MYPROFILE or does it need to have a specific exchange user profile set up for ADMINUSER ?

I am presuming here as well the the email system interface for exchange is MAPI.

Thanks,

Jim

Thu Jan 27, 2005 8:41 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: MailSend Parameters ? Reply with quote

MailSend "MYPROFILE", "my email password", "ERROR_NOTIFICATION_USERS@mycompany.coom", "Subject", "Message"
or
MailSend( "MYPROFILE", "my email password", "ERROR_NOTIFICATION_USERS@mycompany.coom", "Subject", "Message" )

"MYPROFILE" must exist on the computer running 24x7 Scheduler.

WARNING: From your previous message I know that you run 24x7 as a service. You cannot use MAPI email with the service (e.g. Outlook). You should use SMTP email interface instead (see Tools/Options menu; General tab; select SMTP email). If you don't know your Exchange server SMTP name please contact your local email admin. The only difference in the MailSend and MailSendWithAttachment syntax is that your would use your email address for the first parament - in place of the profile name.

You can use distribution groups just as you can use individual emails. Make sure these groups are setup in Exchange as Global Distribution groups.

: Hi,

: Using MailSend command in script - can you give an example of command syntax
: for following scenario ?

: Using Outlook client (not outlook express) to MS Exchange server. My email
: profile is, for example MYPROFILE and I want to send email to an Exchange
: distributionlist called ERROR_NOTIFICATION_USERS.

: Can distribution lists be used or must the list of users be explicit in the
: command ?

: If 24x7 Scheduler is running under an admin account, say ADMINUSER, can it
: use the Exchange User Profile for MYPROFILE or does it need to have a
: specific exchange user profile set up for ADMINUSER ?

: I am presuming here as well the the email system interface for exchange is
: MAPI.

: Thanks,

: Jim

Thu Jan 27, 2005 11:24 am View user's profile Send private message
Jim Maxwell



Joined: 12 Feb 2004
Posts: 73

Post Re: MailSend Parameters ? Reply with quote

Hi,

Thanks for the info.

Is the "no MAPI from service" restriction likely to be removed in a later release ?

If I go with the SMTP email option (or the MAPI) does the command cope with blank/nopassword ?

Thanks,

Jim

: MailSend "MYPROFILE", "my email password",
: "ERROR_NOTIFICATION_USERS@mycompany.coom", "Subject",
: "Message"
: or
: MailSend( "MYPROFILE", "my email password",
: "ERROR_NOTIFICATION_USERS@mycompany.coom", "Subject",
: "Message" )

: "MYPROFILE" must exist on the computer running 24x7 Scheduler.

: WARNING: From your previous message I know that you run 24x7 as a service.
: You cannot use MAPI email with the service (e.g. Outlook). You should use
: SMTP email interface instead (see Tools/Options menu; General tab; select
: SMTP email). If you don't know your Exchange server SMTP name please
: contact your local email admin. The only difference in the MailSend and
: MailSendWithAttachment syntax is that your would use your email address
: for the first parament - in place of the profile name.

: You can use distribution groups just as you can use individual emails. Make
: sure these groups are setup in Exchange as Global Distribution groups.

Fri Jan 28, 2005 6:12 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: MailSend Parameters ? Reply with quote

To be honest with you I don't see any advantages in using MAPI. Can you elaborate on why you prefer MAPI and Outlook over SMTP?

: Hi,

: Thanks for the info.

: Is the "no MAPI from service" restriction likely to be removed in a
: later release ?

: If I go with the SMTP email option (or the MAPI) does the command cope with
: blank/nopassword ?

: Thanks,

: Jim

Fri Jan 28, 2005 10:21 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: MailSend Parameters ? Reply with quote

I forgot to mention that this is not a 24x7 limitation, it is a MAPI limitation. it needs certain network access and access to the Desktop which is not available to services.
If you run 24x7 standalone (not as a service) then you can use MAPI anyway you want.

Of course workarounds are available, but each of them requires additional steps. For example, from a service you can run an external program binding it to the interactive user Desktop and running under a different user account. That program can then read email parameters from some file or just read them from the command line and then using MAPI email it to the specified recipient.

: To be honest with you I don't see any advantages in using MAPI. Can you
: elaborate on why you prefer MAPI and Outlook over SMTP?

Fri Jan 28, 2005 11:12 am View user's profile Send private message
Jim Maxwell



Joined: 12 Feb 2004
Posts: 73

Post Re: MailSend Parameters ? Reply with quote

Hi,

Thanks again - I don't have any particular preference - I was just assuming that as we use M#####change servers and Outlook clients on our desktops.

As far as I am aware we don't have any external MAPI or SMTP clients on our server boxes (Exchange servers excluded) so does thismean that 24x7 has some form of built in SMPT client for mat least sending eamils ?

Thanks,

Jim

: I forgot to mention that this is not a 24x7 limitation, it is a MAPI
: limitation. it needs certain network access and access to the Desktop
: which is not available to services.
: If you run 24x7 standalone (not as a service) then you can use MAPI anyway
: you want.

: Of course workarounds are available, but each of them requires additional
: steps. For example, from a service you can run an external program binding
: it to the interactive user Desktop and running under a different user
: account. That program can then read email parameters from some file or
: just read them from the command line and then using MAPI email it to the
: specified recipient.

Fri Jan 28, 2005 11:52 am View user's profile Send private message
Jim Maxwell



Joined: 12 Feb 2004
Posts: 73

Post Re: MailSend Parameters ? Reply with quote

Hi again,

If using SMTP mail from the 24x7 service is there any easy way to email to a
"distribution list" of recipients, as you can with MAPI, or do
you need to use multiple mailsend commands or some sort of loop sructure with
a file containing the list of recipients ?

Alternatively how long can a string variable really be (2,147,483,647?) and can
I reaqlly just conctenated recipients up to that size - memory permitting ?

Thanks,

Jim

: MailSend "MYPROFILE", "my email password",
: "ERROR_NOTIFICATION_USERS@mycompany.coom", "Subject",
: "Message"
: or
: MailSend( "MYPROFILE", "my email password",
: "ERROR_NOTIFICATION_USERS@mycompany.coom", "Subject",
: "Message" )

: "MYPROFILE" must exist on the computer running 24x7 Scheduler.

: WARNING: From your previous message I know that you run 24x7 as a service.
: You cannot use MAPI email with the service (e.g. Outlook). You should use
: SMTP email interface instead (see Tools/Options menu; General tab; select
: SMTP email). If you don't know your Exchange server SMTP name please
: contact your local email admin. The only difference in the MailSend and
: MailSendWithAttachment syntax is that your would use your email address
: for the first parament - in place of the profile name.

: You can use distribution groups just as you can use individual emails. Make
: sure these groups are setup in Exchange as Global Distribution groups.

Mon Feb 14, 2005 8:14 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: MailSend Parameters ? Reply with quote

It works exactly the same for all interfaces. Just mail to mygroup@mycompany.com.

Note: In Exchange "mygroup" must be created as a GLOBAL distribution group.

: Hi again,

: If using SMTP mail from the 24x7 service is there any easy way to email to a
: "distribution list" of recipients, as you can with MAPI, or do
: you need to use multiple mailsend commands or some sort of loop sructure with
: a file containing the list of recipients ?

: Alternatively how long can a string variable really be (2,147,483,647?) and
: can
: I reaqlly just conctenated recipients up to that size - memory permitting ?

: Thanks,

: Jim

Mon Feb 14, 2005 11:19 am View user's profile Send private message
Jim Maxwell



Joined: 12 Feb 2004
Posts: 73

Post Re: MailSend Parameters ? Reply with quote

Yes - Understand how it would work in an Exchange environment
as I can create my own distribution lists but does this mean
that any distribution lists such as "mygroup" would automatically
be available to its SMTP "interface" provided that te group is GLOBAL ?

Jim

: It works exactly the same for all interfaces. Just mail to
: mygroup@mycompany.com.

: Note: In Exchange "mygroup" must be created as a GLOBAL
: distribution group.

Mon Feb 14, 2005 11:31 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: MailSend Parameters ? Reply with quote

I am talking about global address lists created on the server.

Perhaps the following document can be used a step-by-step guide for creating global distribution groups. This document is for Active Directory 2003. Similar methods and GUI are available in all previous versions.

: Yes - Understand how it would work in an Exchange environment
: as I can create my own distribution lists but does this mean
: that any distribution lists such as "mygroup" would automatically
: be available to its SMTP "interface" provided that te group is
: GLOBAL ?

: Jim

Mon Feb 14, 2005 12:06 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: MailSend Parameters ? Reply with quote

Oops, the web board masked "prohibited" words. Here is the same URL with an extra space. Remove that space when copying to browsers address field.

"http://www.ms exchange.org/tutorials/User-Groups-Distribution-List-Contact-Management.html"

: I am talking about global address lists created on the server.

: Perhaps the following document can be used a step-by-step guide for creating
: global distribution groups. This document is for Active Directory 2003.
: Similar methods and GUI are available in all previous versions.

Mon Feb 14, 2005 12:09 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.