• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Properties for ERJavaMail - Unknown SMTP host: smtp;
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Properties for ERJavaMail - Unknown SMTP host: smtp;


  • Subject: Re: Properties for ERJavaMail - Unknown SMTP host: smtp;
  • From: Jesse Tayler <email@hidden>
  • Date: Wed, 15 Dec 2010 16:56:54 -0500

ok, I can see the properties print out during launch as a logging default too, and they look as I'd expect both ways.

 er.javamail.smtpHost=oeinc.com
 mail.smtp.host=oeinc.com

I even printed out the setting during the direct action that I use to send the test email and it was fine

if I set the application's SMTP host using setSMTPHost(), it does deliver the email, but it doesn't read the properties.

I just wrote a few quick lines to test ermail, so I must be getting something wrong eh?


        EmailNotification emailBody = (EmailNotification)WOApplication.application().pageWithName("EmailNotification", ERXWOContext.newContext());
        String email = "email@hidden";
        WOMailDelivery.sharedInstance().composeComponentEmail("email@hidden", new NSArray(email), null, "Welcome, thanks for joining.", emailBody, true);

	NSLog.debug.appendln("Sending Welcome to " + email);

	System.err.println(ERXProperties.stringForKey("mail.smtp.host"));




On Dec 15, 2010, at 4:35 PM, Farrukh Ijaz wrote:

> @Override
> public void didFinishLaunching() {
> 	super.didFinishLaunching();
> 	System.err.println(ERXProperties.stringForKey("mail.smtp.host"));
> }
>
>
> On 2010-12-16, at 12:30 AM, Jesse Tayler wrote:
>
>> well, I can set the application's setSMTPHost() method at launch which will point to the server, but still doesn't seem to read the properties where I ask for authentication etc.
>>
>> I can see the properties file is being used by some packages, so I wonder why these rules don't seem to want to stick.
>>
>> I don't know how to print out those properties at launch as you suggest, but maybe it's a good idea to figure. Do you know a method call that reports what the app is using for properties?
>>
>>
>> On Dec 15, 2010, at 4:09 PM, Farrukh Ijaz wrote:
>>
>>> We don't use er.javamail.smtpHost property and it works for us.
>>>
>>> nslookup resolves both oeinc.com and mail.oeinc.com with same IP and telnet on port 25 is working.
>>>
>>> Try log the properties in your applications' didFinishLaunching() method and inspect what are the values. (You can also look at the console as it spits complete properties list).
>>>
>>> Farrukh
>>>
>>> On 2010-12-15, at 11:56 PM, Jesse Tayler wrote:
>>>
>>>> hmm -- good idea, I was not aware of those
>>>>
>>>> however, I get the same error even after listing my host and port 25 I think, same error anyway
>>>>
>>>> checking around on example apps, I see similar configurations, but all to fake domains of course.
>>>>
>>>> sure seems simple enough, if I'm interpreting the error correctly anyway --
>>>>
>>>> On Dec 15, 2010, at 3:47 PM, Farrukh Ijaz wrote:
>>>>
>>>>> Dis you try setting following properties as well?
>>>>>
>>>>> mail.smtp.host
>>>>> mail.smtp.port
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list      (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Properties for ERJavaMail - Unknown SMTP host: smtp;
      • From: Farrukh Ijaz <email@hidden>
References: 
 >Properties for ERJavaMail - Unknown SMTP host: smtp; (From: Jesse Tayler <email@hidden>)
 >Re: Properties for ERJavaMail - Unknown SMTP host: smtp; (From: Paul D Yu <email@hidden>)
 >Re: Properties for ERJavaMail - Unknown SMTP host: smtp; (From: Jesse Tayler <email@hidden>)
 >Re: Properties for ERJavaMail - Unknown SMTP host: smtp; (From: Farrukh Ijaz <email@hidden>)
 >Re: Properties for ERJavaMail - Unknown SMTP host: smtp; (From: Jesse Tayler <email@hidden>)
 >Re: Properties for ERJavaMail - Unknown SMTP host: smtp; (From: Farrukh Ijaz <email@hidden>)
 >Re: Properties for ERJavaMail - Unknown SMTP host: smtp; (From: Jesse Tayler <email@hidden>)
 >Re: Properties for ERJavaMail - Unknown SMTP host: smtp; (From: Farrukh Ijaz <email@hidden>)

  • Prev by Date: Re: Quick ERXEnterpriseObject newly inserted Question --
  • Next by Date: Re: Properties for ERJavaMail - Unknown SMTP host: smtp;
  • Previous by thread: Re: Properties for ERJavaMail - Unknown SMTP host: smtp;
  • Next by thread: Re: Properties for ERJavaMail - Unknown SMTP host: smtp;
  • Index(es):
    • Date
    • Thread