email with subject

Support for PhpBB3 BBCodes. Post here to get help with any BBCode related issue here
There is no support here! Only Read Access!
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!
Locked
wijo
BBCoder II
BBCoder II
Posts: 17
Joined: 27 Jun 2010, 10:09

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.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: email with subject

Post by cisco007 »

I am not sure if this has anything to do with a bbcode!
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

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.
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: email with subject

Post by cisco007 »

try it let us know if it worked!
wijo
BBCoder II
BBCoder II
Posts: 17
Joined: 27 Jun 2010, 10:09

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
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

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]
Image
wijo
BBCoder II
BBCoder II
Posts: 17
Joined: 27 Jun 2010, 10:09

Re: email with subject

Post by wijo »

Great! It works :thumb: Thank you very much.
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

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.
Image
wijo
BBCoder II
BBCoder II
Posts: 17
Joined: 27 Jun 2010, 10:09

Re: email with subject

Post by wijo »

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