how to send an email via blueprint

Hi, i would like to know if is possible to send an email using blueprint. We are creating a virtual catalog and we need to know if is possible to send an email with the info of the product to an email using Blueprint.

Best regards,

Mauricio Espin

No, that is not possible and will most likely not be possible at any time in the future because for emails you rely on external ressources (SMTP servers etc.).

It’s not possible for the UE Client to send emails, but I think you could communicate with a Server, which then sends the Email. Alternativly you can use the Webbrowser-widget to show your Website, send all Attributes to it (I have literally no Idea how to achieve this, but I know that with some php- and javascriptmagic it’s possible) and proceed from this point.

Fragment7’s idea should actually work out quite well,

if you want to do it all ingame and BP only, you could try to use the webbrowser widget. Make it something like 1x1px and load your website with Get Parameters appended, so you can fetch them with PHP, sanitize it and then create and send the mail with php from your Server.

I didn’t test it, but it seems the load string node could actually be the one to send custom Data to an url. If not you can still just append the Data to the URL and use load url node.

This would look something like this:

On Send Mail, you create the Webbrowser Widget. You got the Data you want to send as Strings and then append it to your URL.

As an example you’d have www.yourSiteOrWhatever.com as your site, yourPHPScript.php as the file that will handle the sanitizing and sending and topic + text as parameters.

The URL would then be: www.yourSiteOrWhatever.com/yourPHPScript.php?topic=SomeTopicAsString?text=SomeTextTheUserWrote

Now you open this URL inside the webbrowser Widget and fetch the Data with your PHP script, which will then send the mail from your Server.

Inside php you can get the Values with GET’topic’] and GET’text’].

After that you can destroy the webbrowser widget and handle the whole mail thing inside PHP.

I didn’t test it, but as you can supply any URL you want to the Node, I don’t see any reason it shouldn’t work. The PHP side of this definitely does work.

Regards Michael

1 Like

Thanks a lot for all you ansers, i will try to do it with the URL and the PHP server and let you know if it work and how to do it

Did you get it to work?

Hey @elmauro81, how did you go… I’ve got to do pretty much the same thing. How did you do it? It would be greatly appreciated!
Cheers.

Hi! I’m planning to make a “bug report” form inside game. And it should send me as e-mail. Is this possible?

Since there are no free plugins, I suggest to trying Email plugin or EasyEmail on UE Marketplace
or free plugin, called VaRest but it may be very harder