hi,
I have gotten gnupg installed and i have it working fine for the most part the problem i am having is that i cant attach the file as the body of a email. I have to send it as a attachment.
when i try to just fopen then fread the encrypted file into a $message variable that pass to the mail function i always get less than the whole message and it never can be opened with pgp. But if i attach the file as a binary attachment i can save the file and decrypt it with pgp.
how do i get the encrypted stuff into the body though and not as a attachment
jake
gnupg encrypted message into body of email
Moderator: General Moderators
Just some tip that maybe helpful.
1. Ascii armour you encryptet message. (se gpg --help)
2. Try send it from with system commands (ugly but fast):
or something.
3. Try mail with php functions.
Just some quick untested thoughts. I hope these will help you.
1. Ascii armour you encryptet message. (se gpg --help)
2. Try send it from with system commands (ugly but fast):
Code: Select all
system("cat yourfile | mail -s "subject" recipt@host");3. Try mail with php functions.
Code: Select all
$fd = fopen("yourfile", "r");
$message = fread($fd, filesize("yourfile"));
mail($reciipt, "Subject", "$message");-
daemorhedron
- Forum Commoner
- Posts: 52
- Joined: Tue Jul 23, 2002 11:03 am