Send external mail with more of an attached file

nbd

Member
Hello list,

I am using Send E-Mail-HRM BSFN B0500190 to send external mail with an attached file and works but it would need to know like being able to attached more of a file.

Thanks in advance.

nbd

(B7333, SP 17.1, Enterprise server on Sun Solaris, Clients on NT and Database Oracle 8.x)
 
Hello,

Adjunto copy of business function of the B0500190.c system
with the modifications to send email with but of an attached file.

For the example business function attached only two archives.

/* Populate attachment structure */
NumAttachments = 1;
smtpAtt=malloc(sizeof(JDEMailMessageAtt));

smtpAtt[0].pVoid=NULL; /* This is always NULL */
strcpy(smtpAtt[0].filename, lpDS->szNameOfAttachmentFile);
smtpAtt[0].filetype=ATT_FILE;
strcpy(smtpAtt[0].displayname, lpDS->szAttachmentDisplayText);

if ( jdestrcmpwithnull(lpDS->szNameOfAttachmentFile1,szBlank)!=0 )
{
if (access(szNameOfAttachmentFile1, 0)) /* "access" returns 0 if file exists */
{
ErrorCode += 16;
}
else
{
NumAttachments = NumAttachments++;
smtpAtt[1].pVoid=NULL; /* This is always NULL */
strcpy(smtpAtt[1].filename, lpDS->szNameOfAttachmentFile1);
smtpAtt[1].filetype=ATT_FILE;
strcpy(smtpAtt[1].displayname, lpDS->szAttachmentDisplayText1);
}
}
:cool:

I hope serves to you as aid
 

Attachments

  • 85255-B5500190.zip
    5.5 KB · Views: 222
Back
Top