Skip to content

Change Email Message #206

Locked Answered by mobizt
Lnt3gr4 asked this question in Q&A
Nov 10, 2022 · 6 comments · 5 replies
Discussion options

You must be logged in to vote

You can assign Arduino String, string literal, const char* or char array to all options and config that accept string included the SMTP_Message class options like this.

SMTP_Message message;

message.text.content = String("This is simple plain text message");

message.text.content = String("This is ") + "simple plain text message";

const char *msg = "This is simple plain text message";

message.text.content = msg;

char text[34] ="This is simple plain text message";

message.text.content = text;

And you also can assign the html message part with

message.html.content = "<p>some html text message</p>"

message.html.content = String("<div>my html message</div>");

Make sure you understand ab…

Replies: 6 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@Lnt3gr4
Comment options

Answer selected by Lnt3gr4
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Lnt3gr4
Comment options

Comment options

You must be logged in to vote
3 replies
@mobizt
Comment options

@Lnt3gr4
Comment options

@mobizt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants