View previous topic :: View next topic |
Author |
Message |
Dave R
Joined: 05 Apr 2009 Posts: 9
|
Posted: Wed Nov 25, 2009 11:21 pm Post subject: SMTP server issue |
|
|
I have created an IpnSettings.xml file that allows me to use the Infralution IPN Test Tool to order items using the local development server. This settings file uses the smtp server associated with my godaddy hosted account along with some e-mail accounts that I created for the purpose of "purchase From" and "Notification From" e-mails. This works as I expected with the following configuration:
<MailServer>smtpout.secureserver.net</MailServer>
<SmtpUserName>sales@MyDomain.com</SmtpUserName>
<SmtpPassword>pwd here</SmtpPassword>
<SmtpPort>25</SmtpPort>
.
.
<PurchaseFromEmail>sales@MyDomain.com</PurchaseFromEmail>
<NotificationFromEmail>admin@MyDomain.com</NotificationFromEmail>
When I move this to the godaddy site for MyDomain.com and leave out the <SmtpUserName> and <SmtpPassword> tags out it fails with the message (in the trace):
Unhandled Exception: SmtpException
Message: Failure sending mail.
Stack Trace:
at System.Net.Mail.SmtpClient.Send(MailMessage message)
which appears after both of the calls to SendEmail.
I have also tried to use the <SmtpUserName> tag with and without the
<SmtpPassword> tag. I am surprised that I can use godaddy's smtp server away from the site but not at the site. I am using recent versions of ILS (4.5.1.0) and IPN.NET(2.2.1.0 on the test tool).
I can't figure this one out. Any help will be appreciated.
Thanks. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Nov 25, 2009 11:47 pm Post subject: |
|
|
The email SMTP server that your website should use is not usually the same as the SMTP server that you use remotely. Normally you would have to consult your web hosts documentation to find out the required SMTP settings - however I can tell you that for Godaddy the correct settings are:
Code: |
<MailServer>relay-hosting.secureserver.net</MailServer>
<SmtpUserName></SmtpUserName>
<SmtpPassword></SmtpPassword>
<SmtpPort>25</SmtpPort>
<SmtpUseSSL>false</SmtpUseSSL> |
_________________ Infralution Support |
|
Back to top |
|
|
Dave R
Joined: 05 Apr 2009 Posts: 9
|
Posted: Thu Nov 26, 2009 12:56 am Post subject: |
|
|
Thank you for the quick reply. Your answer was exactly right. |
|
Back to top |
|
|
|