SendMail Problem

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
1/22/2010 9:34:11 AM
Gravatar
Total Posts 14

Re: SendMail Problem

Joe,

 

yes of course.

It's sending now from the list but only with DotNetOpenMail.

I have changed the email.cs from mojoPortal.Net.

The following I don't understand, i have disbaled it and it's working now with DotNetOpenMail.

// DotNetOpenMail doesn't support replyto
if (replyTo.Length > 0)

The same problem was in version 2.3.3.2, 2.3.3.4 and 2.3.3.4b

All I tried it was not working with System.Net.Mail

br,

Michael
 

1/22/2010 9:38:28 AM
Gravatar
Total Posts 14

Re: SendMail Problem

Joe,

can it be a problem of the SMTP authentication?

I'm working without. In our Datacenter we can use it from internal without authentication.

br,

Michael

1/22/2010 10:03:54 AM
Gravatar
Total Posts 18439

Re: SendMail Problem

Hi Michael,

Currently the code is like this line 633 in Email.cs:

if (smtpSettings.RequiresAuthentication)
                {
                    NetworkCredential smtpCredential
                        = new NetworkCredential(
                            smtpSettings.User,
                            smtpSettings.Password);

                    smtpClient.Credentials = smtpCredential;
                }

can you try add

else
{
  smtpClient.UseDefaultCredentials = true;
}

and see if that solves the problem?

Hope it helps,

Joe

1/22/2010 10:37:16 AM
Gravatar
Total Posts 14

Re: SendMail Problem

Hi Joe,

 

yes is working now.

With my changes and your changes I can sending letters from the list with System.Net.Mail and DotNetOpenMail.

 

Thanks a lot for your support,

Michael

You must sign in to post in the forums. This thread is closed to new posts.