View Full Version : Send email using asp.netdiscount smpt account
chris1
11-25-2008, 08:43 AM
I have a web service with a sendmail function i have written. This works perfectly when i use an external ISP smtp account but if i use my asp.netdiscount smtp account, i get a 'failure sending mail' exception. I contacted tech support who said i should use 'localhost' as the server and dont provide login/password.
In my code i disable the credentials part, (im just using .net classes) but the sendmail command still produces
the error message above. It seems as if it needs a login/password mandatory.
As i say, if i use a smtp account with a login/password all is fine.
Technical support cant help any further and suggested i post this.
Many thanks for any help
Chris Anderson
bruce
11-28-2008, 06:43 AM
Let me make sure i understand. Is the web service (the app that sends mail) housed on our web server or your own computer?
What was the exact error message are you getting?
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
chris1
11-29-2008, 01:32 AM
Bruce
Thanks for your reply. Yes, its hosted on your system.
The error is 'failure sending mail' which is an exception to the command .send using the .net mail stuff
Thanks
Chris
bruce
12-01-2008, 09:34 AM
if the app is on our server, setting the smtp host to "localhost" should fix the problem.
See this sample code, http://kb.discountasp.net/article.aspx?id=10443
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
chris1
12-01-2008, 10:08 AM
Bruce,
As mentioned in my first mail on this, i have set to localhost, it is on your servers
and it still does not work
I have already used the sample code you provide the link for
Can you please try tpo replicate the problem
Regards
Chris Anderson
if the app is on our server, setting the smtp host to "localhost" should fix the problem.
See this sample code, http://kb.discountasp.net/article.aspx?id=10443
Bruce
bruce
12-02-2008, 02:31 AM
if this code doesn't work, i recommend creating a support ticket.
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
bruce
12-02-2008, 06:50 AM
i would create a ticket and tell support that the test code doesn't work.
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
chris1
12-02-2008, 10:46 AM
Bruce,
Thanks for your reply
I did that before i posted here. Tech support said they couldnt help further as it was a code issue (which i dont agree with as such)and suggested i post here !!
full circle !!
Are you in tech support ? i could create a new ticket if someone can help
Chris Anderson
vBulletin® ©Jelsoft Enterprises Ltd.