login about faq

Ok, so I have this code:

//  Set the SMTP server.
mailman.put_SmtpHost("smtp.live.com");

//  Set the SMTP login/password (if required)
mailman.put_SmtpUsername("xxx");
mailman.put_SmtpPassword("yyy");

//  Connect to SMTP port 465 using TLS.
mailman.put_SmtpSsl(true);
mailman.put_SmtpPort(25);

But, my account uses email aliases. So, I do this:

//  Create a new email object
CkEmail email;

email.put_Subject("Monthly workbook data");
email.put_Body("Please find attached the latest monthly workbook data.");
email.put_From("Andrew Truckle <ccc>");
success = email.AddTo("PTS Support", "ddd");
//  To add more recipients, call AddTo, AddCC, or AddBcc once per recipient.

The email sends through OK. But when I hit reply, it is going to xxx. It has not honoured the alias ccc I had specified. Why is this?

asked Jul 18 at 12:29

Andrew's gravatar image

Andrew
215612


I believe this is handled by Hotmail. It sees you connected via "xxx" but trying to send from "ccc" and it denies relay. Maybe using ReplyTo method could help you on this? Refer the doc.

Update: You should also note that, Aliases is specific features for Hotmail. They are not part of any SMTP Standards. Either login via "ccc" or use "reply_to".

Update 2:

Beware that, Hotmail also allows you to login (SmtpUsername) via aliases. This may also help you on this.

link

answered Jul 19 at 09:07

gencer's gravatar image

gencer
162

edited Jul 19 at 09:09

Thanks. Using ReplyTo did the trick.

(Jul 19 at 09:43) Andrew
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×17

Asked: Jul 18 at 12:29

Seen: 253 times

Last updated: Jul 19 at 09:43

powered by OSQA