email

PHP mail() function not using "from" address

$to = "[email protected]"; $subject = "Auction Registration Confirmation"; $from = "From: [email protected]"; $body = "Test Message"; if (mail($to, $subject, $body, $from)) { echo("<b>Message sent</b>"); header( "Location: http://www.mydomain.com/thankyou.html" ); } else { echo("<b>Message failed</b>"); } Now the prob...

Sending email in Delphi without smtp and using php function at server

Using Delphi, i want to send a text message to my web server using winsock, and then use an email php function on the server to post the message. First i have done the sending procedure (Procedure SendEmail): it reads a text file (log) and POST it to my server. On the server, the message is received by aa email php function named email....

Greasemonkey script for inserting math in gmail

I wish an easy way to communicate mathematical equations with gmail. There's a javascript script called AsciiMath, which should translate Tex-like equations into standard mathML. I thought that it would be nice to use this script with GM. I thought that before sending the email, this script would convert all the TeX-like equations in y...

How to make mail() work on Ubuntu?

I have a new install of Ubuntu and trying to use the php's mail() function. The function fails, I guess I am missing a package or two in my installation. ...

How to generate a secure activation string in php?

After user subscribe email to my website. My website will generate an email confirmation and send to them. In the email content, i need to include activation key, something like: www.domain.com/activate.php?key=$generatedKey How do you generate the key? using sha1($email)?? After generate the key, i store it in database, so that when ...

C++ Email/SMTP

Hey, Can you recommend me what C++ library or classes are available for sending email via SMTP in C++. I'm on Windows platform. I need a library which supports attachments and SSL connections. What are the options available. I'm not into implementing my own :) Regards EDIT: Oh I forgot to mention I'm using Visual C++ 6 ...

Recommended safeguards to prevent accidentally spamming customers

I'm working on a site in which users can opt-in for email notifications for various events (think Google Alerts). An early version of the site had a problem that accidentally generated hundreds of emails to the same few test users. That bug has since been fixed, but leads to the question: what are some recommendations for ensuring that c...

How to implement private mail for website?

Hi, How would you go about implementing private mail functionality such like Bebo/Facebook and other social networking sites? You have the option to post public comments on a member's profile, but you can also send a private mail. I was considering using XML and just storing it as a field in that particular user's record. Does this so...

Smart quotes in a MimeMessage not showing up correctly in Outlook

Our application takes text from a web form and sends it via email to an appropriate user. However, when someone copy/pastes in the infamous "smart quotes" or other special characters from Word, things get hairy. The user types in he said “hello” to me—isn’t that nice? But when the message appears in Outlook 2003, it comes out l...

Remove Confirmation Box vbs script

I have the following code where i could send mail through my configured outlook. I can run this vbs using a rule in my outlook which in turn send a mail to the email specified in the script But i am getting a confirmation box asking a virus or not while running this script to send a mail. How to get rid of this confirmation box to mak...

Documentation on Apple Mail's .emlx data structure(s) (for conversion purposes)?

This appears to be a rare gem: where to find documentation on the structure of Apple Mail's .emlx files (and their partial variants, and the meaning of the directory structures). The docs do not appear to exist on Apple's site, nor can I find any reasonable mention of it via Google. The point of this is the creation of a bash/ruby/pyth...

How do I send an e-mail in Java?

I need to send e-mails from a servlet running within Tomcat. I'll always send to the same recipient with the same subject, but with different contents. What's a simple, easy way to send an e-mail in Java? Related: How do you send email from a Java app using GMail? ...

Mail Merge (Excel to Word) using C#

Hey all I was wondering if anybody knew how to do a mail merge using an Excel file as a datasource, to fill in fields on a Word template? I wish to use the interop for Word if i could...but am having a few difficulties finding code for this. Does anybody have any syntax for this? Thank you in advance. ...

Generating HTML email body in C#

Is there a better way to generate HTML email in C# (for sending via System.Net.Mail), than using a Stringbuilder to do the following: string userName = "John Doe"; StringBuilder mailBody = new StringBuilder(); mailBody.AppendFormat("<h1>Heading Here</h1>"); mailBody.AppendFormat("Dear {0}," userName); mailBody.AppendFormat("<br />"); ma...

Smtp Authentication

I am writing a class to connect to a SMTP server over SSL and send a mail. The smtp server i am using (yahoo) requires authentication. Can someone tell me how the authentication takes place as to which commands i should use to send my user credentials? Note: I know about the JavaMail API. I just want a simple class to send mail without ...

c# generated csv file sent via email embedded to bottom of email in lotus note

I am having this weired issue that CSV attachment sent via email using .NET SmtpClient appeared at the bottom of the email rather than attachment in Lotus Note. I just don’t know how to figure it out and I have no access to client computer makes debugging very hard. What are the possible steps I can take and possible gotchas I need to be...

EWS - import email into sql database

I've been trying to import the body from emails into a field in a SQL 2005 database but it keeps losing the formatting (carriage returns, tabs, etc) Anyway of getting around this? ...

Is there a free library for parsing .MSG files?

I've seen a few examples that use the Apose.Network library but at $599 a pop my client won't sign that off ...

iphone mail won't display javascript in attached html files?

When I attach an HTML file to an email and then email it to my iphone, I can view the file perfectly. However, none of the javascript in the file seems to run - not even simple stuff like showing / hiding divs triggered by "onClick" events. Is there any way to make javascript run on attached files in the iphone mail application? ...

Design: Emailing System in Java

Hi everyone, I'm building an emailing system for a framework I'm developing. Thus far, I've got a generic MailMessage interface that every different type of email message will implement, something along the lines of public interface MailMessage { public String[] getTo(); public void setTo(String[] to); public String getFr...