Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Mar 2008
how to tweak sendmail to send email without having proper domain name?
DAEMON_OPTION is 127.0.0.1
SMART_HOST is smtp of my isp
MASQUERADE AS ('isp's domain')
Please tell me how is it possible to send email from my linux server to hotmail and other without having valid domain. I even tried my dsl router public IP addres instead of domain name but it still does not go through to hotmail.
Please somebody advise, I need this done quick as possible.
- Join Date
- Apr 2009
it's simple using MX records of destination SMPT server
Download dll from.
//Now prepare your message.
MailMessage mail = new MailMessage();
mail.From = new MailAddress("firstname.lastname@example.org");
mail.Subject = "Send email without SMTP server";
mail.Body = "Yep, its workin!!!!";
string domain = mail.To.Address.Substring(mail.To.Address.IndexOf('@') + 1);
//To Do :need to check for MX record existance before you send. Left intentionally for you.
string mxRecord = SendSMTP.DnsLookUp.GetMXRecords(domain);
SmtpClient client = new SmtpClient(mxRecord);
Go to dvgoswami.googlepages.com for complete details.
Do not use Dll provided for commercial use.
it should be used for only testing purpose.
D V Bava