Author |
|
samuel Newbie
Joined: 15 May 2014
Online Status: Offline Posts: 2
|
Posted: 15 May 2014 at 7:50pm | IP Logged
|
|
|
Hi all,
I am using "real sender" to send emails instead of From, and I want to test whether wrong TO email address can be returned back to ReturnPath. The code:
Smtp mailer = new Smtp();
mailer.SmtpServers.Add("InternalSMTP");
mailer.Message.From.Email = "aa@gmail.com";
mailer.Message.From.DisplayName = "aa GM";
mailer.Message.ReplyTo.Add("aa@163.com", "aa 163");
mailer.Message.To.Add("a@@235zi@hheu44iujhay43y.rr", "smG");//It is wrong address
mailer.Message.To.Add("bb@hotmail.com", "bbh");//It is right address
mailer.Message.Subject = "Test Mailbee";
mailer.Send("cc@hotmail.com", (string)null);
The result is:
(1)bb@hotmail.com received email, BUT
(2)cc@hotmail.com cannot receive email back although 'a@@235zi@hheu44iujhay43y.rr' is a wrong address.
Can someone give help?
Thanks
Sam
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 16 May 2014 at 2:13am | IP Logged
|
|
|
Do you receive bounce to ANY address? I.e. what kind of the problem do you have:
a) you never get a bounce for invalid address no matter from which address you send
or
b) you get bounce to aa@gmail.com but if you override it with cc@hotmail.com, you don't get it
If a, this has something to do with your SMTP server configuration - it simply does not return bounces.
If b, please note you cannot usually use From and real sender on different hosts. MailBee lets you do that but SMTP servers may not allow that sometimes (because it's used by spammers - email gets sent from address/host which has nothing to do with what is in From). For that, I'd try to set real sender as "some other address on gmail.com" when From is also on gmail.com.
Regards,
Alex
|
Back to Top |
|
|