How to send messages to "incorrect" email addresses?
Hi everyone
I hope, I'm not repeating a topic that was discussed before...
My problem:
I need to send emails to a email to facs gateway to have them delivered to the recipient by facs. The sytax for the gateway (product name Faxination) is
[fax:username@faxnumber] or
[fax:faxnumber]
and will be parsed by the facs gateway.
Of course, such email addresses are illegal in terms of RFC822 and thus cannot be parsed correctly into InternetAddress objects.
To ommit the parsing of the address, I subclassed javax.mail.internet.InternetAddress to be able to access the protected member directly to inject my addresses into a derived object of InternetAddress. So far, everything worked, but unfortunately the Transport.send() method checks all recipients by calling the static method InternetAddress.parse(String) on them for reasons I cannot really follow...
The problem is: subclassing is inadequate here because I cannot override static methods.
I would have been nice from the designers of JavaMail and the standard mail provider from Sun to allow a user to reasonably subclass InternetAddress to provide the means to allow illegal addresses to be handled without checking them first.
Does anyone know a solution to that problem?
Any hint is appreciated.
Daniel
Reading through the JavaDoc for JavaMail 1.3 I found the following constructor for InternetAddress.
InternetAddress
public InternetAddress(java.lang.String address,boolean strict)
throws AddressExceptionParse the given string and create an InternetAddress.
If strict is false, the detailed syntax of the address isn't checked.
Parameters:
address - the address in RFC822 format
strict - enforce RFC822 syntax
Throws:AddressException - if the parse failed
Since: JavaMail 1.3
http://java.sun.com/products/javamail/1.3/docs/javadocs/javax/mail/internet/InternetAddress.html
Similar Messages
-
How do I delete a incorrect email address I typed in a sent email from the suggested email address list when I start typing again?
You can't. There is no way to eliminate those remembered addresses in the mail app. Eventually if you keep ignoring that address it will go away, but it can take some time before it disappears. The only way that you can eliminate now, is by restoring the iPad to factory settings and that's pretty radical just to get rid of a mistyped email address - IMO anyway.
-
I am trying t send a photo in iPhoto11 and cannot because the "From" box has the incorrect email address. I tried to click on the "From" box but it won't budge. How can I correct the incorrect email address?
set up your account in the iPhoto preferences ==> accounts - delete the incorrect one there too
LN -
I have three iPads and one iPod and one iPhone. How can I message between them without sending the message to all of them. You send the message to your email address but all of them are set up under one account.
You can have a different receiving email in the Messages app on each device : Settings > Messages > Receive At . I'm not sure that there is a different way to have the message only go to one device.
-
How can I fake my FROM email address to look like I'm sending it from work?
I want to not have to log into my work webmail everyday and I want to just use MobileMe. I have all my work mail forwarded to MobileMe. The problem is that I don't want to ever have to log into work mail to send a message. How can I fake my from email address to look like I'm sending it from work?
You can't do that with MobileMe. MobileMe's mail servers will only accept senders from their own domains (@mac.com and @me.com). No other senders, not even from configured personal domains, will be accepted.
You will either have to use your companies SMTP server or, if not public available, your companies webmail. -
My phone is sending my text messages from my email address, not from my phone number. How do I fix this?
what if I only can choose the email address which I can delete and I also have an out of states number because I used my phone back home and now Im back in the states and I cannot get it back to my US cell number its just set at my email and I want to change it...HELP!
-
HT3529 Question regarding sending a text message to an email address
I have an Iphone #G. I am using Tmobile service on it. If I send a message (in my text messages, not email account) to an email address, it looks like a text message when I send it but their reply, looks like an email to me ([email protected]), and it always includes my original message with their reply.
How can I make my messages that come to my email ([email protected]) resemble a text message like they do when I send the message to an email account. Is this a setting that can be adjusted?
Thanks!Can't send a text message to their phone number. They don't have texting - they only do emails. So I have to send my message to their email address.
-
After I updated to iOS 7, my iCloud account is showing the incorrect email address for my Apple ID but will not allow me to change it- it's gray and I can't click on it. How do I fix this?
If you change your email, you do not need to "change" your AppleID. Just edit your email(s) on your Apple ID by logging in to your AppleID account. You should always use the same AppleID for Apple Services (iCloud, iTunes etc) and multiple ID will cause problems and confusion in the future.
You can manage your Apple ID here:
https://appleid.apple.com -
Trying to d/l Kindle and Amazon aps to new iPad w/Retina Display. User ID is pre-populated with the incorrect email address for my Apple account. How can I change this to my correct Apple User ID?
You should setup as new.
Settings>General>Reset>Erase all content and settings -
How do I forward a series of text messages to an email address?
How can I copy and paste a whole text conversation such that I can send it to an email address?
Use screen shots, or a third-party app. Touch Copy has been mentioned in this forum as a good one.
-
I have used an incorrect email address for my Apple ID when I punched an App. Cannot get updates. How do I delete and use my primary account email address?
Delete and redownload that application when signed into the correct Apple ID. This may require repurchasing it.
(127051) -
I HAVE SET UP AN INCORRECT EMAIL ADDRESS. The call centre set up a new email address as the Username. I am unable to access the new account because the default on my phone is the email that is incorrect. How do I get the correct email as default??
Thank you for your help, much appreciated
Regards
Geoff -
I do not know my security question answers. I send my answers send to my old email address but I cannot get into that anymore. How do I send my email to the email address I have now?
Hi RileyDP,
You will have to contact iTunes Support to get them reset:
http://support.apple.com/kb/HT5699?viewlocale=en_US
or by email:
https://ssl.apple.com/emea/support/itunes/contact.html
Cheers,
GB -
My iphone is sending message from my email and not my number. how do i change this?
My IPhone is sending messages from my email and not my number. how do i change this?
Thankyouis something which imessage does to safe you money so when you send an sms while having a internet connection it send it across the Internet because thats free vs. a sms which cost pr send sms
-
All password resets go to an incorrect email address, how do I change this?
All password resets go to an incorrect email address, how do I change this?
Hi Sampower24,
I apologize, I'm a bit unclear on your issue. If you are talking about resetting the password on your Apple ID, you may find the following article helpful:
Apple ID: If you forget your password
http://support.apple.com/kb/ht5787
Regards,
- Brenden
Maybe you are looking for
-
Well 1 to 2 years later I have the exact same problem described by the posters with my OfficeJet 4020. My black printing started to deteriorate as the cartridge went empty, put in the same HP cartridges I have been buying at Costco since I bought th
-
I receive pdf documents created by Oracle pdf creator and the Adobe Reader version 2.5 supplied with the Treo Pro opens blank pages. If I open them on my pc and resave them using Adobe Acrobat Pro then transfer them back to the Treo Pro I can view th
-
After upgrading my iPad it will not print to wireless printer?
I was printing to a wireless hp printer no problem. After upgrading iPad to os5 can't print? The hp printer is a supported model??
-
Adobe reader not working. Can anybody help?
I am using a Nokia E63 device. Adobe Reader came preloaded in the device. I recently formatted my phone and when i backed it up, my pdf files won't open. Whenever i try to open any pdf file it says 'unable to open file!'. I tried accessing the Adobe
-
Attachments help - C# using Obect API
I'm in my first attempt at integrating GW functionality into a C# application. I am not an expert C# programmer either. Thus far I've been successful at getting logged into GW, creating a new mail message and sending it successfully. However adding c