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 protected]";
WOMailDelivery.sharedInstance().composeComponentEmail("[email protected]", 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 protected])
>>>> Help/Unsubscribe/Update your Subscription:
>>>> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
>>>>
>>>> This email sent to [email protected]
>>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
>>
>> This email sent to [email protected]
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]