SMTPSendMail and Links with Spaces In Them
Moderators: Dorian (MJT support), JRL
SMTPSendMail and Links with Spaces In Them
I am sending an email using SMTPSendMail and have a link included in the body, however the link has spaces in it so when the email gets sent, the link doesn't work properly. Is there some way to force Macro Scheduler to interpret the entire link properly?
Thanks,
Josh
Josh
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Do you mean web links? URLs?
You might need to URL encode your links. A space is %20.
So you could do:
Or better to URL encode it:
You might need to URL encode your links. A space is %20.
So you could do:
Code: Select all
StringReplace>URL,SPACE,%20,URL
Code: Select all
Let>url=http://www.boo.bla?spaces are evil
VBEval>Escape("%url%"),url
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?