Send email to user that are not registered

Topics: General
Nov 20, 2011 at 12:18 PM

Hi,

In my site I want to send email through IMessageManager to an email of a user that is not registered. The goal is to create a module for invite user where a user write some email in a text box and click send button and send a precompiled email.

Now the interface of MessageManager is: 

void Send(ContentItemRecord recipient, string type, string service, Dictionary properties = null);

that requires a ContentItemRecord. There is a way to send email without create a ContetItemRecord but only with calling the send method of MessageManager with a list<string> of email?

 

Thank to all

 

Coordinator
Dec 9, 2011 at 3:01 AM

That is now fixed in the 1.x branch. You can give a list of e-mails instead.

Dec 9, 2011 at 8:36 AM

I'm using Orchard 1.3.9. 1.x branch refers to the next version?

Coordinator
Dec 9, 2011 at 8:37 AM

Yes.

Dec 9, 2011 at 11:02 AM
Edited Dec 9, 2011 at 11:05 AM

But now the challenge email when user registers it's not sent. I'm using the same email settings with the new 1.x branch and the 1.3.9 stable release and the 1.3.9 stable release sends the email.

Coordinator
Dec 9, 2011 at 6:58 PM

We'll look into it thanks. Can you please file a bug for it so we can track it properly?

Coordinator
Jan 6, 2012 at 12:53 AM

I filed this to track the issue: http://orchard.codeplex.com/workitem/18330