Page 1 of 1

email with subject

Posted: 27 Jun 2010, 10:23
by wijo
phpBB3.06

Can someone make me a bbcode for email with subject already filled in. So, when clicked on the link, the subjectline in the email is already filled in.

Tia.

Re: email with subject

Posted: 27 Jun 2010, 13:23
by cisco007
I am not sure if this has anything to do with a bbcode!

Re: email with subject

Posted: 27 Jun 2010, 14:11
by KukY13
Try this:
BBCode:

Code: Select all

[email={EMAIL},{TEXT1},{TEXT2}][/email]
HTML Replacement:

Code: Select all

<a href="mailto:{EMAIL}?Subject={TEXT1}&Body={TEXT2}">{EMAIL}</a>
Help Line:

Code: Select all

[email=e-mail adress,subject,body][/email]
Not sure will it work, though.

Re: email with subject

Posted: 27 Jun 2010, 14:30
by cisco007
try it let us know if it worked!

Re: email with subject

Posted: 27 Jun 2010, 19:25
by wijo
Thanks, it worked. Great!!
Only, i can't get a description (ex: click here to mail me) in it now. Can you help me with that too?

Tia

Re: email with subject

Posted: 28 Jun 2010, 11:23
by KukY13
Sure. Just add another token. Like this:

BBCode:

Code: Select all

[email={EMAIL},{TEXT1},{TEXT2}]{TEXT3}[/email]
HTML Replacement:

Code: Select all

<a href="mailto:{EMAIL}?Subject={TEXT1}&Body={TEXT2}">{TEXT3}</a>
Help Line:

Code: Select all

[email=e-mail adress,subject,body]viewed message[/email]

Re: email with subject

Posted: 28 Jun 2010, 11:36
by wijo
Great! It works :thumb: Thank you very much.

Re: email with subject

Posted: 28 Jun 2010, 11:42
by KukY13
Glad to help. :)

Just one more thing:
Some browsers/mail clients have problems using spaces and line breaks in subject and body parts of that tag.
So replace all spaces with %20, and all line breaks with %0D%0A to ensure compatibility.

Re: email with subject

Posted: 28 Jun 2010, 12:32
by wijo
Great! I already ran into that problem. Thanks again.