PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Insert a clickable link in an email
Insert a clickable link in an email
Started by Mimmo Ghiara, Jan., 02 2020 3:11 PM - 4 replies
Connect yourself…
Mimmo Ghiara
#1
Posted on January, 02 2020 - 3:11 PM
Hello everyone and happy new year,
I have to insert a link in an email so that the user receiving this email can click on the link that sends him back to the site.
I wrote this code
-------
MyMessage is Email
MyMessage..Sender = sMail_imvio
sRecipient_1 is string = users.email
Add (MyMessage..Recipient, sRecipient_1)
MyMessage..Subject = "Fast Ball - User registration confirmation"
sLinkatt is string = "<a href="+sLinkveri+"</a>"
sNote = "Dear" + users.userid + [CR]
sNote = sNote + "thank you for registering on the Fast Ball website" + [CR]
sNote sNote + = [CR]
sNote = sNote + "Copy the line you find below and copy it in a browser to activate your account"
sNote sNote + = [CR]
sNote sNote + = [CR]
sNote sNote = + sLinkatt
sNote sNote + = [CR]
sNote sNote + = [CR]
sNote sNote + = [CR]
sNote = sNote + "Greetings from Ludikproject"
MyMessage..HTML = TextToHTML (sNote)
IF NOT EmailSendMessage (MySession, MyMessage) THEN
IF ErrorOccurred = True THEN
// Full message of the main error
Trace (ErrorInfo ())
// Browse the sub-errors (if any)
FOR i = 1 _TO_ ErrorInfo (errNumberSubError)
// Full message of each sub-error
Trace ("Sub-error" + i + ":" + ErrorInfo (errMessage, i))
END
END
ELSE
// Info ("Mail sent successfully." + "Check your mailbox you should have received a" + "message with your password!")
END
// Error ("The mail could not be sent.", ErrorInfo (), ...
// "Check the parameters!")
EmailCloseSession (MySession)
-----
The email is sent correctly but where the link should be, the line with <a ref = etc remains and has not become a clickable link
Thanks for the tips
Mimmo
Report
0
0
Argus
#2
Posted on January, 02 2020 - 5:41 PM
you are doing a texttohtml of your message, but you already have html code in it (your link)
a texttohtml of html content will NOT give you html...
So replace your link by something like MYTAG, do the texttohtml, then replace MYTAG by your link in the result
Report
0
0
Mimmo Ghiara
#3
Posted on January, 03 2020 - 3:31 PM
I thank you for the suggestion that I applied and now the email arrives as I wanted
I submit you a problem with the connection to a MariaDB database which is similar to a MySql database
I downloaded the libmariadb.dll files and as indicated by the instructions I inserted this dll in the Programs / Framework / Win32x86 folder and one in Programs / Framework / Win64x86 but when I go to connect with the database I get an error 730001 as if it could not find the connector. I have tried other positions too but nothing always the same mistake. The strange thing is that if I use HFSQL Control Center I can connect with the same credentials that I insert in the code
Can you give me a solution
Thank you
Mimmo
Report
0
0
Argus
#4
Posted on January, 03 2020 - 4:37 PM
I could, but there is no need...
Fabrice Harari already answered that question here:
http://fabriceharari.com/UK/Page_Article.awp…
Report
0
0
Mimmo Ghiara
#5
Posted on January, 13 2020 - 3:32 PM
Thanks for the information, I understand where I was wrong
Mimmo
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text