SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
MailSendWithAttachment

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
MailSendWithAttachment
Author Message
David



Joined: 16 Oct 2003
Posts: 9

Post MailSendWithAttachment Reply with quote

I'm trying to get a mail sent with a file attached.
Using the the command MailSendWithAttachment as specified
below will generate a mail without recipient. As soon
as I enter a mailadress (exp. dbarcklow@ibo.de) I
get an error message. We are using outlook and an
exchange server. Do I need to enter mailadresses in
a specific format?

MailSendWithAttachment( "profile", "password", "", "Test", "Test", "test.csv" )

Thu Oct 16, 2003 4:50 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: MailSendWithAttachment Reply with quote

What error message do you get?
Can you send emails without attachments using MailSend command?
You do not specify file path to test.csv. Is this file stored in 24x7 home directory?

: I'm trying to get a mail sent with a file attached.
: Using the the command MailSendWithAttachment as specified
: below will generate a mail without recipient. As soon
: as I enter a mailadress (exp. dbarcklow@ibo.de) I
: get an error message. We are using outlook and an
: exchange server. Do I need to enter mailadresses in
: a specific format?

: MailSendWithAttachment( "profile", "password",
: "", "Test", "Test", "test.csv" )

Thu Oct 16, 2003 6:13 am View user's profile Send private message
David



Joined: 16 Oct 2003
Posts: 9

Post Re: MailSendWithAttachment Reply with quote

: What error message do you get?
: Can you send emails without attachments using MailSend command?
: You do not specify file path to test.csv. Is this file stored in 24x7 home
: directory?

The error message is:

An error occurred while executing 24x7 script
Line 10: Sending mail failed: Mail return failed.

For Line 10 see my first post.

I cannot send mails without attachments (MailSend).
Same problem arises as soon as I enter a recipient
adress.

The file is in the 24x7 home directory...will change that later.

Thu Oct 16, 2003 9:15 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: MailSendWithAttachment Reply with quote

Try changing mail send method in Tools/Options menu from "Send by Name" to "Send by Address" or visa versa.

Also make sure you specify correct profile name.

: The error message is: An error occurred while executing 24x7 script
: Line 10: Sending mail failed: Mail return failed.

: For Line 10 see my first post.

: I cannot send mails without attachments (MailSend).
: Same problem arises as soon as I enter a recipient
: adress.

: The file is in the 24x7 home directory...will change that later.

Thu Oct 16, 2003 11:07 am View user's profile Send private message
David



Joined: 16 Oct 2003
Posts: 9

Post Re: MailSendWithAttachment Reply with quote

: Try changing mail send method in Tools/Options menu from "Send by
: Name" to "Send by Address" or visa versa.

: Also make sure you specify correct profile name.

Worked, thanks! Now I have the problem that outlook asks
me manually to allow the application to send a mail.

I need to handle this with my system admin.

GOOD RESPONSE TIME AND VALUABLE HELP!

Thu Oct 16, 2003 1:56 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: MailSendWithAttachment Reply with quote

Either "send by name" or "send by address" method should be compatible with your email system. If setup and email parameters are correct the Send Message window does not appear and it does not require user interaction. Email recipient's name/address format depends on your email system settings and may differ for different methods.

By the way, we always recommend using SMTP email interface instead of MAPI because SMTP does not require any middleware such as Outlook and so on. Check with your sys admin how to configure SMTP email properties.

: Worked, thanks! Now I have the problem that outlook asks
: me manually to allow the application to send a mail.

: I need to handle this with my system admin.

: GOOD RESPONSE TIME AND VALUABLE HELP!

Thu Oct 16, 2003 3:16 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.