hi,
i'm new here and to php so I hope you will excuse me if I'm asking the questions you already answered before :)
I have some small task which is the following:
We have WiKi page, I created the form. I would like the following:
then somebody presses submit button, script updates WiKi page (already done), shows on the screen formated input and then - I would like to send mail (better in HTML format)
1. I would like to be able to add colors to that mail - is it possible?
2. I would like to send this mail via Outlook (e.g. I want my form to open Outlook and show the sender how his mail looks like. Sender should press "Send" button)
Is it possible? How can I do this?
thank you in advance...
3 5829
hi,
i'm new here and to php so I hope you will excuse me if I'm asking the questions you already answered before :)
I have some small task which is the following:
We have WiKi page, I created the form. I would like the following:
then somebody presses submit button, script updates WiKi page (already done), shows on the screen formated input and then - I would like to send mail (better in HTML format)
1. I would like to be able to add colors to that mail - is it possible?
2. I would like to send this mail via Outlook (e.g. I want my form to open Outlook and show the sender how his mail looks like. Sender should press "Send" button)
Is it possible? How can I do this?
thank you in advance...
Generally it is a bad idea to code for a specific application, not all your users will have Outlook installed.
It seems to me that PHPMailer may be the answer to your needs.
I have had a look at this recently and will be deploying similar functionality using PHPMailer in the near future.
The best thing to do is read up on PHPMailer and have a go, then post any specific questions and code for further help.
Cheers
nathj
PS - on the link I give you may have to scroll down a way to see the tutorial.
Heya, nast775. Welcome to TSDN!
To add HTML to your email, you have to set a couple of headers. Check out this example.
In terms of opening outlook, remember that PHP is server-side. You can't do anything in PHP that affects the state of the User's computer.
You can try posting this in the JavaScript forum, but short of using something extremely proprietary, I'm afraid you're not going to find what you're looking for (besides, what if the User prefers Thunderbird or has a Mac?).
Heya, nast775. Welcome to TSDN!
To add HTML to your email, you have to set a couple of headers. Check out this example.
In terms of opening outlook, remember that PHP is server-side. You can't do anything in PHP that affects the state of the User's computer.
You can try posting this in the JavaScript forum, but short of using something extremely proprietary, I'm afraid you're not going to find what you're looking for (besides, what if the User prefers Thunderbird or has a Mac?).
I think there may be some issues with the standard mail() functions as I tried using them as the sample suggests and the HTML code was just printed as the body part of the email.
I am prepared to admit that it was likely I got it wrong, but from what I have read it is worth pursuing the PHPMailer() class if at all possible.
It may also have been the mail client I was using from the host to receive the HTML emails - this is always a possibility. The advanage that PHPMailer() has is that you can set the HTML body and set and alterntive body for text only.
One thing we are all agreed on is that you shouldn't really code for something as a specific as an email client.
If you do get what you are after with the mail() function then let me know as I would love to see how you get it working. My previous project was reverted to go old text only emails, fine for it's purposes but the current project will need to be a bit more fancy.
Cheers
nathj
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Sven Templin |
last post by:
Hello all,
our configuration is as following described:
- OS: Windows 2000
- Apache server 1.3
- Php 3.8
- MS outlook client 2000
_and_ no SMTP server available in the whole intranet.
|
by: Hari |
last post by:
Hi all!
I am trying to send mail using outlook in my web application. i am using
Outlook Express. Actually i am saving it in DRAFTS folder instead of sending
it. My system are in network. I hard...
|
by: joe215 |
last post by:
I want my users to send emails from a Windows app that I am developing in
Visual Basic.NET 2003. I found a good example of sending email to a SMTP
server using the SmtpMail class. However, using...
|
by: Devonish |
last post by:
I am composing an email with Access VB and then sending it from within
Access.
Everything works correctly (the email actually goes!) but Outlook ask
some
irritating questions that the user is...
|
by: Mr. x |
last post by:
Hello,
I am sending emails with Hebrew contents.
When receiving emails - I cannot see the Hebrew characters (it is not
outlook express configuration, because when receiving emails from friends -...
|
by: Frank |
last post by:
I think I've confused myself completely here :-)
I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the client if they're email server supported SMTP, and...
|
by: B-Dog |
last post by:
I've built a small app that sends mail through our ISP's SMTP server but
when I try to send through my local exchange server I get CDO error. Does
webmail use SMTP or does it strictly rely on...
|
by: mc |
last post by:
I would like to be able to send from an ASP.NET page an email which when recieved takes the form of
a "Sharing Invitation for a RSS Feed"...
|
by: shybe |
last post by:
I have a send mail script on my site that.
The emails are recieved by gmail, and yahoo, but not to mail clients
like Outlook, Mail, etc...)
Is this a problem with the script, or is it...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |