Including StringBuffer object in my mail message
I am getting text from the textarea of my jsp page
<textarea name="reason" rows="5" cols="40"></textarea>
StringBuffer comment = new StringBuffer(request.getParameter("reason"));
int loc = (new String(comment)).indexOf('\n');
while(loc > 0){
comment.replace(loc, loc+1, "<BR>");
loc = (new String(comment)).indexOf('\n');
I have save this in a StringBuffer object, comment. Now I want the comment to be the text of my mail message
msg.setText( comment );
When I compile this, I get the message
"SRSBean.java": Error #: 300 : method setText(java.lang.StringBuffer) not found in class javax.mail.Message at line 659, column 9
How can I include the text in the comment object in my mail ?
Yes that works. But when i check my email i see that the <BR> is inserted.
i want this to be a new line in the mail. how can i do this?
Similar Messages
-
I "reply"ed to an e-mail message. The next time when I chose to write a new message and type the first letter of the person I replied to earlier, that name and e-mail address appears as a choice included in a pop up list of my contacts. The persons name is not in my contacts and I would like to delete it from popping up. Do you know how I can do this?
The Mail app on the iPad/iPhone/iPod Touch does have an option to clear previous recipients. You can learn to live with it. But if you want to get rid of it, the only way to remove these cached email addresses from the Mail application is restoring the iPhone/iPod Touch as a new phone/iPod. If you restore from backup, the cache is also restored.
This article shows you the screens you will see during the restore: http://support.apple.com/kb/HT1414 -
When I send e-mail messages with file by using a POP3 in Exchange 2010 I received delivered message with file. How I can disable this functions that file do not include to delivery message. I use Exchange 2010 only local users.
I think there is not native rule for this, but you could try a transport rule which removes all attachments over a very small file size like 1KB.
http://blogs.technet.com/b/exchange/archive/2009/05/11/3407435.aspx
CRM Advisor -
Bug: Include mail message as attachment does not work any more
After upgrading to Mavericks (10.9.3) it is not longer possible to drag a mail message from the mail list to a new mail window to include it as a attachment.
Doing so makes a generic icon in the mail composing window. Double clicking the icon gives an error message.This feature still works for me, so it is not a problem with Mavericks.
If you have some other software that is modifying Mail try uninstalling it and restarting.
Try a safe boot and then see if the feature works. Mac OS X: What is Safe Boot, Safe Mode? -
i am unable to open any links on any mail messages. thhis includes any buttons, such as view or buy when on a group on mail for example.
So I'm not Mary Frances. I'm her husband who is force to deal with this opaque and obnoxious equipment (iPad). With the iOS 7 update she could no longer follow web links by tapping them in an e-mail (it did work from a web page). After an hour of web searching, experimenting and rejecting the offer of an answer from apple help for only $20, I found that, if in settings/safari, you turn off the "Do Not Track" button, the ability to follow links in an e-mail by a tapping is magically returned.
Flash! I just went back to the ipad and turned on the "Do Not Track" button -- just to test my discovery. Predictably (by my cynical myself) you can still open a link in an e-mail, so I don't know what's happening/happen. But I'm not surprised. -
Mail message "Save As..." doesn't save attachments when "Include Attachments" is ticked for "Rich Text Format"
Messages are supposed to be saved as rtfx files (actually folders that include the attchments in seperate files)
It worked fine in 10.6
How do I submit a bug report? I have sent several request through the "Provide Mail Feedback" link since 10.7 - no joy.
ThanksYou can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
Feedback via Apple Developer -
On occasion, pictures that are attached to Apple e mail messages are out of orientation, but straighten out automatically when I hit reply. Any ideas out there?
On occasion, pictures that are attached to Apple e mail messages are out of orientation, but straighten out automatically when I hit reply. Any ideas out there?
-
So, I have found the article
http://punaro.com/2012/01/derek/modifying-a-sharepoint-2010-workflow-email/comment-page-1/ which appears to walk through the process of modifying an out of the box workflow's mail message.
However, there is a basic problem that I run into before I get started.
I am logged into the system as a regular user (ie not a farm admin, etc.).
I do, however, have full control on the site on which I am working.
I create a custom list.
I create a simple one step approval - sharepoint 2010 out of the box workflow.
I start SharePoint designer and give it the URL of the list. It opens up and I see the various objects on the left side of the screen.
I click right on the Workflows object - which is where the article says I will find the ability to copy and modify the workflow.
All I see is "open", "open in a new tab" and "Pin".
I selecdt open in a new tab - and I get a blank screen labeled workflows that says "There are no items to show in this view".
So, I click on Lists and Libraries, then on the name of my custom list.
When the list displays, the Workflows section of the page has a "Modified Workflow" displayed.
When I right click on it, no menu is shown. When I click on the modified workflow, I get the workflow settings page for that workflow.
I am trying to figure out how to create the copy of the workflow so that I can modify one of the mail messages in SharePoint designer.
Is there someone who has some advice on how to find this copy and modify option? Or perhaps a web site, web forum, article series, or book covering the topic?
Thank you!Hi lwvirden,
According to your description, my understanding is that you want to modify the OOB approval workflow in SharePoint Designer.
After opening the site in SharePoint Designer, just click Workflows in the left panel and then the workflows in the site will load in the right part.
If you want to copy and modify the OOB approval workflow, then you need to right the approval workflow
Approval – SharePoint 2010 under Globally Reusable Workflow. After that you will see the
Copy and Modify button.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Hi, I would like to share with you issue that I’ve solved regarding mail-enabled PF that migrated from Exchange 2000/2003/2007 to 2010, I’ve searched & contacted my MVP leader – there’s no official KB regarding this issue right
now, so I’m posting here in order to share this among others.
Note: There’s article(s) that talked about PF replication from Exch2000/2003/2007 to 2010 – this is the same issue as well.
Symptoms
E-mail messages that been sent to mail-enabled public folder in Exchange Server 2010 environment rejected with the following NDR:
“#< #5.2.0 smtp;554 5.2.0 STOREDRV.Deliver.Exception:ObjectNotFoundException; Failed to process message due to a permanent exception with message The Active Directory user wasn’t found. ObjectNotFoundException: The Active Directory
user wasn’t found.> #SMTP#”
Sometimes Exchange Server 2010 is documented as well Event ID 1020 on the Event Viewer with this information:
“Log Name: Application
Source: MSExchange Store Driver
Event ID: 1020
Level: Error
Description:
The store driver couldn’t deliver the public folder replication message "Hierarchy ([email protected])" because the following error occurred: The Active Directory user wasn't found.”
Cause
In an environment where Microsoft Exchange Server 2000 or Microsoft Exchange Server 2003 previously existed, and all those servers have been removed, there is a chance that an Administrative Group (First Administrative Group or another custom Administrative
Group) remains with a Servers container, but no servers inside it.
During replication, when the Exchange 2010 Store Driver sees the empty Servers container in Active Directory, it's expecting a System Attendant object inside the container and when it is not found the error occurs.
Resolution
To work around the issue, delete the empty Servers container. This can't be done through Exchange System Manager. Use the ADSI Edit tool to remove it using the following steps:
Warning If you use the ADSI Edit snap-in, the LDP utility, or any other LDAP version 3 client, and you incorrectly modify the attributes of Active Directory objects, you can cause serious problems. These problems may require you to reinstall Microsoft Windows
2003 Server, Microsoft Windows Server 2008, Microsoft Exchange 2010 Server or both Windows and Exchange. Microsoft cannot guarantee that problems that occur if you incorrectly modify Active Directory object attributes can be solved. Modify these attributes
at your own risk.
1.
Start the ADSI Edit MMC Snap-in. Click Start, then
Run, and type adsiedit.msc, and then click OK.
2.
Connect & Expand the Configuration Container [YourServer.DNSDomainName.com], and then expand
CN=Configuration,DC=DNSDomainName,DC=com.
3.
Expand CN=Services, and then CN=Microsoft Exchange, and then expand
CN=YourOrganizationName.
4.
You will see an empty Administrative Group. Expand the
CN=YourAdministrativeGroupName.
5.
Expand CN=Servers.
6.
Verify there are no server objects listed under the
CN=Servers container.
7.
Right click on the empty CN=Servers container and choose
Delete.
8.
Verify the modification, and try to send again the E-mail to the mail-enabled public folder.
Applies to
Exchange Server 2010, Standard Edition
Exchange Server 2010, Enterprise Edition
Netanel Ben-Shushan, MCSA/E, MCTS, MCITP, Windows Expert-IT Pro MVP. IT Consultant & Trainer | Website (Hebrew): http://www.ben-shushan.net | IT Services: http://www.ben-shushan.net/services | Weblog (Hebrew): http://blogs.microsoft.co.il/blogs/netanelb
| E-mail: [email protected]Sounds like you are looking in the wrong Administrative Group container which is why you are seeing your Exchange 2010 servers in there.
When you install Exchange 2003 only you will see a container named by default as "CN=First Administrative Group" container. But this could be named anything if you changed the Organization Name on the installation when you installed the first
Exchange 2003 server into the domain/forest.
You will notice that when you install Exchange 2010 part of the AD setup is to create a new configuration container and is named by default "CN=First Administrative Group (FYDIBOHF23SPDLT)".
So it sounds like you are not looking in the right location within ADSIEdit.
You may find the following article also helpful for this issue which is the same resolution:
http://blogs.technet.com/b/sbs/archive/2012/05/17/empty-cn-servers-container-causing-issues-with-public-folders-on-small-business-server-2011.aspx
I recommend though that you ensure your Exchange 2003 servers are fully uninstalled or no longer present in your environment before you go deleting the Servers container though.. The following Microsoft article will help with this:
http://technet.microsoft.com/en-gb/library/gg576862(v=exchg.141).aspx -
HT5361 Is it possible to embed raw latex into a mail message to display an equation?
Hi,
Is it possible to embed raw latex (or any other meta data format like HTML) into a mail message? I would really like to be able to send equations directly without converting them to PDF or GIF first.
Thanks,
JoeI just borrowed a quadratic equation from the MathML Wikipedia site and grafted it into an HTML document. It imaged fine in Safari 7. It should be noted that neither the latest Google Chrome or FIrefox rendered the same content accurately.
Laying out your entire email message (including MathML) in HTML can be tedious. Once it is displayed in the browser, each use of the command+I will put the browser content in a new Mail compose window. So, you cannot add an equation to existing Mail composition. Select, copy and paste (or paste and match style) will not work either.
Depending on the importance you place on email equations, at one time, Design Science (MathType) claimed compatibility with Apple Mail (4.5) where you could input your equation in MathType and it could then be placed within the email. The mail recipient would not need a copy of MathType installed for this to work. MathType even allows you to key your equation in with LaTeX syntax to generate the equation.
You could check with them about functionality (or restrictions) with Mail 6 and 7 on OS X, as it might provide a more productive way to achieve your goals. -
First of all, let me say that I have been a Blackberry fan for years. I just bought a new BlackBerry Tour and have received hundreds (literally) of e-mails similar to this:
Subject: RIM_bca28a80-e9c0-11d1-87fe-00600811c6a2
This message is used to carry data between the BlackBerry handheld and an associated server. Please do not delete, move or respond to this message - it will be processed by the server.
BEGINETP 110
AehFzkAAAAAAIBAIMzBCODIzNzUgE0Jvbm5pZUxhc2t5QG1zbi5jb20ATMeCvFAFQ01JTUUD
QICAgIAyAAAwQUVDQUYyRDIrRysxAGngLNAsag4M3Y38CqYbEk0AGfipkVFo5zM0EreLUGEa
ghI!
ENDETP -957926563
After receiving over 800 similar messages, I did delete them. Do you know what I might be getting these types sof e-mail messages?
Thanks for your help.
blHi and Welcome to the Forums!
There are several possible reasons. I suggest you go here:
http://www.blackberry.com/btsc/microsites/searchEntry.do
and do a search on "etp" (the messages are coming to you from network@etp, right?) and check out the various results.
Good luck and let us know!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
I'm using Apple Mail 2.1.3 on a MacBook running OS 10.4.11. A very strange thing is happening. E-mail messages that I either sent or received months ago are showing up in my mailbox and receivers' mailboxes. In one case, a message someone had sent to me wound up in the mailbox of a third person, who was not included in the address list!! I have only two accounts, and have checked everything; only one account is showing the repeats Now, that account is my professional account, and it resides in three places: I use it on the laptop described here, I use it through Apple Mail on the much newer desktop Mac in my office, and I can run it through Web mail on my employer's server, which is where the professional account resides (I have a mailbox there, etc.) That program is called Zimbra.
My personal account is with Earthlink and is not doing the repeats. I access it either through my MacBook's Apple Mail or the Web; the Apple Mail on my office Mac is not configured to access the Earthlink server.
What IS going on here?? My friends, colleagues, and students (I teach college) are mystified by these ancient messages.
Thanks for any help!!I'm using Apple Mail 2.1.3 on a MacBook running OS 10.4.11. A very strange thing is happening. E-mail messages that I either sent or received months ago are showing up in my mailbox and receivers' mailboxes. In one case, a message someone had sent to me wound up in the mailbox of a third person, who was not included in the address list!! I have only two accounts, and have checked everything; only one account is showing the repeats Now, that account is my professional account, and it resides in three places: I use it on the laptop described here, I use it through Apple Mail on the much newer desktop Mac in my office, and I can run it through Web mail on my employer's server, which is where the professional account resides (I have a mailbox there, etc.) That program is called Zimbra.
My personal account is with Earthlink and is not doing the repeats. I access it either through my MacBook's Apple Mail or the Web; the Apple Mail on my office Mac is not configured to access the Earthlink server.
What IS going on here?? My friends, colleagues, and students (I teach college) are mystified by these ancient messages.
Thanks for any help!! -
I got this problem when I tried to configure out-going email and add an account to farm administrator group.
I configure out-going email according to this website http://technet.microsoft.com/en-us/library/cc288949.aspx
Here are the screen shots.
The SMTP server and email accounts work out OK when I use Outlook 2010 to test.
Anyone can help me about it? Thanks.
Here is the log.
09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)
0x1138
SharePoint Foundation E-Mail
8gsf
High
#160008: The e-mail address 'admin3.sharepoint@domain' contains illegal
characters. df98555c-612f-4a58-9443-ab6e9a4fcc53
09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)
0x1138
SharePoint Foundation General
8kh7 High
Cannot complete this action. Please try again.
df98555c-612f-4a58-9443-ab6e9a4fcc53
09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)
0x1138
SharePoint Foundation E-Mail
7946 Critical
Cannot complete this action. Please try again.
df98555c-612f-4a58-9443-ab6e9a4fcc53
09/20/2012 09:21:00.36 w3wp.exe (0x1F7C)
0x1138
SharePoint Foundation Runtime
tkau Unexpected
Microsoft.SharePoint.SPException: The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your
server administrator. at Microsoft.SharePoint.ApplicationPages.AclInv.SendEmailInvitation(EntityEditor picker, String subject, String message) at Microsoft.SharePoint.ApplicationPages.AclInv.BtnOK_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String
eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStage...
df98555c-612f-4a58-9443-ab6e9a4fcc53
The e-mail address I have tested it for several times and there is no problem.
Anyone has any clue about this error?Hi.
This I have seen before...
It can be that the SMTP relay server is configured to only allow certain IP ranges or addresses.
It can be that the firewall on the SP server does not allow for SMTP traffic (normally 25, for example for Exchange).
It can be that there is an Antivirus on the SP server(Client AV) that prohobits the Timer service to send email from this server. I have seen MacAfee do this. Needed an policy change.
If, its the builtin SMTP service you are using, check this link:
http://blog.sharepointrx.com/2010/11/18/setting-up-the-iis-smtp-server-for-sending-email-from-sharepoint-2010-on-server-2008-r2/
Check that and try again.
Regards
Thomas Balkeståhl - Technical Specialist - SharePoint -
http://blog.blksthl.com
Download the SharePoint Branding Project here
Download the SharePoint 2010 Site Settings Explained here -
Exception caught during processing mail message
I am getting the following error in CC monitoring for my sender mail adpater:
exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO The requested item could not be found.
Please tell me how to resolve ?NOw when i changed the protocol from IMap to POP3 the error is
exception caught during processing mail message[18]; com.sap.aii.af.mp.processor.ModuleProcessorException: Error during processing local bean: localejbs/AF_modules/MessageTransformBean caused by: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at AF_modules, the whole lookup name is localejbs/AF_modules/MessageTransformBean. -
When inserting pictures in a new mail message using the " photo browser" button I can view and select photos but the " choose " button is gone. What have I done wrong?
Hi Liz,
Sorry to hear you are having a similar problem. Last night I went to the tool bar at the top of iphoto, clicked on "File", then clicked "Browse Backups" in the drop down menu. I have an external hard drive that is set up to Time Machine. The Browse Backups opened the iphoto pages in the Time Machine. I selected a date one day ahead of the day I performed the now infamous update, and it showed my iphoto library as it had existed that day. I then clicked "Restore Library" at the bottom right corner of the Time Machine screen. Roughly 2 hours later my iphoto was back to normal. When I opened iphoto there was a message saying I need to upgrade my program to be compatible with the new version of iphoto(version 9.2.1). I clicked "Upgrade" and within seconds it had done whatever upgrading it needed to do.
The only glitch in the restoration was that it restored the library as it appeared last week, so I no longer had photos I had imported this past weekend. I simply went back to the Browse Backups in the drop down menu, when Time Machine opened I selected the page showing my pictures from this weekend and again said to Restore Library. Roughly 45 minutes later the library was restored including the most recent photos.
I am now a happy camper.
I don't know if any of this will be of help to you because your email says you are having trouble with photos imported after the upgrade was performed. Have you had any pop up notices when you first open iphoto, that tell you you need an upgrade to be compatible with the new iphoto? If so have you clicked "upgrade"?
Good luck Liz, if you have Time Machine running as a back up to your library, maybe you wil be able to get help there, by following my instructions above. Otherwise, good luck with your investigations. I'd be interested in hearing how you make out.
Karen
Maybe you are looking for
-
This workflow cannot be imported because it was created in SharePoint Designer for a different Site
Hello everyone. I am getting this error when attempting to move minor workflow changes from mirror SharePoint development / production environments and hoping someone can help me. "This workflow cannot be imported because it was created in SharePoin
-
Image Policy when I create a PDF file: warn and continue doesn't work
Hi! I need to create a PDF file with lots of images, and I need to know if any of that images is in low resolution (<300 ppi). I have tried to use the image policy in the PDF settings but it doesn't work, because if I choose "Warn and continue" (if t
-
I need help finishing my assignment
this is the program public class CableInstallationTestClass { public static void main(String[] args) { CableInstallationClass ci = new CableInstallationClass(); ci.setNumOutlets(1); double subTotal = ((ci.getNumOutlets() -1 ) * ci.getCostPerOu
-
Convert name value pair to flat structure in Biztalk mapper
Hi, I have an input xml file with name value pairs and have to access all the values in the same iteration to concatenate fname and lname and assign that to a fullname in the target schema. I am trying with logical eq functoid and value mapping flatt
-
How do i see what channels i am sending MIDI out from?. Basically I'm trying to update my Waldorf Blofeld and it looks like I'm sending data into Logic but it's not sending the update firmware back to the Blofeld? So i need to know if I'm sending on