Sending mail via utolisp that includes both subject and body

Sending mail via utolisp that includes both subject and body

jakob_holmquist
Enthusiast Enthusiast
781 Views
8 Replies
Message 1 of 9

Sending mail via utolisp that includes both subject and body

jakob_holmquist
Enthusiast
Enthusiast

 In this website it shows how to create a mail to a specific mail that includes but a subject and a body in the email by using HTML, and it works perfectly. When using basically the same code in autocad like this:

(command "start" "mailto:test@example.com?subject=TestSubject&body=TestBody!")

a mail is created with the correct receiver, correct subject, but the body is empty.

 

If I reverse the order of body and subject in the command like this

(command "start" "mailto:test@example.com?body=TestBody!&subject=TestSubject!")

then the body is included, but not the subject.

How can I include both subject and body at the same time?

 

I have searched for this and found solutions using visual lisp, but all those force the mail to be either closed or sent before you can do anything with either outlook or AutoCAD, and I want to avoid that functionality. If there is a way to make the visual lisp solution to not hijack both AutoCAD and Outlook that would work also.



0 Likes
Accepted solutions (1)
782 Views
8 Replies
Replies (8)
Message 2 of 9

paullimapa
Mentor
Mentor
Accepted solution

https://superuser.com/questions/914365/mailto-command-line-not-able-to-set-additional-parameters

(command "start" "mailto:test@example.com?subject=TestSubject^&body=TestBody!")

Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 9

paullimapa
Mentor
Mentor

**modified**

and for spaces use %20:

(command "start" "mailto:test@example.com?subject=Test%20Subject^&body=Test%20Body!")

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 4 of 9

john.uhden
Mentor
Mentor

@paullimapa ,

Might there be any way to do that using Gmail?

John F. Uhden

0 Likes
Message 5 of 9

paullimapa
Mentor
Mentor

If your default email client app is configured to send/receive email with your gmail account then yes. 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 6 of 9

john.uhden
Mentor
Mentor

@paullimapa ,

Thanks.  I'll have to figure out how to do that.

John F. Uhden

0 Likes
Message 7 of 9

paullimapa
Mentor
Mentor

For example, I use Outlook as my desktop default email client.

Then I follow these instructions to setup my Outlook to connect to my gmail:

https://support.microsoft.com/en-us/office/set-up-gmail-accounts-46274497-95ea-4a7d-9651-d246aa63eb5...

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 8 of 9

jakob_holmquist
Enthusiast
Enthusiast

Thank you, this was exactly what I was looking for! 🙂

0 Likes
Message 9 of 9

paullimapa
Mentor
Mentor

Glad to have helped…cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos