Author |
|
juris Groupie
Joined: 27 June 2011 Location: Italy
Online Status: Offline Posts: 72
|
Posted: 25 April 2015 at 12:14pm | IP Logged
|
|
|
Hello,
Can I send a single email to multiple recipients but with a different subject for each recipient ?
Example:
// Set e-mail
mailer.Message.From = new EmailAddress("joe@company.com", "Joe T.");
mailer.Message.To.Add("jane@domain.com", "Jane D.");
mailer.Message.To.Add("mike@domain.com", "Mike R.");
mailer.Message.To.Add("john@domain.com", "John V.");
mailer.Message.To.Add("karl@domain.com", "Karl J.");
mailer.Message.Subject = "Message for jane";
mailer.Message.Subject = "Message for mike";
mailer.Message.Subject = "Message for john";
mailer.Message.Subject = "Message for karl";
mailer.Message.BodyPlainText = "plain-text message";
mailer.Message.Attachments.Add(@"C:\Docs\document1.doc");
Note: I need the email is unique (with different subject). Is there a way to do this?
Regards, Lello
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 27 April 2015 at 3:45am | IP Logged
|
|
|
While that can be done within a single session, you would need to call Send several times, adjusting email content (e.g. changing subject) for the particular recipient. You can find a sample of this here.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
juris Groupie
Joined: 27 June 2011 Location: Italy
Online Status: Offline Posts: 72
|
Posted: 27 April 2015 at 9:15pm | IP Logged
|
|
|
Hello Igor,
Not multiple single email, but single emails with different "subject" for each recipient (see example). I can do this with your library?
Regards, Lello
|
Back to Top |
|
|
juris Groupie
Joined: 27 June 2011 Location: Italy
Online Status: Offline Posts: 72
|
Posted: 27 April 2015 at 11:53pm | IP Logged
|
|
|
Hello Igor,
Not multiple single email, but single emails with different "subject" for each recipient (see example below). I can do this with your library?
mailer.Message.From = new EmailAddress("joe@company.com", "Joe T.");
mailer.Message.To.AsString = "jane@domain.com, mike@domain.com, john@domain.com";
mailer.Message.Subject = "Message for jane";
mailer.Message.Subject = "Message for mike";
mailer.Message.Subject = "Message for john";
mailer.Message.BodyPlainText = "plain-text message";
mailer.Message.Attachments.Add(@"C:\Docs\document1.doc");
// Send unique e-mail.
mailer.Send();
Note: I need the email is unique (with different subject). I can do this with your library?
Regards, Lello
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 28 April 2015 at 2:46am | IP Logged
|
|
|
No, that's not possible - and I don't mean it's a limitation of MailBee, SMTP protocol itself doesn't allow that.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
long123 Newbie
Joined: 08 July 2015 Location: Armenia
Online Status: Offline Posts: 5
|
Posted: 19 July 2015 at 11:52pm | IP Logged
|
|
|
This even applies to those situations when all appears to be going well
|
Back to Top |
|
|