email with subject

Support for PhpBB3 BBCodes.
Post here to get help with any BBCode related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe exactly what it is you want.
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!

email with subject

Post 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

Post by cisco007 »

I am not sure if this has anything to do with a bbcode!

Re: email with subject

Post 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

Post by cisco007 »

try it let us know if it worked!

Re: email with subject

Post 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

Post 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

Post by wijo »

Great! It works :thumb: Thank you very much.

Re: email with subject

Post 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

Post by wijo »

Great! I already ran into that problem. Thanks again.