Using Dynamic Data in "Send E-Mail To Recipients From Recordset"
Hi,
How can I use Dynamic Data embedded in recordset field ?
I try another way to do it, using a html link
> function Trigger_EmailRecordset_E6(&$tNG) {
$rsemailObj = new tNG_EmailRecordset($tNG);
$rsemailObj->setRecordset("rsTasks");
$rsemailObj->setFrom("{KT_defaultSender}");
$rsemailObj->setTo("email_to");
$rsemailObj->setSubject("{rsTasks.lib_task}");
//WriteContent method
$rsemailObj->setContent("{rsTasks.email_text}\n</br>\n</br>\n{rsTasks.url_document}</br>< /br>
<a href=\"http://xxx.xxx.xxx.xxx/yyyyyyyy/{rsTasks.url_document}\">Clic here</a>");
$rsemailObj->setEncoding("UTF-8");
$rsemailObj->setFormat("HTML/Text");
$rsemailObj->setImportance("High");
return $rsemailObj->Execute();
I wonder if I could use Dynamic Data _INSIDE_ {rsTasks.email_text} field ?
Thanks. JM.
Similar Messages
-
Send E-mail To Recipients From Recordset Attachment problem
Hello !
I got a recordset which stored a list of recipients emails.
CREATE TABLE IF NOT EXISTS `tasks` (
`id_task` mediumint(9) NOT NULL auto_increment,
`id_procedure` mediumint(9) NOT NULL,
`id_step` mediumint(9) NOT NULL,
`lib_task` varchar(40) NOT NULL,
`recipient_email` varchar(80) default NULL, <---------------- email to use
`email_text` mediumtext,
`url_document` varchar(100) default NULL, <------------------ name of document to send for THIS recipient as attachement
PRIMARY KEY (`id_task`),
KEY `id_procedure` (`id_procedure`),
KEY `id_step` (`id_step`)
There's less than 10 records to process.
Table content :
RECIPIENT 1 DOCUMENT 1
RECIPIENT 2 DOCUMENT 2
RECIPIENT 3 DOCUMENT 3
RECIPIENT 4 DOCUMENT 4
RECIPIENT 5 DOCUMENT 5
RECIPIENT 6 DOCUMENT 6
I want to use the "Send E-mail to Recipients From Recordset" behaviour and Dynamic Datas.
The problem is that each recipients are well processed but all of them receive the attach document of the FIRST one !
Email results :
RECIPIENT 1 DOCUMENT 1
RECIPIENT 2 DOCUMENT 1
RECIPIENT 3 DOCUMENT 1
RECIPIENT 4 DOCUMENT 1
RECIPIENT 5 DOCUMENT 1
RECIPIENT 6 DOCUMENT 1
How can I fix it ?
Thanks for your help. Jérôme.I try another way to do it, using a html link
> function Trigger_EmailRecordset_E6(&$tNG) {
$rsemailObj = new tNG_EmailRecordset($tNG);
$rsemailObj->setRecordset("rsTasks");
$rsemailObj->setFrom("{KT_defaultSender}");
$rsemailObj->setTo("email_to");
$rsemailObj->setSubject("{rsTasks.lib_task}");
//WriteContent method
$rsemailObj->setContent("{rsTasks.email_text}\n</br>\n</br>\n{rsTasks.url_document}</br>< /br>
<a href=\"http://xxx.xxx.xxx.xxx/yyyyyyyy/{rsTasks.url_document}\">Clic here</a>");
$rsemailObj->setEncoding("UTF-8");
$rsemailObj->setFormat("HTML/Text");
$rsemailObj->setImportance("High");
return $rsemailObj->Execute();
I wonder if I could use Dynamic Data _INSIDE_ {rsTasks.email_text} field ?
Thanks. JM. -
Problem with send email to recipients From recordset behavior
Hello
I use the ^send email to recipients From recordset^ behavior, then words of the subject of sent email stick and the spaces between words in subject removed.
E-Mail charset is utf-8 and language is Persian
for example:
موضوع ايميل من
will be change to:
موضوعايميلمن
notice: spaces are removed
To overcome this problem, please help me
sorry, i'm not good in english
ThanksPersian language is very similar to arabic language
Please help me, I can't solve this problem -
Error in DW when using Dynamic Data
Hello all,
I'm not sure if my problem is common or rare, so I'll give you two versions.
Short Version:
Everytime I load a page with Dynamic date (I'm using PHP MySQL), the problem tells me an error was encountered and it boots me after I select to send or not to send the Error message.
Long Version:
I have a database in MySQL set up to use. I have 23 or 24 fields in the main DB, and 6 other DBs involved. Currently I'm only using Dreamweaver for Data Entry into my inventory. I created a Add Product page to update the MySQL DB, and I succesfully entered about 80 products. I then decided I wanted a new category, added it to MySQL, and proceeded again. This time I encountered an error.... something to the tune of my SQL Script being bad at the " on line 1. I'm not very familar with MySQL, and after a couple of hours trying to figure this out, I went to bed. Next morning, I try to recreate a new database, and a new DW site, to start from scratch (since everything was working fine before the errors).
Now my errors are listed in the Short Version. Everytime I open a page with dynamic data, the program ecounters an error and I get booted.
Anyone experience anything similar, or anyone know any solutions?
Thanks much for any input.
-DerekHey Gunter,
Thanks much, that did work.
The other error I spoke of was fixed with the new database, so apparently the two errors I spoke of weren't related.
You seem to be a good help to this forum, thank you for that.... fixing my problem relieved me from much stress.
Cheers,
Derek Miller
Dreamweaver Enthusiast -
I cannot use my iPhone to send e-mail
I just changed my password on my G-mail account. As such, I changed the password on my iPhone for use of G-mail. However, when I tried to send an e-mail, it did not go through and said "Unable to Send E-mail" A copy is placed in your Cutbox???
Also, what is VIP list for and why I have my client's e-mail listed under???The VIP list is where google add those emails from people you email the most, it's a pain as I've missed emails because they've been in that folder.
Can you send using the new password on other devices? You could try deleting the account on the phone & set it up again. -
How to use Dynamic date calculation in some transactions.
Hello everyone.
I have to create some dynamic variants using the dynamic date calculation. The problem is that in some transactions it´s not possible to use some variables that can round a value. For example: in transaction /SAPAPO/MC90, I need to fix 3 months in the horizon like this: From date: 01.01.2009 To date 31.03.2009. The current month is 01.01.2009. Next month the current month will be february, so the horizon would be 01.02.2009 to 30.04.2009.
In 5.1 version, it´s impossible to fix the months, because the options that appear in the match code are:
Current Date
Current date +/- ??? days
current date +/- ??? work days
First day of current month
nth working day of current month
First day of next month
First day of previous month
Last day of previous month
Last Day of the Current Month
Does anybody knows how to do this? This is happening in other transactions to.
Thanks a lot
Regards
AngelaI am not sure where you are looking for..but here is what I can do it in MC90 Tcode:
1. when you try to save the variant, in the variant screen check the two boxes under "Current date" field for Selection Variables attributes "L"
2. Then click on Selection variables option and click on the "D" variable so that it turns to green
3. Drop down in the first current date field, select "Current +/- ??? days. here if you want to start from today's date maintain 0 days
4. In the second Current date field maintain 90 days in "Current +/- ??? days.
5. save it
please let me know if I misunderstod the issue -
I CANNOT USE WINDOWS HOTMAIL TO SEND E MAILS FOR 3 WEEKS NOW????
I was using Safari with my new Apple Mac Air laptop, but could not load Hotmail sometimes, or play a Zynga game that I like to play as I am disabled, and partially housebound.
I called my Internet Service Provider (Plusnet) who advised me to change browser and install Mozilla Firefox, which I did, with great success, until now. Now I am unable to send an e-mail with Hotmail, although I can read e-mails sent to me.
Could you please fix this problem as quickly as possible please.
My friend also has the same problem with Firefox, which he has recently added at my recommendation, but he is now able to send e-mails but not any attachments.
Please contact me URGENTLY as I really need this facility on Firefox.
Thank you very much.* No, this is forum-based support. We do not send emails.
* Please answer the two questions I posted - you'll need to read them and one knowledge base article for that.
--Thank you. -
Grouping of chracateristics by using dynamic data columns
Hi all,
I want to create a BPS Layout (BW3.5) with the material in the lead column and a KeyFigures, the year and the salesgroup in the data column. The salesgroup is the dynamic characteristic.
Example:
I want to have:
SG1 2007/ SG1 2008/ SG2 2007/ SG2 2008...
What the system is doing is:
SG1 2007/ SG2 2007/ SG1 2008/ SG2 2008
My question is: how can I change the grouping of the columns from year to salesorg?
Can anybody help me?
Best regards,
RainerHi Rainer,
Thanks for your appreciation.
I thought there is not material in your lead column, okay if your case like that i suggest you like this.
I suggest to .
To choose Layout Category:
1. Key Figures in Data Column
Define data column dynamically for : Sales Group
And make the fiscal year, and material as lead column.
In the data column tab, define the key-figures there and mark Dynamic checkbox.
Or if you want to group based on the fiscal year, you can make the fiscal year as you dynamic data column.
Hopefully it can help you a lot.
Best regards,
Niel.
thanks for the points you choose to assign. -
List of values failure error when trying to use dynamic data values
Hi there,
I have a user who is experiencing problems when trying to use dynamic values in a report. Whenever he tries to insert dynamic parameters he gets the following error message:
Prompting failed with the following message: 'List of Values failure: Failed to get values. [Cause of error: Access is denied.] Error Source: prompt.dll Error Code: 0x8004380D
He even opened the sample report - prompting.rpt - that is included with CR and gets the same error.
We are using Crystal Reports XI Release 2 ver. 11.5.11.1470.
Any help would be appreciated.Please excuse my ignorance of the product. I've had this problem dropped in my lap and I know practically nothing about Crystal Reports. In doing some digging it appears to me as if the BusinessObjects Enterprise software may not be installed properly, if at all. In the programs menu under the BusinessObjects XI Release 2 folder I see a BusinessObjects Enterprise folder, but the only icon listed in that folder is Software Inventory Tool.
Is the BusinessObjects Enterprise software a separate install from Crystal Reports or is it bundled together? I talked with the tech that did the install and he said that all he had was the Crystal Reports install media. -
HI folks,
i have to send a mail to outlook for correpanding mailler id with out opeing outlook from my app(iphonoe flex 4.5.1 app.) with taking the input values what ever we have given as input those values has to be send to outlook while pressing submit button on that view....(i dont want to open outlook and user action on that).
Please help out on thsi issue..
Regards,
Madhu.Hello Madhu,
The only way to send an email without opening a client is: using server-side mail objects invoked by your app.
This would be the workflow:
- your user fills in form data (subject, body, mail_to)
- your application sends form data to a server (via httpservice or webservice or AMF)
- the server takes care of sending the mail in a way that is transparent to your user
So: it is not possible to send emails without opening the iPhone client (I think by "outlook" you mean the "mail client" with an Exchange account) for security reasons. You wouldn't want any app to send mails without you pressing "Send" in a known interface. -
Send External mail with Attchment from SAP
Hi All,
OUR REQUIREMENT: We need to send EXTERNAL MAIL with ATTACHMENT(Excel) form SAP .
We have developed a function module which converts the internal table data into Excel Format and sends it as an attachment to External Mail.
ISSUE : But our issue is we are unable to open that document using GOOGLE DOCS Could any one help me how to do this.
it was thriughing error like
Error log is .
''Sorry, we are unable to generate a view of the document at this time. Please try again later.
You can also try to download the original document by clicking here. Alternatively, you can view the plain HTML (automatically redirecting).
Regards
Venkat .
Edited by: venkata pradeep on Mar 5, 2012 10:26 AM
Edited by: venkata pradeep on Mar 5, 2012 10:28 AMIs the excel file recognized by MS Excel? If not, then issue is you have wrongly converted your attachment and/or your FM to create an excel file was wrongly coded or you have passed it wrongly to your mail code.
If you consider an OOP approach in sending external mail, refer to this link:
http://wiki.sdn.sap.com/wiki/display/Snippets/SendingmailwithattachmentusingObjectOriented+Approach -
[SOLVED] msmtp: Gmail sends empty mails, Yahoo ignores "from"
I have recently embarked on the atrocious adventure of migrating from Thunderbird to mutt.
So far however, msmtp has consistently refused to properly send mail. Using
echo "Yet another test" | msmtp -a <account> <test>@gmail.com
with this config
defaults
auth on
tls on
tls_starttls on
tls_trust_file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt
# first gmail address
account gmail
host smtp.gmail.com
port 587
from <mail1>@gmail.com
user <mail1>@gmail.com
password <pass1>
# second gmail address
account gmail2 : gmail
from <mail2>@gmail.com
user <mail2>@gmail.com
password <pass2>
# yahoo
account yahoo
tls_starttls off
host smtp.mail.yahoo.de
from <mail3>@yahoo.de
user <mail3>
password <pass3>
# default
account default : gmail
yields:
1. An empty mail if one of the Gmail accounts is used, including the proper "from" address.
2. A mail with the test sentence if Yahoo is used, but having "youknow@smtp<three digits>.mail.ukl.yahoo.com" as "from".
Any help, please? This is getting really tiresome.
edit: Solution below
Last edited by misc (2010-07-05 16:01:38)If brisbin33's page comes back up, I highly recommend it. It has a ton of great information, and I configured mine based on that. My msmtprc file contains:
# gmail
account gmail
host smtp.gmail.com
port 587
protocol smtp
auth on
from [email protected]
user [email protected]
password EMAILPASS
tls on
tls_nocertcheck
account default : gmail
So my suggestion is to try these tls* lines, and add the protocol lines. Other than that, I don't know much about it. brisbin33 uses these forums, so he may be able to help you directly
Last edited by jac (2010-07-06 13:32:26) -
Generate dynamic reports using sql query and send via mail
Can anyone provide me the links to dynamically generate the sql query based reports and send it to Mail. it should be called from the scheduler program using PL/SQL
suppose you have the query as
spool myrep.txt
select * from emp where rowid<3;
spool off
write the query in the emp.sql query at any directory like d:\sqljobs\emp.sql
the call make a batch file like sndml.bat and write the following codes
sqlplus scott/tiger@orcl @d:\sqljobs\emp.sql
explorer mailto:[email protected] d"\sqljobs\myrep.txt
or if you are using any mailing software then you can use that.. -
Insert into table using dynamic data
Oracle form 6i
Hai
I need to insert my data into a table. I have generated my data from text file and data in a form now i need to insert these data into one table. How can insert my field to that table if there is data in table i need to update and there is no data i need to insert.. Pls tell me the solution..
Regards
Srikkanth.MCreate the on-insert trigger and check the data is thre or not through the Primary key value in this trigger. If data is thre then update or it not there then insert in the same trigger.
Thanks,
SUN -
How to send Notification mail (with attachement) from On-Demand job
Hi Experts,
I am using SAP IDM 7.2 SP8.
Requirement is to send a notification mail to a specific mail address [email protected] whenever we run a on-demand job.
On-Demand job should also attach a csv file (atttachement.csv, which is in a specific folder D:\folder) while sending the notification mail.
Please help.
Thanks & Regards,
Chandan KumarHi there,
It sounds like you have the basics all together. I would check how you are setting the following parameters of uSendSMTPMessage:
Attachment
Optional. Fully qualified file name of a file to be included as an attachment.
Multiple attachments can be added by separating the file names by a pipe character (|).
AttachmentType
Optional. Valid MIME attachment type.
Charset
Optional. Valid ISO character set identifier, for instance ISO-2022-JP. The default value is ISO-8859-1.
HeaderEncoding
Optional. 0: Plain text, 1: Base64. Default: 0
TransferEncoding
Optional. 1: 7bit, 2: 8bit, 3: Quoted ASCII, 4: Base64. Default: 4.
Sorry the first row got mangled a bit.
Matt
Maybe you are looking for
-
Evening, everyone. I could beat my head against the wall for all the frustration my MBP is giving me! I really hope some kind soul will be able to help me. I will try to be methodical in explaining the whole story of what I have done and what appears
-
My iphone 3G only gets wifi if its within 1 ft of the router. I have had the antenna replaced but its no better. I have restored to factory through iTunes but still not working. 3G signal is good
-
Is it possible to stop using Manual Numbering ?
Is it possible to stop using Manual Numbering of any Document for any type of user? in SAP B1 2007 B SP0 PL7
-
Best way to develop billing software - advice me
Hi, I am junior software developer. I am thinking to write a open source billing software witch can be used from ISPs and web hosting companies. I want to ask you what is the best approach for that goal. 1. I am thinking to use a server witch will si
-
Creating directory or path on URL
Hi Everyone, I have a simple questions where you Java gurus might be able to help me. I have granted access to a https URL, e.g. https://someserver.com/myfolder. I was able to authenticate and upload some files to the aforementioned URL using a simpl