How to send mails in HTML format from the send mail step of workflow?
Hi,
I have a requirement where I need to send mails in the html format from the send mail step of the workflows.
But what I found out that the html tags are not renderd and as such the output is in plain text.
I know that there is an alternative of using an activity step and use my own custom code from within there,But due to certain business constraints, I need to use the send mail step only.
My SCOT settings are all right.
Please let me know how it can be done.
Thanks,
Samrat.
Samrat,
It can't be done, you have to use your own activity step.
What are these constraints that refrain you from doing that?
Rgds,
Patrick
Similar Messages
-
How to send a mail in html format from a send mail workflow node ?
Dear all,
Do you know if it is possible to send an e-mail in HTML format (instead of RAW) from a "send mail" node in a workflow ? ... if "yes", please, let me know.
(I need to do that because I want to use the "href" tag to insert an hyperlink inside the e-mail)
- I haven't found any parameter to specify the format of the e-mail.
- Inside SCOT I tried to change the parameters for the SMTP node... without success.
- I don't want to use a task calling the FM SO_OBJECT_SEND.
NicolasHi Nicolas!
Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
Hope this helps!
Regards
Geir -
Send message in HTML format from Service Desk
Dear All,
I have configure Service Desk in Solution Manager 7 EHP1 (ABAP+JAVA Stack).
I am able to send the message to end user in case of change status from "New" to "In process" in PDF or TEXT format.
I want to send same in HTML with link just like SAP Support message we are getting in our inbox.
How to do that?
Thanks in advance,
NiravHello Nirav,
Its not that easy, take a look a this excellent blog /people/riccardo.escher/blog/2009/10/09/pep-up-your-charm--part-3-turn-cinderella-pdf-mails-into-prettyusefull-ones
Hope that helps,
Federico -
How do I activate an HTML file from the tools menu?
I understand how to add a custom entry to the TestStand 4.0 Sequence editor using the TOOLS->CUSTOMIZE... menu selection, but I want to:
1) Activate an HTML page when the TOOLS menu option is selected
and
2) Provide the directory of the current sequence file to the HTML
and
3) Disable this new menu selection if the current sequence file has not been saved.Thanks for the clarification of your suggestion. I have created a sequence with a single step: "Call Executable". In the Executable Pathname field I have specified iexplorer.exe. When I specify a specific HTML page in the Argument Expression field (i.e., "D:\Test.html") the sequence runs fine and properly activates IE showing the specified HTML file. If I just specify a directory in the Argument Expression field (i.e., "D:\Foo\Bar") the sequence runs fine and properly activates IE showing the specified directory.
However, when I put RunState.InitialSelection.SelectedFile.Path into the Argument Expression field, it doesn't show the directory. Do I have to do something special in order to get RunState.InitialSelection.SelectedFile.Path properly interpreted when the sequence is executed? -
Why has Mail stopped downloading messages from the web-mail server
I have several e-mail accounts that have all worked well until recently when one (tesco.net) has stopped downloading messages. I can send mail from the account ok and can see the unopened mail on the web server. I have not changed the settings and the Doctor comes up with all buttons green confirming internet connection to server. I phoned Tesco support but they say they cannot see a problem. Any advice anyone?
This is the total readout from Connection Doctor, I'm only concerned with the Tesco.net account.
READ Dec 25 16:38:01.542 [kCFStreamSocketSecurityLevelNone] -- host:mail.tesco.net -- port:587 -- socket:0x6100004a8c40 -- thread:0x608000678b40
235 Authed. Go on.
WROTE Dec 25 16:38:01.543 [kCFStreamSocketSecurityLevelNone] -- host:mail.tesco.net -- port:587 -- socket:0x6100004a8c40 -- thread:0x608000678b40
QUIT
READ Dec 25 16:38:01.552 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6080002b4160 -- thread:0x608000868c00
220 smtp.mail.yahoo.com ESMTP ready
WROTE Dec 25 16:38:01.553 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6100004a5e80 -- thread:0x608000663d80
CAPA
WROTE Dec 25 16:38:01.560 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6080002b4160 -- thread:0x608000868c00
EHLO [192.168.1.6]
READ Dec 25 16:38:01.581 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:imap.gmail.com -- port:993 -- socket:0x6180002bb960 -- thread:0x618000676300
* ID ("name" "GImap" "vendor" "Google, Inc." "support-url" "http://support.google.com/mail" "remote-host" "92.8.206.140" "connection-token" "z199mb13159714wlz")
2.39 OK Success z199mb13159714wlz
READ Dec 25 16:38:01.583 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a24c0 -- thread:0x618000073a00
+OK Logging out.
WROTE Dec 25 16:38:01.588 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:imap.gmail.com -- port:993 -- socket:0x6180002bb960 -- thread:0x618000676300
3.39 AUTHENTICATE PLAIN-CLIENTTOKEN (*** 100 bytes hidden ***)
READ Dec 25 16:38:01.595 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6100004a5e80 -- thread:0x608000663d80
+OK Capability list follows
EXPIRE 31 USER
TOP
UIDL
USER
XOIP
WROTE Dec 25 16:38:01.596 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6100004a5e80 -- thread:0x608000663d80
USER ********
WROTE Dec 25 16:38:01.601 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.gmail.com -- port:587 -- socket:0x6100004ae220 -- thread:0x61800067fcc0
EHLO [192.168.1.6]
READ Dec 25 16:38:01.604 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6080002b4160 -- thread:0x608000868c00
250-smtp.mail.yahoo.com
250-PIPELINING
250-SIZE 41697280
250-8 BITMIME
250 AUTH PLAIN LOGIN XOAUTH2 XYMCOOKIE
WROTE Dec 25 16:38:01.606 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6080002b4160 -- thread:0x608000868c00
AUTH PLAIN (*** 80 bytes hidden ***)
READ Dec 25 16:38:01.617 [kCFStreamSocketSecurityLevelNone] -- host:smtp.live.com -- port:587 -- socket:0x6180004a1f20 -- thread:0x618000076c00
250-BLU436-SMTP242.smtp.hotmail.com Hello [92.8.206.140]
250-TURN
250-SIZE 41943040
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-TLS
250-STARTTLS
250 OK
WROTE Dec 25 16:38:01.617 [kCFStreamSocketSecurityLevelNone] -- host:smtp.live.com -- port:587 -- socket:0x6180004a1f20 -- thread:0x618000076c00
STARTTLS
WROTE Dec 25 16:38:01.631 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.talktalk.net -- port:587 -- socket:0x6100004a5400 -- thread:0x618000079f40
EHLO [192.168.1.6]
READ Dec 25 16:38:01.637 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6100004a5e80 -- thread:0x608000663d80
+OK
WROTE Dec 25 16:38:01.638 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6100004a5e80 -- thread:0x608000663d80
PASS ********
READ Dec 25 16:38:01.639 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
+OK dub0-pop689 POP3 server ready
WROTE Dec 25 16:38:01.639 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
CAPA
READ Dec 25 16:38:01.643 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.gmail.com -- port:587 -- socket:0x6100004ae220 -- thread:0x61800067fcc0
250-mx.google.com at your service, [92.8.206.140]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
WROTE Dec 25 16:38:01.650 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.gmail.com -- port:587 -- socket:0x6100004ae220 -- thread:0x61800067fcc0
AUTH PLAIN-CLIENTTOKEN (*** 100 bytes hidden ***)
READ Dec 25 16:38:01.667 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:imap.gmail.com -- port:993 -- socket:0x6180002bb960 -- thread:0x618000676300
* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT
3.39 OK ******** authenticated (Success)
WROTE Dec 25 16:38:01.667 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:imap.gmail.com -- port:993 -- socket:0x6180002bb960 -- thread:0x618000676300
4.39 CAPABILITY
READ Dec 25 16:38:01.674 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.talktalk.net -- port:587 -- socket:0x6100004a5400 -- thread:0x618000079f40
250-c4 hello [92.8.206.140], pleased to meet you
250-HELP
250-AUTH LOGIN PLAIN
250-SIZE 20971520
250-8BITMIME
250-STARTTLS
250 OK
WROTE Dec 25 16:38:01.675 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.talktalk.net -- port:587 -- socket:0x6100004a5400 -- thread:0x618000079f40
AUTH PLAIN (*** 72 bytes hidden ***)
READ Dec 25 16:38:01.684 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
-ERR unrecognized command
WROTE Dec 25 16:38:01.685 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
USER ***********
READ Dec 25 16:38:01.686 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6100004a5e80 -- thread:0x608000663d80
+OK server ready
WROTE Dec 25 16:38:01.686 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6100004a5e80 -- thread:0x608000663d80
QUIT
READ Dec 25 16:38:01.709 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:imap.gmail.com -- port:993 -- socket:0x6180002bb960 -- thread:0x618000676300
* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT
4.39 OK Success
WROTE Dec 25 16:38:01.710 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:imap.gmail.com -- port:993 -- socket:0x6180002bb960 -- thread:0x618000073a00
5.39 LIST "" ""
READ Dec 25 16:38:01.720 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.talktalk.net -- port:587 -- socket:0x6100004a5400 -- thread:0x618000079f40
235 ... authentication succeeded
WROTE Dec 25 16:38:01.720 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.talktalk.net -- port:587 -- socket:0x6100004a5400 -- thread:0x618000079f40
QUIT
READ Dec 25 16:38:01.728 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.gmail.com -- port:587 -- socket:0x6100004ae220 -- thread:0x61800067fcc0
235 2.7.0 Accepted
WROTE Dec 25 16:38:01.729 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.gmail.com -- port:587 -- socket:0x6100004ae220 -- thread:0x61800067fcc0
QUIT
READ Dec 25 16:38:01.730 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6100004a5e80 -- thread:0x608000663d80
+OK md07.topaz.synacor.com Zimbra POP3 server closing connection
READ Dec 25 16:38:01.731 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
+OK password required
READ Dec 25 16:38:01.731 [kCFStreamSocketSecurityLevelNone] -- host:smtp.live.com -- port:587 -- socket:0x6180004a1f20 -- thread:0x618000076c00
220 2.0.0 SMTP server ready
WROTE Dec 25 16:38:01.732 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
PASS **********
READ Dec 25 16:38:01.751 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:imap.gmail.com -- port:993 -- socket:0x6180002bb960 -- thread:0x618000073a00
* LIST (\Noselect) "/" "/"
5.39 OK Success
WROTE Dec 25 16:38:01.752 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:imap.gmail.com -- port:993 -- socket:0x6180002bb960 -- thread:0x618000073a00
6.39 LOGOUT
WROTE Dec 25 16:38:02.205 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.live.com -- port:587 -- socket:0x6180004a1f20 -- thread:0x618000076c00
EHLO [192.168.1.6]
READ Dec 25 16:38:02.323 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.live.com -- port:587 -- socket:0x6180004a1f20 -- thread:0x618000076c00
250-BLU436-SMTP242.smtp.hotmail.com Hello [92.8.206.140]
250-TURN
250-SIZE 41943040
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-AUTH LOGIN PLAIN XOAUTH2
250 OK
WROTE Dec 25 16:38:02.324 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.live.com -- port:587 -- socket:0x6180004a1f20 -- thread:0x618000076c00
AUTH PLAIN (*** 100 bytes hidden ***)
READ Dec 25 16:38:02.829 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
+OK mailbox has 1 messages
WROTE Dec 25 16:38:02.829 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
QUIT
READ Dec 25 16:38:02.874 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a6600 -- thread:0x608000678e00
+OK mailbox unchanged, POP3 server signing off
READ Dec 25 16:38:03.443 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.live.com -- port:587 -- socket:0x6180004a1f20 -- thread:0x618000076c00
235 2.7.0 Authentication succeeded
WROTE Dec 25 16:38:03.443 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.live.com -- port:587 -- socket:0x6180004a1f20 -- thread:0x618000076c00
QUIT
READ Dec 25 16:38:04.672 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6080002b4160 -- thread:0x608000868c00
535 5.7.0 (#AUTH012) Incorrect username or password.
WROTE Dec 25 16:38:04.672 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6080002b4160 -- thread:0x608000868c00
QUIT
INITIATING CONNECTION Dec 25 16:38:04.672 host:smtp.mail.yahoo.com -- port:465 -- socket:0x0 -- thread:0x608000868c00
CONNECTED Dec 25 16:38:04.937 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6180002bc5c0 -- thread:0x608000868c00
READ Dec 25 16:38:04.985 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6180002bc5c0 -- thread:0x608000868c00
220 smtp.mail.yahoo.com ESMTP ready
WROTE Dec 25 16:38:04.992 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6180002bc5c0 -- thread:0x608000868c00
EHLO [192.168.1.6]
READ Dec 25 16:38:05.040 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6180002bc5c0 -- thread:0x608000868c00
250-smtp.mail.yahoo.com
250-PIPELINING
250-SIZE 41697280
250-8 BITMIME
250 AUTH PLAIN LOGIN XOAUTH2 XYMCOOKIE
WROTE Dec 25 16:38:05.041 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6180002bc5c0 -- thread:0x608000868c00
AUTH PLAIN (*** 48 bytes hidden ***)
READ Dec 25 16:38:08.153 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6180002bc5c0 -- thread:0x608000868c00
535 5.7.0 (#AUTH012) Incorrect username or password.
WROTE Dec 25 16:38:08.154 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6180002bc5c0 -- thread:0x608000868c00
QUIT
INITIATING CONNECTION Dec 25 16:38:08.154 host:smtp.mail.yahoo.com -- port:465 -- socket:0x0 -- thread:0x608000868c00
CONNECTED Dec 25 16:38:08.413 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
READ Dec 25 16:38:08.456 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
220 smtp.mail.yahoo.com ESMTP ready
WROTE Dec 25 16:38:08.463 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
EHLO [192.168.1.6]
READ Dec 25 16:38:08.508 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
250-smtp.mail.yahoo.com
250-PIPELINING
250-SIZE 41697280
250-8 BITMIME
250 AUTH PLAIN LOGIN XOAUTH2 XYMCOOKIE
WROTE Dec 25 16:38:08.508 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
AUTH LOGIN
READ Dec 25 16:38:08.553 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
334 VXNlcm5hbWU6
WROTE Dec 25 16:38:08.553 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
YWxhbi5nbGVuZGFAeWFob28uY28udWs=
READ Dec 25 16:38:08.598 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
334 UGFzc3dvcmQ6
WROTE Dec 25 16:38:08.599 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
READ Dec 25 16:38:11.738 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
535 5.7.0 (#AUTH012) Incorrect username or password.
WROTE Dec 25 16:38:11.738 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6100002aedc0 -- thread:0x608000868c00
QUIT
INITIATING CONNECTION Dec 25 16:38:11.738 host:smtp.mail.yahoo.com -- port:465 -- socket:0x0 -- thread:0x608000868c00
CONNECTED Dec 25 16:38:11.993 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
READ Dec 25 16:38:12.039 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
220 smtp.mail.yahoo.com ESMTP ready
WROTE Dec 25 16:38:12.046 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
EHLO [192.168.1.6]
READ Dec 25 16:38:12.092 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
250-smtp.mail.yahoo.com
250-PIPELINING
250-SIZE 41697280
250-8 BITMIME
250 AUTH PLAIN LOGIN XOAUTH2 XYMCOOKIE
WROTE Dec 25 16:38:12.092 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
AUTH LOGIN
READ Dec 25 16:38:12.137 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
334 VXNlcm5hbWU6
WROTE Dec 25 16:38:12.137 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
YWxhbi5nbGVuZGFAeWFob28uY28udWs=
READ Dec 25 16:38:12.183 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
334 UGFzc3dvcmQ6
WROTE Dec 25 16:38:12.184 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
READ Dec 25 16:38:15.322 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
535 5.7.0 (#AUTH012) Incorrect username or password.
WROTE Dec 25 16:38:15.322 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002b9b00 -- thread:0x608000868c00
QUIT
INITIATING CONNECTION Dec 25 16:38:15.322 host:smtp.mail.yahoo.com -- port:465 -- socket:0x0 -- thread:0x608000868c00
CONNECTED Dec 25 16:38:15.601 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002bb9c0 -- thread:0x608000868c00
READ Dec 25 16:38:15.651 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002bb9c0 -- thread:0x608000868c00
220 smtp.mail.yahoo.com ESMTP ready
WROTE Dec 25 16:38:15.658 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002bb9c0 -- thread:0x608000868c00
EHLO [192.168.1.6]
READ Dec 25 16:38:15.706 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002bb9c0 -- thread:0x608000868c00
250-smtp.mail.yahoo.com
250-PIPELINING
250-SIZE 41697280
250-8 BITMIME
250 AUTH PLAIN LOGIN XOAUTH2 XYMCOOKIE
WROTE Dec 25 16:38:15.706 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:smtp.mail.yahoo.com -- port:465 -- socket:0x6000002bb9c0 -- thread:0x608000868c00
QUIT
INITIATING CONNECTION Dec 25 16:38:54.459 host:pop3.live.com -- port:995 -- socket:0x0 -- thread:0x61000066a500
INITIATING CONNECTION Dec 25 16:38:54.459 host:mail.talktalk.net -- port:110 -- socket:0x0 -- thread:0x618000265780
INITIATING CONNECTION Dec 25 16:38:54.460 host:mail.tesco.net -- port:110 -- socket:0x0 -- thread:0x6180002604c0
CONNECTED Dec 25 16:38:54.505 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
CONNECTED Dec 25 16:38:54.510 [kCFStreamSocketSecurityLevelNone] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
READ Dec 25 16:38:54.543 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
+OK POP3 PROXY server ready
WROTE Dec 25 16:38:54.543 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
CAPA
READ Dec 25 16:38:54.555 [kCFStreamSocketSecurityLevelNone] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK POP3 ready
WROTE Dec 25 16:38:54.555 [kCFStreamSocketSecurityLevelNone] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
CAPA
READ Dec 25 16:38:54.583 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
+OK Capability list follows
TOP
RESP-CODES
USER
SASL PLAIN
PIPELINING
UIDL
WROTE Dec 25 16:38:54.583 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
AUTH PLAIN
READ Dec 25 16:38:54.599 [kCFStreamSocketSecurityLevelNone] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK Capability list follows
EXPIRE 31 USER
TOP
UIDL
USER
XOIP
STLS
WROTE Dec 25 16:38:54.599 [kCFStreamSocketSecurityLevelNone] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
STLS
READ Dec 25 16:38:54.626 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
+ go ahead
WROTE Dec 25 16:38:54.627 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
READ Dec 25 16:38:54.643 [kCFStreamSocketSecurityLevelNone] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK
READ Dec 25 16:38:54.721 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
+OK Logged in.
WROTE Dec 25 16:38:54.721 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
STAT
CONNECTED Dec 25 16:38:54.760 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
READ Dec 25 16:38:54.762 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
+OK 313 27091365
WROTE Dec 25 16:38:54.762 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
UIDL 1
READ Dec 25 16:38:54.804 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
+OK 1 000015d94faa7a48
WROTE Dec 25 16:38:54.804 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
UIDL 313
WROTE Dec 25 16:38:54.822 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
CAPA
READ Dec 25 16:38:54.845 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
+OK 313 000017114faa7a48
WROTE Dec 25 16:38:54.846 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
QUIT
READ Dec 25 16:38:54.861 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
+OK dub0-pop663 POP3 server ready
WROTE Dec 25 16:38:54.861 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
CAPA
READ Dec 25 16:38:54.866 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK Capability list follows
EXPIRE 31 USER
TOP
UIDL
USER
XOIP
WROTE Dec 25 16:38:54.866 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
USER **********
READ Dec 25 16:38:54.886 [kCFStreamSocketSecurityLevelNone] -- host:mail.talktalk.net -- port:110 -- socket:0x6080004a2340 -- thread:0x618000265780
+OK Logging out.
READ Dec 25 16:38:54.908 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
-ERR unrecognized command
WROTE Dec 25 16:38:54.908 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
USER ************
READ Dec 25 16:38:54.911 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK
WROTE Dec 25 16:38:54.912 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
PASS ********
READ Dec 25 16:38:54.953 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
+OK password required
WROTE Dec 25 16:38:54.954 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
PASS **********
READ Dec 25 16:38:54.962 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK server ready
WROTE Dec 25 16:38:54.962 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
STAT
READ Dec 25 16:38:55.007 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK 16 829786
WROTE Dec 25 16:38:55.007 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
UIDL 1
READ Dec 25 16:38:55.052 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK 1 30600.PPgV0t4mI8kU4o8IgLP,6vxLwwY=
WROTE Dec 25 16:38:55.052 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
UIDL 16
READ Dec 25 16:38:55.096 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK 16 31402.chu0qdMx4CAzc7lBvTfQCtcbCuo=
WROTE Dec 25 16:38:55.097 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
QUIT
READ Dec 25 16:38:55.141 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:mail.tesco.net -- port:110 -- socket:0x6080004a88e0 -- thread:0x6180002604c0
+OK md07.topaz.synacor.com Zimbra POP3 server closing connection
READ Dec 25 16:38:56.077 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
+OK mailbox has 1 messages
WROTE Dec 25 16:38:56.077 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
STAT
READ Dec 25 16:38:56.122 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
+OK 1 2389
WROTE Dec 25 16:38:56.122 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
UIDL
READ Dec 25 16:38:56.167 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
+OK 1 message(s)
READ Dec 25 16:38:56.267 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
1 9F36C4FD-8AAA-11E4-96F0-6C3BE5A7FAA8
WROTE Dec 25 16:38:56.270 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
QUIT
READ Dec 25 16:38:56.314 [kCFStreamSocketSecurityLevelTLSv1_0] -- host:pop3.live.com -- port:995 -- socket:0x6100004a5220 -- thread:0x61000066a500
+OK mailbox unchanged, POP3 server signing off
<E-mail Edited by Host> -
I WAS INFORMED THAT ONCE I PUT IN AN E-MAIL, MOZILLA WOULD AUTOMATICALLY BRING OVER ALL E-MAILS,FOLDERS,INFO FROM THAT ACCOUNT..
WELL THE ISSUE IS THAT IT ISN´T DOING SO AND IT DOESN´T SHOW HOW TO DO IT..
I ASK OF YOUR ASSISTANCE..SO I CAN GET MY STUFF MOVED TO MOZILLA - COMPLETELY..
I WILL GREATLY APPRECIATE YOUR MOST PROMPT RESPONSE..Call Apple support, ask to speak with someone in Customer Relations, and explain the situation to the CR representative. Perhaps they can help.
Good luck. -
How to send a mail with HTML body from Oracle
Hi Team,
Can somebody guide me how to send a mail with HTML body from oracle.
Here is the piece of code i am trying to send a mail.
procedure SEND_MAIL is
cursor c_1 is select * from table_name;
l_mail_id varchar2(40);
-- ls_mailhost VARCHAR2(64) := Mailhost;
ls_from VARCHAR2(64) := ‘[email protected]’
ls_subject VARCHAR2(200);
ls_to VARCHAR2(64);
l_mail_conn UTL_SMTP.connection;
ls_left_menu_name VARCHAR2(64);
ll_emp_num number(8);
begin
for i in c_1 loop
begin
l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
UTL_SMTP.HELO(l_mail_conn, 'IP');
UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
UTL_SMTP.RCPT(L_mail_conn, LS_TO);
UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
'To: ' ||ls_to || utl_tcp.crlf ||
'Subject: ' ||ls_subject|| utl_tcp.crlf);
UTL_SMTP.QUIT(l_mail_conn);
exception
when no_data_found then
null;
when others then
RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
end;
end loop;
end;
ThnxHi Nicolas!
Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
Hope this helps!
Regards
Geir -
How to send program output as mail in HTML format
Hi Friends,
I have a BDc which runs in background and its been Stored in my system and displayed as HTML format.
My requirement is now i want that Same HTML file which i am displaying to be sent as a mail in HTML format itself..Kindly help me on this
Thanks in advance
kishoreHi,
Below sample program might give you idea on sending HTML attachment.
TYPES: BEGIN OF t_sal_ord,
vbeln TYPE vbeln_va,
posnr TYPE posnr_va,
auart TYPE auart,
vkorg TYPE vkorg,
matnr TYPE matnr,
END OF t_sal_ord.
DATA: i_sal_ord TYPE STANDARD TABLE OF t_sal_ord,
i_header TYPE STANDARD TABLE OF w3head,
i_fields TYPE STANDARD TABLE OF w3fields,
i_html TYPE STANDARD TABLE OF w3html,
wa_header TYPE w3head.
DATA: i_fcat TYPE lvc_t_fcat,
wa_fcat TYPE lvc_s_fcat.
DATA: g_send_request TYPE REF TO cl_bcs,
g_document TYPE REF TO cl_document_bcs,
g_recipient TYPE REF TO cl_cam_address_bcs,
g_cx_bcs TYPE REF TO cx_bcs,
g_sent_to_all TYPE os_boolean.
DATA: g_lines TYPE i,
g_size TYPE so_obj_len.
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY,
p_mailad TYPE ad_smtpadr OBLIGATORY.
START-OF-SELECTION.
SELECT a~vbeln b~posnr a~auart a~vkorg b~matnr
INTO TABLE i_sal_ord
UP TO 20 ROWS
FROM vbak AS a
INNER JOIN vbap AS b
ON a~vbeln = b~vbeln
WHERE a~vkorg = p_vkorg.
wa_fcat-coltext = 'SalesOrd#'.
APPEND wa_fcat TO i_fcat.
wa_fcat-coltext = 'Item#'.
APPEND wa_fcat TO i_fcat.
wa_fcat-coltext = 'OrdType'.
APPEND wa_fcat TO i_fcat.
wa_fcat-coltext = 'Sales.Org'.
APPEND wa_fcat TO i_fcat.
wa_fcat-coltext = 'Material'.
APPEND wa_fcat TO i_fcat.
LOOP AT i_fcat INTO wa_fcat.
wa_header-text = wa_fcat-coltext.
CALL FUNCTION 'WWW_ITAB_TO_HTML_HEADERS'
EXPORTING
field_nr = sy-tabix
text = wa_header-text
size = '2'
fgcolor = 'BLACK'
bgcolor = 'VIOLET'
font = 'CALIBRI'
TABLES
header = i_header.
CALL FUNCTION 'WWW_ITAB_TO_HTML_LAYOUT'
EXPORTING
field_nr = sy-tabix
size = '2'
fgcolor = 'BLACK'
bgcolor = 'WHITE'
font = 'CALIBRI'
TABLES
fields = i_fields.
ENDLOOP.
wa_header-text = 'Sales Order Details'.
wa_header-size = '2'.
wa_header-font = 'CALIBRI'.
CALL FUNCTION 'WWW_ITAB_TO_HTML'
EXPORTING
* TABLE_ATTRIBUTES = 'BORDER=1'
table_header = wa_header
* ALL_FIELDS = 'X'
TABLES
html = i_html
fields = i_fields
row_header = i_header
itable = i_sal_ord.
TRY .
g_send_request = cl_bcs=>create_persistent( ).
g_document = cl_document_bcs=>create_document(
i_type = 'RAW'
* i_text = i_content[] " Body for Mail
i_subject = 'Sales Order Details' ).
DESCRIBE TABLE i_html LINES g_lines.
g_size = g_lines * 2 * 255.
CALL METHOD g_document->add_attachment
EXPORTING
i_attachment_type = 'HTM'
i_attachment_subject = 'Sales Order Details'
i_attachment_size = g_size
i_att_content_text = i_html[].
g_send_request->set_document( g_document ).
g_recipient = cl_cam_address_bcs=>create_internet_address( p_mailad ).
g_send_request->add_recipient(
EXPORTING
i_recipient = g_recipient
i_express = 'X' ).
g_send_request->set_send_immediately( 'X' ).
g_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = g_sent_to_all ).
COMMIT WORK.
CATCH cx_bcs INTO g_cx_bcs.
WRITE:/ g_cx_bcs->error_type.
ENDTRY.
Kind Regards
Eswar -
How to send mail in HTML format using SMTP
I want to send mail in HTML format using SMTP.Can anybody please suggest how to do it.Can anybody send me the code.
Thnx.If you don't know how to send a message using JavaMail see here : http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#JavaMailSending
To send a html format mail you need to set the content type like this (msg is a javax.mail.internet.MimeMessage) :
String subject = "An Email 4 U";
String message = "<HTML><BODY>Here is a link<br><a href='http://javasoft.com'>Java</a></BODY></HTML>";
msg.setSubject(subject);
msg.setContent(message, "text/html");p.s This isn't really an advanced topic -
How to maintain format in html email using the send email....
Does anyone know how to maintain the format in a HTML email using the Send E-mail To Recipients From Recordset behavior?
When text only is selected instead of HTML text on the Options tab the format of the input is maintained, but when HTML text is selected the email has no format. I have tried to use a replace \n with
as I have done when hand coding PHP, BUT I am trying to learn to use ADDT. I also tried to use a Custom trigger without success.
Help!Hi Dave,
in my snippets folder I have this thing which I found on the old MX Kollection forums and which was suggested by the Interakt staff:
//trigger SendEmail (write content)
function Trigger_SendEmail(&$tNG) {
ob_start();
include("myDynamicContentFile.php");
$mailcontent = ob_get_contents();
ob_end_clean();
$emailObj = new tNG_Email($tNG);
$emailObj->setTo("[email protected]");
$emailObj->setFrom("[email protected]");
$emailObj->setSubject("A new User was added");
$emailObj->setContent($mailcontent);
$emailObj->setEncoding("UTF-8");
$emailObj->setFormat("text");
$emailObj->setImportance("Low");
return $emailObj->Execute();
//trigger SendEmail (write content)
The only modification is the possibility to include a dynamic PHP file rather than some static text or a HTML file which will also render textarea contents on one line:
ob_start();
include("myDynamicContentFile.php");
$mailcontent = ob_get_contents();
ob_end_clean();
That said, it should be possible to define all the "rendering" options in the external PHP file, what would mean to apply the nl2br function there, e.g.: nl2br($row_queryname['columnname'])
What I´m not sue about is, if you will have to strip the external file´s head and body tags before it´s getting included -- however, please give this a try and tell us how it worked.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Java.mail sending email in html format
I trying to send emails from my java program, I ve managd to send text mails, I want to send email in html format is there a way of doing that and how
thanks for your helpThanks a lot it is working now but I think that sending mails in text format is the best way since there isn't a way of knowing whether the recepient can handel html mails
-
Send e-mail in HTML-format with attachment
Does function SO_OBJECT_SEND allow to send e-mail with attachment?
Does function SO_DOCUMENT_SEND_API1 allow to send e-mail in HTML format?Hi SS
See if you can understand this sample program
PARAMETERS: po_email TYPE AD_SMTPADR LOWER CASE.
DATA: li_objcont TYPE STANDARD TABLE OF solisti1,
li_reclist TYPE STANDARD TABLE OF somlreci1,
li_objpack TYPE STANDARD TABLE OF sopcklsti1,
li_objhead TYPE STANDARD TABLE OF solisti1,
li_content TYPE STANDARD TABLE OF solisti1,
lwa_objcont TYPE solisti1,
lwa_reclist TYPE somlreci1,
lwa_objpack TYPE sopcklsti1,
lwa_objhead TYPE solisti1,
lwa_content TYPE solisti1,
lwa_doc TYPE sodocchgi1,
l_lines TYPE i.
REFRESH: li_objcont[], li_reclist[],
li_objpack[], li_objhead[],
li_content[].
CLEAR: lwa_objcont, lwa_reclist,
lwa_objpack, lwa_objhead,
lwa_content, lwa_doc.
MOVE '<body>' TO lwa_objcont.
APPEND lwa_objcont TO li_objcont.
MOVE '<p>' TO lwa_objcont.
APPEND lwa_objcont TO li_objcont.
MOVE 'This is a sample HTML content from test program' TO lwa_objcont.
APPEND lwa_objcont TO li_objcont.
MOVE '</p>' TO lwa_objcont.
APPEND lwa_objcont TO li_objcont.
MOVE '</body>' TO lwa_objcont.
APPEND lwa_objcont TO li_objcont.
lwa_reclist-receiver = po_email.
lwa_reclist-rec_type = 'U'.
APPEND lwa_reclist TO li_reclist.
lwa_objhead = 'test.htm'.
APPEND lwa_objhead TO li_objhead.
lwa_content = 'Please find attached document for more details'.
APPEND lwa_content TO li_content.
CLEAR l_lines.
DESCRIBE TABLE li_content LINES l_lines.
READ TABLE li_content INTO lwa_content INDEX l_lines.
lwa_doc-doc_size = ( l_lines - 1 ) * 255 + STRLEN( lwa_content ).
lwa_doc-obj_langu = 'E'.
lwa_doc-obj_name = 'Test HTML file'.
lwa_doc-obj_descr = 'Test HTML file'.
CLEAR lwa_objpack-transf_bin.
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 0.
lwa_objpack-body_start = 1.
lwa_objpack-body_num = l_lines.
lwa_objpack-doc_type = 'RAW'.
APPEND lwa_objpack TO li_objpack.
CLEAR: lwa_objpack, l_lines.
DESCRIBE TABLE li_objcont LINES l_lines.
READ TABLE li_objcont INTO lwa_objcont INDEX l_lines.
lwa_objpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( lwa_objcont ).
lwa_objpack-transf_bin = 'X'.
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 0.
lwa_objpack-body_start = 1.
lwa_objpack-body_num = l_lines.
lwa_objpack-doc_type = 'HTM' .
lwa_objpack-obj_name = 'Test HTML file'.
lwa_objpack-obj_descr = 'Test HTML file'.
APPEND lwa_objpack TO li_objpack.
*Sending the mail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = lwa_doc
put_in_outbox = 'X'
TABLES
packing_list = li_objpack
object_header = li_objhead
contents_bin = li_objcont
contents_txt = li_content
receivers = li_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
IF sy-subrc NE 0.
WRITE:/ 'Document sending failed'.
ELSE.
WRITE:/ 'Document successfully sent'.
COMMIT WORK.
ENDIF.
This should give you all you need to know to send an HTML file.
Thanks buddy -
Hello All,
I have to send e-mail to a customer but the e-mail should be sent out in an HTML Format which would look good..
I know the FM to send the e-mail but how to build the body in the HTML format because i have a big bunch of text.
Is there any way to create a HTML template in SMW0 and read the same using any function modules to build the body like given below...
Eg:
Dear Customer
Multiples lines of text....
Your suggestions are highly appreciated.
Regards,
KrishnakumarTry this way
submit yXXXXX0001 exporting list to memory " Write a report for HTML body and properly format
" and submit the report to list to memory
with p_docno = xdocno
and return.
call function 'LIST_FROM_MEMORY'
tables
listobject = report_list
exceptions
not_found = 1
others = 2.
call function 'WWW_HTML_FROM_LISTOBJECT'
exporting
template_name = 'WEBREPORTING_REPORT'
tables
html = report_html
listobject = report_list.
Here internal table report_html contains body for HTML mail in HTML tags
a® -
How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address
Hello,
Try Mail>Preferences>Accounts icon>Account Information tab>Click on the Outgoing SMTP server drop down, choose edit Server list, highlight the old one & click Remove.
(Such convolution is worthy of Windows® in my estimation) -
How do I mix text and Html format in a java mail?
How do I mix text and Html format in a java mail? some part I want to keep the text format, the other part I want to use Html functions(like fond, color, etc)
You don't mix them. Pick one or the other.
However if you want to have a text version and an HTML version, so that mail readers that don't handle HTML can see regular text instead, then you could produce a "multipart/alternative" message. There's an explanation of how to do that in this article:
http://www-128.ibm.com/developerworks/java/library/x-xmlist2/
Maybe you are looking for
-
Unable to start Oracle Reports Server for 10g version 10.1.2.3.0
Attention Oracle Reports Team or anyone else: I am unable to start the Oracle Reports Server for 10g version 10.1.2.3.0 of the Application Server. I have included the trace files see below. I marked the text in bold that might indicate the issues. An
-
Can we use Apple tv to present with iPad wirelessly but no internet? if not, is there any other way? Please tell me what's the best solution if I want to present what's on the iPad screen to TV or projector withtout using internet network or small r
-
ITunes crashes when I try to print a playlist
When i try to print a cd cover from a playlist it crashes iTunes. Doesn't seem to matter what songs are in the list, it does it for all of them. As soon as I select print from the File menu, the wheel comes up and spins for a few seconds, and then it
-
Hi All, I am getting the following error when i try to run the reports in IDM 6.0 java.lang.NoClassDefFoundError: javax/activation/DataSource any idea how to solve this?
-
How to link 2 regions as a stereo file....
Hi. Is there anyway to link two regions together so they move and are cut together as if they were a stereo file? Thanks, Ben