Lunarpages Web Hosting Forum

Author Topic: Problem sending emails from asp.net application  (Read 5468 times)

Offline Dasher

  • Newbie
  • *
  • Posts: 4
Problem sending emails from asp.net application
« on: January 21, 2010, 03:03:07 AM »
Hi

This all works everywhere except LunarPages   
 
MailMessage m;
    m = new MailMessage();
    m.To=TextBox1.Text;
    m.From = "support@Getmail.com.au";
    m.Body = "Your password is "+sd.Password ;
    m.BodyFormat = MailFormat.Text;
    m.Subject = "Wine Show Password";
 
// new line here

    SmtpMail.Send(m);
    StatusLabel.Visible=true;
    showError("Please check your email for your password.");
 
 
This line i have added at "new line here"
    SmtpMail.SmtpServer="australianwineshows.com";
and many variations
    SmtpMail.SmtpServer="smtp.australianwineshows.com";
SmtpMail.SmtpServer="mail.australianwineshows.com";
SmtpMail.SmtpServer="smtp.on2outsourcing.com";
 
 
etc
none work

Any suggestions on how we can send emails on LunarPages Windows shared hosting would be most appreciated.

Offline Dasher

  • Newbie
  • *
  • Posts: 4
Re: Problem sending emails from asp.net application
« Reply #1 on: January 28, 2010, 01:26:52 AM »
Thanks to Troy from LunarPages support we were able to resolve this issue.

After a long email trail involving multiple support staff Troy suggested that instead of  using "localhost"  we should try using " http://sm-mail.lunarbreeze.com:9998/ "  or " sm-mail.lunarbreeze.com "

That worked. Thanks a lot Troy.

Offline Mitch

  • Berserker Poster
  • *****
  • Posts: 12634
    • MitchKeeler.com
Re: Problem sending emails from asp.net application
« Reply #2 on: January 28, 2010, 04:47:37 AM »
Happy to hear Troy got you taken care of.  :thumb:
New to Web Site Hosting? Check Out the Lunarpages Blog Hosting Guide!


Follow us @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!