DSSendMailAttachmentTester problem

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
userasif
Participant
Posts: 50
Joined: Tue Jun 06, 2006 5:57 am

DSSendMailAttachmentTester problem

Post by userasif »

Hi to all,

When I use DSSendMailAttachmentTester routine by giving all arguments it works well .... the receiver recieves email but without attached file. Also instead of message I typed in BODY, the following message is displayed in email.

*************************************************************
This is a MIME encoded message.

--Unique-Boundary-14207-34801
Content-Type: text/plain


"My Actual Message I send to Receiver"

--Unique-Boundary-14207-34801
Content-Type: application/octet-stream; name="c:/mydir/myfile.txt"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="c:/mydir/myfile.txt"


TXVoYW1tYWQgYXNpZjENCg==

--Unique-Boundary-14207-34801

*************************************************************

Any one who has experienced with this problem or who knows the solution, Please help me.

Regards,

ITsME
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Works fine here from a UNIX server, I get an attachment rather than having it MIME encoded and inlined. Perhaps the email client on the other end plays a role as well, I don't really recall - using Outlook here.

For the record, what are you using for sending mail from your Windows server and what is the email client on the other end? Have you edited the 'template' at all?
-craig

"You can never have too many knives" -- Logan Nine Fingers
userasif
Participant
Posts: 50
Joined: Tue Jun 06, 2006 5:57 am

Post by userasif »

Hi,

I didnot make any change in template file. The receiver is on the same mail server. Consider the following arguments:-

ToAddress = "myfriend@mycompany.com"
FromAddress = "me@mycompany.com"
Subject = "Its Test Mail"
SMTP Server = "mailserver.mycompany.com"
Attachments = "c:\mydir\myfile.txt"
MessageBody = "My Message"

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What precisely is the "problem"?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The fact that the attachment is not, in fact, attached. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
userasif
Participant
Posts: 50
Joined: Tue Jun 06, 2006 5:57 am

Post by userasif »

Yes......Attachment is not attached and in BODY "something*" about file that was trying to send as attachment.

*something

--Unique-Boundary-14207-34801
Content-Type: application/octet-stream; name="c:/mydir/myfile.txt"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="c:/mydir/myfile.txt"

Is this due to SMTP server?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That 'something' is the file. As noted in the email itself, the file has been MIME encoded and included in the body of the email rather than being attached. Your email reader would then need to decode the email to restore the file to its original state.

See web sites like this one for the gory details.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply