baanconsultant
31st May 2011, 19:34
Hi,
I want use AFS to start a print session and mail the result to a user.
Mailing itsself works (AFS with SMTP), however the mails "send from" is set to something like
"tdpur4403m000.100@mycompany.com" (so: reportname dot companynumber)
mycompany.com is from the "Mail from domain" parameter in the provider.
If we send mails like that to customers or suppliers, they cannot directly reply to the mail.
So: How do I set the "mail from" address?
Ashok_elgi
31st May 2011, 21:16
hi,
Use the send message option given in the second form of the print, after selecting device as SMTP, you can add recipients, frame the message.
The id given in the user data in tools will be used for from mail id.
Try it will work.
I have a doubt, when I incude the report printing thro CMF in a Job, I am not able to get send message option.Hence am not able to frame the message and add CC and BCC mail ids.
If any one knows the answer, kindly help.
Regards,
Ashok
baanconsultant
1st June 2011, 14:19
hi,
Use the send message option given in the second form of the print, after selecting device as SMTP, you can add recipients, frame the message.
The problem is not sending mail from a print session, I have no problem with this, the problem is using AFS to start the print session and make the started session send an email.
I considered two options:
- Using the "send message" option in the printer dialog, as you described. This works, the send-from is filled. But how do I trigger this using AFS?
- Defining a device "EMAIL", using ttcmfprint as 4GL-Programm, argument SMTP, and defining SMTP as service/service provider etc. in ttcmf. It works, but the send from addresss is something like "ttaad3410m000.0@tst.local,
meaning the name of the report, a dot, the company number @ the defined send-from domain.
So neither option is usable with AFS.
For job's, if the send-from and the name of the report is not relevant (internal email), we use the second option, this works fine.