Jump to content

email code advice


geroid

Recommended Posts

Hi

I'm just about to start my email section of the website I'm working on. I don't know much about this and I was looking for some advice. All I'm doing is allowing the user to send an email to the site administrator from the website. That's all. Any ideas what function I should be looking at?

 

Gerry

Link to comment
Share on other sites

Geroid,

 

Not sure if your like me or not but I always need a piece of code that I can reverse engineer.  While the http://us2.php.net/manual/en/function.mail.php is an excellent resource to start with, email headers can be a bit tricky if your not familiar with them.

 

In addition to reading the manual, take a look at the script here: http://bit.ly/1Lyoy0 it will send plain text emails and also allow you to send file attachments. Between that and the manual, you should have everything you need.

 

Do let us know if there is anything else we can do for you.

Link to comment
Share on other sites

Gerry,

 

For my advice.  mail() functions can get a little confusing... especially when you go into trying to attachments.  If your server allows php, they shouldn't have a problem with you installing some pear packages.  I would recommend using the mail factory that pear has.  EXCELLENT!  I love it.  Especially since I can define my SMTP and get attachments done much easier.  For me PEAR has been way less stressful that mail().

 

Good luck.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.