Nice to see you have it workin now..

Bye,
Norman


2010/5/17 G. Sharon Yang <[email protected]>:
> I combined the code from those two links:
> http://cephas.net/blog/2006/06/09/using-apache-james-and-javamail-to-implement-variable-envelope-return-paths/
> http://www.ibm.com/developerworks/java/library/j-james1.html
>
> Here are the core parts:
> String verpFrom = .....
> Properties props = new Properties();
> props.put("mail.smtp.from", verpFrom);
>
> Somehow, I solved the problem by setting a global session object(there
> was a local session object in my original code), just like the session
> object in MailClient.java file in above link.
>
> Hope this helps.
>
> Sharon
>
> On Sun, May 16, 2010 at 10:55 AM, Norman Maurer <[email protected]> wrote:
>> Hi Sharon,
>>
>> how you set the return path ? Can you show us the code ?
>>
>> Bye,
>> Norman
>>
>> 2010/5/15 G. Sharon Yang <[email protected]>:
>>> Hello, all,
>>> I am stuck in this for more than one day... did lots of search and
>>> still haven't solved the problem. I hope to get help here.
>>>
>>> Does James mail server allow manually-set different 'return-path' for
>>> different emails?
>>> for example:
>>> sending email from mailtest to email1, the 'return-path' is set to:
>>> [email protected]
>>>
>>> sending email from mailtest to email2, the 'return-path' is set to:
>>> [email protected]
>>>
>>> the same thing for email3....
>>>
>>> Those envelops are set in Javamail ( by using mail.smtp.from) . I
>>> checked the logs in in javamail, all in correct values. However, when
>>> I check the actual emails, they all have the same 'return-path', in
>>> this case, [email protected]. And the value will be re-set
>>> only if I re-start tomcat server in my java server...
>>>
>>> weird.... and trying to figure out why...
>>>
>>> More background:
>>> I am trying to implement VERP, as descrbied
>>> here:http://cephas.net/blog/2006/06/09/using-apache-james-and-javamail-to-implement-variable-envelope-return-paths/
>>>
>>> I have javamail and other java-related stuff in one server, james
>>> server in another server. The emails were already sent/received
>>> successfully.
>>>
>>> Thanks,
>>>
>>> Sharon
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to