Hi
I am developing module when you can send in e-mail some document after click on it. So, to do this I use DotNetNuke.Services.Mail.Mail.SendMail. I have configured smtp on my localhost portal to check if everythings work. And I see that there is a strange think, if I use:
DotNetNuke.Services.Mail.Mail.SendMail("", "userInputAdress@gmail.com", "", "title", "body", "", "", "", "", "", ""); nothing happends
but if I use
DotNetNuke.Services.Mail.Mail.SendMail("aa@bb", "userInputAdress@gmail.com", "", "title", "body", "", "", "", "", "", ""); - literally aa@bb
mail is send correctly, and in field 'from' there is adress which I set in smtp settings.
And my question is: can I left it in such way (may be that is some bug of DNN) or should I get in some way correct e-mail adress of the portal (set in smtp setting) and use it instead of aa@bb? And if so how to do it?
OK, now I know what is going on - this adress (aa@bb) is needed because there is option to answer for this mail so I think that now it is quite obvious. But I have another question - how can I add two attachments (I mean of course two paths) to one e-mail?